Ignore:
Timestamp:
Jan 19, 2024, 2:42:58 AM (7 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
f988834
Parents:
8b4faf6
Message:

Draft Implementation for enum position pesudo function (posE). EnumPosExpr? is mostly irrelevant for now. It is used in development/code probing and will be removed later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r8b4faf6 r59c8dff  
    420420                const ast::ConstructorInit * previsit( const ast::ConstructorInit * );
    421421
     422                const ast::EnumPosExpr *         previsit( const ast::EnumPosExpr * );
     423
    422424                void resolveWithExprs(std::vector<ast::ptr<ast::Expr>> & exprs, std::list<ast::ptr<ast::Stmt>> & stmtsToAdd);
    423425
     
    12391241        }
    12401242
     1243        const ast::EnumPosExpr * Resolver::previsit( const ast::EnumPosExpr * enumPos ) {
     1244                visitor->maybe_accept( enumPos, &ast::EnumPosExpr::expr );
     1245                return enumPos;
     1246        }
     1247
    12411248        // suppress error on autogen functions and mark invalid autogen as deleted.
    12421249        bool Resolver::on_error(ast::ptr<ast::Decl> & decl) {
Note: See TracChangeset for help on using the changeset viewer.