Changeset d3b33d5
- Timestamp:
- Sep 9, 2024, 11:43:43 AM (40 hours ago)
- Branches:
- master
- Children:
- a7efc96
- Parents:
- 02101a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/StatementNode.cpp
r02101a4 rd3b33d5 11 11 // Created On : Sat May 16 14:59:41 2015 12 12 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Fri Aug 11 11:44:15 202314 // Update Count : 4 2913 // Last Modified On : Mon Sep 9 11:28:07 2024 14 // Update Count : 430 15 15 // 16 16 … … 208 208 209 209 ast::Stmt * build_for( const CodeLocation & location, ForCtrl * forctl, StatementNode * stmt, StatementNode * else_ ) { 210 std::vector<ast::ptr<ast::Stmt>> astinit; 210 std::vector<ast::ptr<ast::Stmt>> astinit; // maybe empty 211 211 buildMoveList( forctl->init, astinit ); 212 212 213 213 if ( forctl->range_over ) { 214 214 ast::Expr * range_over = maybeMoveBuild( forctl->range_over ); 215 auto kind = forctl->kind; // save before delete, used in return 215 216 delete forctl; 216 217 return new ast::ForStmt( location, 217 218 std::move( astinit ), 218 range_over, forctl->kind == OperKinds::LEThan,219 range_over, kind == OperKinds::LEThan, 219 220 buildMoveSingle( stmt ), 220 221 buildMoveOptional( else_ )
Note: See TracChangeset
for help on using the changeset viewer.