Changeset 3b0bc16 for src/AST/Pass.impl.hpp
- Timestamp:
- Feb 1, 2022, 8:22:12 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- fde0a58
- Parents:
- 729c991
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.impl.hpp
r729c991 r3b0bc16 756 756 maybe_accept( node, &IfStmt::inits ); 757 757 maybe_accept( node, &IfStmt::cond ); 758 maybe_accept_as_compound( node, &IfStmt::then Part);759 maybe_accept_as_compound( node, &IfStmt::else Part);758 maybe_accept_as_compound( node, &IfStmt::then ); 759 maybe_accept_as_compound( node, &IfStmt::else_ ); 760 760 } 761 761 … … 764 764 765 765 //-------------------------------------------------------------------------- 766 // While Stmt767 template< typename core_t > 768 const ast::Stmt * ast::Pass< core_t >::visit( const ast::While Stmt * node ) {766 // WhileDoStmt 767 template< typename core_t > 768 const ast::Stmt * ast::Pass< core_t >::visit( const ast::WhileDoStmt * node ) { 769 769 VISIT_START( node ); 770 770 … … 772 772 // while statements introduce a level of scope (for the initialization) 773 773 guard_symtab guard { *this }; 774 maybe_accept( node, &While Stmt::inits );775 maybe_accept( node, &While Stmt::cond );776 maybe_accept_as_compound( node, &While Stmt::body );774 maybe_accept( node, &WhileDoStmt::inits ); 775 maybe_accept( node, &WhileDoStmt::cond ); 776 maybe_accept_as_compound( node, &WhileDoStmt::body ); 777 777 } 778 778
Note: See TracChangeset
for help on using the changeset viewer.