Changes in src/SynTree/TupleExpr.cc [ba3706f:bf4b4cf]
- File:
-
- 1 edited
-
src/SynTree/TupleExpr.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/TupleExpr.cc
rba3706f rbf4b4cf 23 23 #include "Declaration.h" // for ObjectDecl 24 24 #include "Expression.h" // for Expression, TupleExpr, TupleIndexExpr 25 #include "SynTree/Label.h" // for Label 25 #include "SynTree/Label.h" // for Label, noLabels 26 26 #include "SynTree/Statement.h" // for CompoundStmt, DeclStmt, ExprStmt, Sta... 27 27 #include "Tuples/Tuples.h" // for makeTupleType … … 89 89 // convert internally into a StmtExpr which contains the declarations and produces the tuple of the assignments 90 90 set_result( Tuples::makeTupleType( assigns ) ); 91 CompoundStmt * compoundStmt = new CompoundStmt( );91 CompoundStmt * compoundStmt = new CompoundStmt( noLabels ); 92 92 std::list< Statement * > & stmts = compoundStmt->get_kids(); 93 93 for ( ObjectDecl * obj : tempDecls ) { 94 stmts.push_back( new DeclStmt( obj ) );94 stmts.push_back( new DeclStmt( noLabels, obj ) ); 95 95 } 96 96 TupleExpr * tupleExpr = new TupleExpr( assigns ); 97 97 assert( tupleExpr->get_result() ); 98 stmts.push_back( new ExprStmt( tupleExpr ) );98 stmts.push_back( new ExprStmt( noLabels, tupleExpr ) ); 99 99 stmtExpr = new StmtExpr( compoundStmt ); 100 100 }
Note:
See TracChangeset
for help on using the changeset viewer.