Changeset 4bf5298 for translator/ResolvExpr
- Timestamp:
- May 14, 2015, 1:54:02 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 5c7fb6c
- Parents:
- c11e31c (diff), b1a6d6b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/ResolvExpr/Resolver.cc
rc11e31c r4bf5298 192 192 193 193 void Resolver::visit( ForStmt *forStmt ) { 194 // SymTab::Indexer::visit( forStmt ); 194 195 Expression *newExpr; 196 // for statements introduce a level of scope 197 enterScope(); 198 maybeAccept( forStmt->get_initialization(), *this ); 195 199 if ( forStmt->get_condition() ) { 196 200 newExpr = findSingleExpression( forStmt->get_condition(), *this ); … … 204 208 forStmt->set_increment( newExpr ); 205 209 } // if 206 207 Visitor::visit( forStmt ); 210 211 maybeAccept( forStmt->get_condition(), *this ); 212 maybeAccept( forStmt->get_increment(), *this ); 213 maybeAccept( forStmt->get_body(), *this ); 214 leaveScope(); 208 215 } 209 216
Note: See TracChangeset
for help on using the changeset viewer.