Changes in src/Parser/StatementNode.cpp [7a8de40:cd28605]
- File:
-
- 1 edited
-
src/Parser/StatementNode.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/StatementNode.cpp
r7a8de40 rcd28605 11 11 // Created On : Sat May 16 14:59:41 2015 12 12 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Sat Apr 19 13:01:31202514 // Update Count : 43 613 // Last Modified On : Thu Feb 6 11:38:39 2025 14 // Update Count : 434 15 15 // 16 16 … … 119 119 } // build_expr 120 120 121 static ast::Expr * build_if_control( CondCtrl * ctrl, std::vector<ast::ptr<ast::Stmt>> & inits ) { 121 static ast::Expr * build_if_control( CondCtrl * ctrl, 122 std::vector<ast::ptr<ast::Stmt>> & inits ) { 122 123 assert( inits.empty() ); 123 124 if ( nullptr != ctrl->init ) { … … 148 149 ast::Stmt const * astelse = buildMoveOptional( else_ ); 149 150 150 return new ast::IfStmt( location, astcond, astthen, astelse, std::move( astinit ) ); 151 return new ast::IfStmt( location, astcond, astthen, astelse, 152 std::move( astinit ) 153 ); 151 154 } // build_if 152 155 … … 190 193 ast::Expr * astcond = build_if_control( ctrl, astinit ); // ctrl deleted, cond/init set 191 194 192 return new ast::WhileDoStmt( location, astcond, buildMoveSingle( stmt ), buildMoveOptional( else_ ), 193 std::move( astinit ), ast::While ); 195 return new ast::WhileDoStmt( location, 196 astcond, 197 buildMoveSingle( stmt ), 198 buildMoveOptional( else_ ), 199 std::move( astinit ), 200 ast::While 201 ); 194 202 } // build_while 195 203
Note:
See TracChangeset
for help on using the changeset viewer.