Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    r835d6e8 re4d7c1c  
    559559                auto stmt = new SuspendStmt();
    560560                stmt->then   = get<CompoundStmt>().accept1( node->then   );
    561                 switch (node->kind) {
     561                switch(node->type) {
    562562                        case ast::SuspendStmt::None     : stmt->type = SuspendStmt::None     ; break;
    563563                        case ast::SuspendStmt::Coroutine: stmt->type = SuspendStmt::Coroutine; break;
     
    16831683                        GET_ACCEPT_V(attributes, Attribute),
    16841684                        { old->get_funcSpec().val },
    1685                         (old->type->isVarArgs) ? ast::VariableArgs : ast::FixedArgs
     1685                        old->type->isVarArgs
    16861686                };
    16871687
     
    18761876                auto&& type = GET_ACCEPT_1(type, Type);
    18771877                auto&& attr = GET_ACCEPT_V(attributes, Attribute);
    1878 
     1878 
    18791879                auto decl = new ast::InlineMemberDecl(
    18801880                        old->location,
     
    19891989                        GET_ACCEPT_1(else_, Stmt),
    19901990                        GET_ACCEPT_V(initialization, Stmt),
    1991                         (old->isDoWhile) ? ast::DoWhile : ast::While,
     1991                        old->isDoWhile,
    19921992                        GET_LABELS_V(old->labels)
    19931993                );
     
    21312131        virtual void visit( const SuspendStmt * old ) override final {
    21322132                if ( inCache( old ) ) return;
    2133                 ast::SuspendStmt::Kind type;
     2133                ast::SuspendStmt::Type type;
    21342134                switch (old->type) {
    21352135                        case SuspendStmt::Coroutine: type = ast::SuspendStmt::Coroutine; break;
Note: See TracChangeset for help on using the changeset viewer.