Changes in src/Common/PassVisitor.impl.h [0ac366b:d55d7a6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.impl.h
r0ac366b rd55d7a6 77 77 maybeAccept_impl( *i, visitor ); 78 78 } catch( SemanticError &e ) { 79 e.set_location( (*i)->location );80 79 errors.append( e ); 81 80 } … … 104 103 maybeMutate_impl( *i, mutator ); 105 104 } catch( SemanticError &e ) { 106 e.set_location( (*i)->location );107 105 errors.append( e ); 108 106 } … … 134 132 } 135 133 } catch( SemanticError &e ) { 136 e.set_location( (*i)->location );137 134 errors.append( e ); 138 135 } … … 163 160 } // if 164 161 } catch( SemanticError &e ) { 165 e.set_location( (*i)->location );166 162 errors.append( e ); 167 163 } // try … … 200 196 201 197 } catch ( SemanticError &e ) { 202 e.set_location( (*i)->location );203 198 errors.append( e ); 204 199 } … … 398 393 // shadow with exprs and not the other way around. 399 394 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 400 indexerAddWith( node->withExprs , node);395 indexerAddWith( node->withExprs ); 401 396 { 402 397 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); … … 428 423 // shadow with exprs and not the other way around. 429 424 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 430 indexerAddWith( node->withExprs , node);425 indexerAddWith( node->withExprs ); 431 426 { 432 427 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); … … 1069 1064 // catch statements introduce a level of scope (for the caught exception) 1070 1065 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 1071 indexerAddWith( node->exprs , node);1066 indexerAddWith( node->exprs ); 1072 1067 maybeAccept_impl( node->stmt, *this ); 1073 1068 } … … 1082 1077 // catch statements introduce a level of scope (for the caught exception) 1083 1078 auto guard = makeFuncGuard( [this]() { indexerScopeEnter(); }, [this]() { indexerScopeLeave(); } ); 1084 indexerAddWith( node->exprs , node);1079 indexerAddWith( node->exprs ); 1085 1080 maybeMutate_impl( node->stmt, *this ); 1086 1081 } … … 1976 1971 } 1977 1972 1978 //--------------------------------------------------------------------------1979 // DeletedExpr1980 template< typename pass_type >1981 void PassVisitor< pass_type >::visit( DeletedExpr * node ) {1982 VISIT_START( node );1983 1984 indexerScopedAccept( node->result, *this );1985 maybeAccept_impl( node->expr, *this );1986 // don't visit deleteStmt, because it is a pointer to somewhere else in the tree.1987 1988 VISIT_END( node );1989 }1990 1991 template< typename pass_type >1992 Expression * PassVisitor< pass_type >::mutate( DeletedExpr * node ) {1993 MUTATE_START( node );1994 1995 indexerScopedMutate( node->env, *this );1996 indexerScopedMutate( node->result, *this );1997 maybeMutate_impl( node->expr, *this );1998 1999 MUTATE_END( Expression, node );2000 }2001 2002 2003 1973 template< typename pass_type > 2004 1974 void PassVisitor< pass_type >::visit( VoidType * node ) {
Note:
See TracChangeset
for help on using the changeset viewer.