Ignore:
Timestamp:
Jan 19, 2024, 2:42:58 AM (6 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/AST/Pass.impl.hpp

    r8b4faf6 r59c8dff  
    14521452
    14531453//--------------------------------------------------------------------------
     1454// EnumPosExpr
     1455template< typename core_t>
     1456const ast::Expr * ast::Pass< core_t >::visit( const ast::EnumPosExpr * node ) {
     1457        VISIT_START( node );
     1458
     1459        if ( __visit_children() ) {
     1460                guard_symtab guard { *this };
     1461                maybe_accept( node, &EnumPosExpr::type );
     1462                maybe_accept( node, &EnumPosExpr::expr );
     1463        }
     1464
     1465        VISIT_END( Expr, node );
     1466}
     1467
     1468//--------------------------------------------------------------------------
    14541469// LogicalExpr
    14551470template< typename core_t >
Note: See TracChangeset for help on using the changeset viewer.