Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.impl.hpp

    r857b5f9 r36dfdac  
    13501350
    13511351//--------------------------------------------------------------------------
     1352// CountExpr
     1353template< typename core_t >
     1354const ast::Expr * ast::Pass< core_t >::visit( const ast::CountExpr * node ) {
     1355        VISIT_START( node );
     1356        if ( __visit_children() ) {
     1357                {
     1358                        guard_symtab guard { *this };
     1359                        maybe_accept( node, &CountExpr::result );
     1360                }
     1361                if ( node->type ) {
     1362                        maybe_accept( node, &CountExpr::type );
     1363                } else {
     1364                        maybe_accept( node, &CountExpr::expr );
     1365                }
     1366        }
     1367        VISIT_END( Expr, node );
     1368}
     1369
     1370//--------------------------------------------------------------------------
    13521371// AlignofExpr
    13531372template< typename core_t >
     
    13611380                }
    13621381                maybe_accept( node, &AlignofExpr::type );
    1363         }
    1364 
    1365         VISIT_END( Expr, node );
    1366 }
    1367 
    1368 //--------------------------------------------------------------------------
    1369 // CountofExpr
    1370 template< typename core_t >
    1371 const ast::Expr * ast::Pass< core_t >::visit( const ast::CountofExpr * node ) {
    1372         VISIT_START( node );
    1373 
    1374         if ( __visit_children() ) {
    1375                 {
    1376                         guard_symtab guard { *this };
    1377                         maybe_accept( node, &CountofExpr::result );
    1378                 }
    1379                 maybe_accept( node, &CountofExpr::type );
    13801382        }
    13811383
Note: See TracChangeset for help on using the changeset viewer.