Changeset e61207e7
- Timestamp:
- May 16, 2019, 4:18:02 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 41b24c8
- Parents:
- 87701b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.impl.hpp
r87701b6 re61207e7 752 752 VISIT_START( node ); 753 753 754 maybe_accept( node, &ReturnStmt::expr ); 754 VISIT( 755 maybe_accept( node, &ReturnStmt::expr ); 756 ) 755 757 756 758 VISIT_END( Stmt, node ); … … 759 761 //-------------------------------------------------------------------------- 760 762 // ThrowStmt 761 762 template< typename pass_type > 763 void PassVisitor< pass_type >::visit( ThrowStmt * node ) { 764 VISIT_START( node ); 765 766 maybeAccept_impl( node->expr, *this ); 767 maybeAccept_impl( node->target, *this ); 768 769 VISIT_END( node ); 763 template< typename pass_t > 764 const ast::Stmt * ast::Pass< pass_t >::visit( const ast::ThrowStmt * node ) { 765 VISIT_START( node ); 766 767 VISIT( 768 maybe_accept( node, &ThrowStmt::expr ); 769 maybe_accept( node, &ThrowStmt::target ); 770 ) 771 772 VISIT_END( Stmt, node ); 773 } 774 775 //-------------------------------------------------------------------------- 776 // TryStmt 777 template< typename pass_t > 778 const ast::Stmt * ast::Pass< pass_t >::visit( const ast::TryStmt * node ) { 779 VISIT_START( node ); 780 781 VISIT( 782 maybe_accept( node, &TryStmt::block ); 783 maybe_accept( node, &TryStmt::handlers ); 784 maybe_accept( node, &TryStmt::finallyBlock ); 785 ) 786 787 VISIT_END( Stmt, node ); 770 788 } 771 789
Note: See TracChangeset
for help on using the changeset viewer.