Changes in src/AST/Pass.impl.hpp [857b5f9:36dfdac]
- File:
-
- 1 edited
-
src/AST/Pass.impl.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.impl.hpp
r857b5f9 r36dfdac 1350 1350 1351 1351 //-------------------------------------------------------------------------- 1352 // CountExpr 1353 template< typename core_t > 1354 const 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 //-------------------------------------------------------------------------- 1352 1371 // AlignofExpr 1353 1372 template< typename core_t > … … 1361 1380 } 1362 1381 maybe_accept( node, &AlignofExpr::type ); 1363 }1364 1365 VISIT_END( Expr, node );1366 }1367 1368 //--------------------------------------------------------------------------1369 // CountofExpr1370 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 );1380 1382 } 1381 1383
Note:
See TracChangeset
for help on using the changeset viewer.