Changeset 5408b59 for src/SynTree


Ignore:
Timestamp:
Oct 18, 2022, 9:12:19 PM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, ast-experimental, master
Children:
c2b3243
Parents:
1e30df7
Message:

Remove var in QualifiedNameExpr?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Expression.h

    r1e30df7 r5408b59  
    168168        Declaration * type_decl;
    169169        std::string name;
    170         DeclarationWithType * var;
    171170
    172171        QualifiedNameExpr( Declaration * decl, std::string name): Expression(), type_decl(decl), name(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; }
     172        QualifiedNameExpr( const QualifiedNameExpr & other): Expression(other), type_decl(other.type_decl), name(other.name) {}
    176173
    177174        virtual ~QualifiedNameExpr() {
    178                 delete var;
    179175                delete type_decl;
    180176        }
Note: See TracChangeset for help on using the changeset viewer.