Changeset 834b892


Ignore:
Timestamp:
Feb 6, 2018, 5:11:22 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
10f8142
Parents:
86c934a
Message:

Expand VISIT/MUTATE_BODY for WaitForStmt?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.impl.h

    r86c934a r834b892  
    10181018template< typename pass_type >
    10191019void PassVisitor< pass_type >::visit( WaitForStmt * node ) {
    1020         VISIT_BODY( node );
     1020        VISIT_START( node );
     1021
     1022        for( auto & clause : node->clauses ) {
     1023                maybeAccept_impl( clause.target.function, *this );
     1024                maybeAccept_impl( clause.target.arguments, *this );
     1025
     1026                maybeAccept_impl( clause.statement, *this );
     1027                maybeAccept_impl( clause.condition, *this );
     1028        }
     1029
     1030        maybeAccept_impl( node->timeout.time, *this );
     1031        maybeAccept_impl( node->timeout.statement, *this );
     1032        maybeAccept_impl( node->timeout.condition, *this );
     1033        maybeAccept_impl( node->orelse.statement, *this );
     1034        maybeAccept_impl( node->orelse.condition, *this );
     1035
     1036        VISIT_END( node );
    10211037}
    10221038
    10231039template< typename pass_type >
    10241040Statement * PassVisitor< pass_type >::mutate( WaitForStmt * node ) {
    1025         MUTATE_BODY( Statement, node );
     1041        MUTATE_START( node );
     1042
     1043        for( auto & clause : node->clauses ) {
     1044                maybeMutate_impl( clause.target.function, *this );
     1045                maybeMutate_impl( clause.target.arguments, *this );
     1046
     1047                maybeMutate_impl( clause.statement, *this );
     1048                maybeMutate_impl( clause.condition, *this );
     1049        }
     1050
     1051        maybeMutate_impl( node->timeout.time, *this );
     1052        maybeMutate_impl( node->timeout.statement, *this );
     1053        maybeMutate_impl( node->timeout.condition, *this );
     1054        maybeMutate_impl( node->orelse.statement, *this );
     1055        maybeMutate_impl( node->orelse.condition, *this );
     1056
     1057        MUTATE_END( Statement, node );
    10261058}
    10271059
Note: See TracChangeset for help on using the changeset viewer.