Changeset 85855b0 for src/AST/Expr.hpp


Ignore:
Timestamp:
Jun 10, 2024, 2:43:13 AM (5 weeks ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
42cdd07d
Parents:
d68de59
Message:
  1. Implement enum cast; 2. Change valueE so that opague enum returns quasi_void; 3. change enum hiding interpretation and pass visiting scheme
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.hpp

    rd68de59 r85855b0  
    256256public:
    257257        ptr<Decl> type_decl;
    258         std::string name;
     258        const std::string type_name;
     259        const std::string name;
    259260
    260261        QualifiedNameExpr( const CodeLocation & loc, const Decl * d, const std::string & n )
    261         : Expr( loc ), type_decl( d ), name( n ) {}
     262        : Expr( loc ), type_decl( d ), type_name(""), name( n ) {}
     263
     264        QualifiedNameExpr( const CodeLocation & loc, const std::string & type_name, const std::string & name)
     265        : Expr( loc ), type_name( type_name ), name( name ) {}
    262266
    263267        const Expr * accept( Visitor & v ) const override { return v.visit( this ); }
Note: See TracChangeset for help on using the changeset viewer.