Changeset 835d6e8 for src/Parser/StatementNode.cc
- Timestamp:
- Apr 5, 2023, 4:45:38 PM (18 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- c468150
- Parents:
- 3e94a23
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/StatementNode.cc
r3e94a23 r835d6e8 362 362 } // build_finally 363 363 364 ast::SuspendStmt * build_suspend( const CodeLocation & location, StatementNode * then, ast::SuspendStmt:: Type type) {364 ast::SuspendStmt * build_suspend( const CodeLocation & location, StatementNode * then, ast::SuspendStmt::Kind kind ) { 365 365 std::vector<ast::ptr<ast::Stmt>> stmts; 366 366 buildMoveList( then, stmts ); … … 370 370 then2 = stmts.front().strict_as<ast::CompoundStmt>(); 371 371 } 372 auto node = new ast::SuspendStmt( location, then2, ast::SuspendStmt::None ); 373 node->type = type; 374 return node; 372 return new ast::SuspendStmt( location, then2, kind ); 375 373 } // build_suspend 376 374
Note: See TracChangeset
for help on using the changeset viewer.