Changeset d8893ca
- Timestamp:
- Dec 1, 2017, 2:54:03 PM (7 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:
- 882ad37
- Parents:
- 1e8bbac9
- Location:
- src/Common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.h
r1e8bbac9 rd8893ca 298 298 void indexerAddUnionFwd ( UnionDecl * node ) { indexer_impl_addUnionFwd ( pass, 0, node ); } 299 299 void indexerAddTrait ( TraitDecl * node ) { indexer_impl_addTrait ( pass, 0, node ); } 300 void indexerAddWith ( WithStmt * node ) { indexer_impl_addWith ( pass, 0, node ); } 301 300 302 301 303 template< typename TreeType, typename VisitorType > -
src/Common/PassVisitor.impl.h
r1e8bbac9 rd8893ca 985 985 } 986 986 987 988 987 989 //-------------------------------------------------------------------------- 988 990 // NullStmt 989 991 template< typename pass_type > 990 992 void PassVisitor< pass_type >::visit( WithStmt * node ) { 991 VISIT_BODY( node ); 993 VISIT_START( node ); 994 maybeAccept_impl( node->exprs, *this ); 995 { 996 // catch statements introduce a level of scope (for the caught exception) 997 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 998 indexerAddWith( node ); 999 maybeAccept_impl( node->stmt, *this ); 1000 } 1001 VISIT_END( node ); 992 1002 } 993 1003 994 1004 template< typename pass_type > 995 1005 Statement * PassVisitor< pass_type >::mutate( WithStmt * node ) { 996 MUTATE_BODY( Statement, node ); 1006 MUTATE_START( node ); 1007 maybeMutate_impl( node->exprs, *this ); 1008 { 1009 // catch statements introduce a level of scope (for the caught exception) 1010 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 1011 indexerAddWith( node ); 1012 maybeMutate_impl( node->stmt, *this ); 1013 } 1014 MUTATE_END( Statement, node ); 997 1015 } 998 1016 -
src/Common/PassVisitor.proto.h
r1e8bbac9 rd8893ca 208 208 INDEXER_FUNC( addUnion , UnionDecl * ); 209 209 INDEXER_FUNC( addTrait , TraitDecl * ); 210 INDEXER_FUNC( addWith , WithStmt * ); 210 211 211 212
Note: See TracChangeset
for help on using the changeset viewer.