Ignore:
Timestamp:
Apr 5, 2023, 4:45:38 PM (15 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
c468150
Parents:
3e94a23
Message:

ast::SuspendStmt::Type -> ::Kind, this fits the new convention where Type is limited for actual compiler types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/StatementNode.cc

    r3e94a23 r835d6e8  
    362362} // build_finally
    363363
    364 ast::SuspendStmt * build_suspend( const CodeLocation & location, StatementNode * then, ast::SuspendStmt::Type type ) {
     364ast::SuspendStmt * build_suspend( const CodeLocation & location, StatementNode * then, ast::SuspendStmt::Kind kind ) {
    365365        std::vector<ast::ptr<ast::Stmt>> stmts;
    366366        buildMoveList( then, stmts );
     
    370370                then2 = stmts.front().strict_as<ast::CompoundStmt>();
    371371        }
    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 );
    375373} // build_suspend
    376374
Note: See TracChangeset for help on using the changeset viewer.