Changeset 9dcb653 for src/Common/PassVisitor.impl.h
- Timestamp:
- Sep 13, 2017, 2:13:59 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 9f5ecf5
- Parents:
- aa72198
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.impl.h
raa72198 r9dcb653 807 807 808 808 maybeAccept( node->block , *this ); 809 maybeAccept 809 maybeAccept( node->handlers , *this ); 810 810 maybeAccept( node->finallyBlock, *this ); 811 811 … … 818 818 819 819 maybeMutateRef( node->block , *this ); 820 maybeMutateRef 820 maybeMutateRef( node->handlers , *this ); 821 821 maybeMutateRef( node->finallyBlock, *this ); 822 822 … … 918 918 indexerScopedAccept( node->result , *this ); 919 919 maybeAccept ( node->function, *this ); 920 maybeAccept 920 maybeAccept ( node->args , *this ); 921 921 922 922 VISIT_END( node ); … … 930 930 indexerScopedMutate( node->result , *this ); 931 931 maybeMutateRef ( node->function, *this ); 932 maybeMutateRef 932 maybeMutateRef ( node->args , *this ); 933 933 934 934 MUTATE_END( Expression, node ); … … 1467 1467 indexerScopedAccept( node->result , *this ); 1468 1468 maybeAccept ( node->callExpr , *this ); 1469 maybeAccept 1470 maybeAccept 1471 maybeAccept 1469 maybeAccept ( node->tempDecls , *this ); 1470 maybeAccept ( node->returnDecls, *this ); 1471 maybeAccept ( node->dtors , *this ); 1472 1472 1473 1473 VISIT_END( node ); … … 1481 1481 indexerScopedMutate( node->result , *this ); 1482 1482 maybeMutateRef ( node->callExpr , *this ); 1483 maybeMutateRef 1484 maybeMutateRef 1485 maybeMutateRef 1483 maybeMutateRef ( node->tempDecls , *this ); 1484 maybeMutateRef ( node->returnDecls, *this ); 1485 maybeMutateRef ( node->dtors , *this ); 1486 1486 1487 1487 MUTATE_END( Expression, node ); … … 1566 1566 1567 1567 indexerScopedAccept( node->result, *this ); 1568 maybeAccept ( node->exprs , *this ); 1569 1570 VISIT_END( node ); 1571 } 1572 1573 template< typename pass_type > 1574 Expression * PassVisitor< pass_type >::mutate( UntypedTupleExpr * node ) { 1575 MUTATE_START( node ); 1576 1577 indexerScopedMutate( node->env , *this ); 1578 indexerScopedMutate( node->result, *this ); 1579 maybeMutateRef ( node->exprs , *this ); 1580 1581 MUTATE_END( Expression, node ); 1582 } 1583 1584 //-------------------------------------------------------------------------- 1585 // TupleExpr 1586 template< typename pass_type > 1587 void PassVisitor< pass_type >::visit( TupleExpr * node ) { 1588 VISIT_START( node ); 1589 1590 indexerScopedAccept( node->result, *this ); 1568 1591 maybeAccept ( node->exprs , *this ); 1569 1592 … … 1572 1595 1573 1596 template< typename pass_type > 1574 Expression * PassVisitor< pass_type >::mutate( UntypedTupleExpr * node ) {1575 MUTATE_START( node );1576 1577 indexerScopedMutate( node->env , *this );1578 indexerScopedMutate( node->result, *this );1579 maybeMutateRef ( node->exprs , *this );1580 1581 MUTATE_END( Expression, node );1582 }1583 1584 //--------------------------------------------------------------------------1585 // TupleExpr1586 template< typename pass_type >1587 void PassVisitor< pass_type >::visit( TupleExpr * node ) {1588 VISIT_START( node );1589 1590 indexerScopedAccept( node->result, *this );1591 maybeAccept ( node->exprs , *this );1592 1593 VISIT_END( node );1594 }1595 1596 template< typename pass_type >1597 1597 Expression * PassVisitor< pass_type >::mutate( TupleExpr * node ) { 1598 1598 MUTATE_START( node ); … … 1600 1600 indexerScopedMutate( node->env , *this ); 1601 1601 indexerScopedMutate( node->result, *this ); 1602 maybeMutateRef 1602 maybeMutateRef ( node->exprs , *this ); 1603 1603 1604 1604 MUTATE_END( Expression, node ); … … 1664 1664 indexerScopedAccept( node->result , *this ); 1665 1665 maybeAccept ( node->statements , *this ); 1666 maybeAccept 1667 maybeAccept 1666 maybeAccept ( node->returnDecls, *this ); 1667 maybeAccept ( node->dtors , *this ); 1668 1668 1669 1669 VISIT_END( node ); … … 1681 1681 indexerScopedMutate( node->result , *this ); 1682 1682 maybeMutateRef ( node->statements , *this ); 1683 maybeMutateRef 1684 maybeMutateRef 1683 maybeMutateRef ( node->returnDecls, *this ); 1684 maybeMutateRef ( node->dtors , *this ); 1685 1685 1686 1686 MUTATE_END( Expression, node );
Note: See TracChangeset
for help on using the changeset viewer.