Changes in src/AST/Expr.hpp [4e13e2a:e67991f]
- File:
-
- 1 edited
-
src/AST/Expr.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.hpp
r4e13e2a re67991f 30 30 31 31 // Must be included in *all* AST classes; should be #undef'd at the end of the file 32 #define MUTATE_FRIEND \ 33 template<typename node_t> friend node_t * mutate(const node_t * node); \ 34 template<typename node_t> friend node_t * shallowCopy(const node_t * node); 35 32 #define MUTATE_FRIEND template<typename node_t> friend node_t * mutate(const node_t * node); 36 33 37 34 class ConverterOldToNew; … … 358 355 MemberExpr * clone() const override { return new MemberExpr{ *this }; } 359 356 MUTATE_FRIEND 360 361 // Custructor overload meant only for AST conversion362 enum NoOpConstruction { NoOpConstructionChosen };363 MemberExpr( const CodeLocation & loc, const DeclWithType * mem, const Expr * agg,364 NoOpConstruction overloadSelector );365 friend class ::ConverterOldToNew;366 friend class ::ConverterNewToOld;367 357 }; 368 358 … … 541 531 542 532 CommaExpr( const CodeLocation & loc, const Expr * a1, const Expr * a2 ) 543 : Expr( loc ), arg1( a1 ), arg2( a2 ) { 544 this->result = a2->result; 545 } 533 : Expr( loc ), arg1( a1 ), arg2( a2 ) {} 546 534 547 535 const Expr * accept( Visitor & v ) const override { return v.visit( this ); }
Note:
See TracChangeset
for help on using the changeset viewer.