Changeset fc12f05 for src/Parser/StatementNode.cc
- Timestamp:
- Nov 13, 2023, 3:43:43 AM (23 months ago)
- Branches:
- master
- Children:
- 25f2798
- Parents:
- 0030b508 (diff), 2174191 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/StatementNode.cc
r0030b508 rfc12f05 503 503 } // build_corun 504 504 505 ast::Stmt * build_cofor( const CodeLocation & location, ForCtrl * forctl, StatementNode * stmt ) { 506 std::vector<ast::ptr<ast::Stmt>> astinit; // maybe empty 507 buildMoveList( forctl->init, astinit ); 508 509 ast::Expr * astcond = nullptr; // maybe empty 510 astcond = notZeroExpr( maybeMoveBuild( forctl->condition ) ); 511 512 ast::Expr * astincr = nullptr; // maybe empty 513 astincr = maybeMoveBuild( forctl->change ); 514 delete forctl; 515 516 return new ast::CoforStmt( location, 517 std::move( astinit ), 518 astcond, 519 astincr, 520 buildMoveSingle( stmt ) 521 ); 522 } // build_cofor 523 505 524 // Local Variables: // 506 525 // tab-width: 4 //
Note:
See TracChangeset
for help on using the changeset viewer.