Changeset e61207e7


Ignore:
Timestamp:
May 16, 2019, 4:18:02 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
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
Message:

More visits

File:
1 edited

Legend:

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

    r87701b6 re61207e7  
    752752        VISIT_START( node );
    753753
    754         maybe_accept( node, &ReturnStmt::expr );
     754        VISIT(
     755                maybe_accept( node, &ReturnStmt::expr );
     756        )
    755757
    756758        VISIT_END( Stmt, node );
     
    759761//--------------------------------------------------------------------------
    760762// 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 );
     763template< typename pass_t >
     764const 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
     777template< typename pass_t >
     778const 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 );
    770788}
    771789
Note: See TracChangeset for help on using the changeset viewer.