Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Expression.h

    r5408b59 rb0d9ff7  
    168168        Declaration * type_decl;
    169169        std::string name;
     170        DeclarationWithType * var;
    170171
    171172        QualifiedNameExpr( Declaration * decl, std::string name): Expression(), type_decl(decl), name(name) {}
    172         QualifiedNameExpr( const QualifiedNameExpr & other): Expression(other), type_decl(other.type_decl), name(other.name) {}
     173        QualifiedNameExpr( const QualifiedNameExpr & other): Expression(other), type_decl(other.type_decl), name(other.name), var(other.var) {}
     174        DeclarationWithType * get_var() const { return var; }
     175        void set_var( DeclarationWithType * newValue ) { var = newValue; }
    173176
    174177        virtual ~QualifiedNameExpr() {
     178                delete var;
    175179                delete type_decl;
    176180        }
Note: See TracChangeset for help on using the changeset viewer.