Changes in src/AST/Expr.cpp [c4570af3:46da46b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
rc4570af3 r46da46b 30 30 #include "Common/SemanticError.h" 31 31 #include "GenPoly/Lvalue.h" // for referencesPermissable 32 #include "ResolvExpr/ Unify.h"// for extractResultType32 #include "ResolvExpr/typeops.h" // for extractResultType 33 33 #include "Tuples/Tuples.h" // for makeTupleType 34 34 … … 222 222 } 223 223 224 MemberExpr::MemberExpr( const CodeLocation & loc, const DeclWithType * mem, const Expr * agg, 225 MemberExpr::NoOpConstruction overloadSelector ) 226 : Expr( loc ), member( mem ), aggregate( agg ) { 227 assert( member ); 228 assert( aggregate ); 229 assert( aggregate->result ); 230 (void) overloadSelector; 231 } 232 224 233 bool MemberExpr::get_lvalue() const { 225 234 // This is actually wrong by C, but it works with our current set-up. … … 379 388 stmts.emplace_back( new ExprStmt{ loc, tupleExpr } ); 380 389 stmtExpr = new StmtExpr{ loc, new CompoundStmt{ loc, std::move(stmts) } }; 390 } 391 392 TupleAssignExpr::TupleAssignExpr( 393 const CodeLocation & loc, const Type * result, const StmtExpr * s ) 394 : Expr( loc, result ), stmtExpr() { 395 stmtExpr = s; 381 396 } 382 397
Note:
See TracChangeset
for help on using the changeset viewer.