Ignore:
Timestamp:
May 14, 2015, 12:19:46 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
4bf5298
Parents:
d4778a6
Message:

removed duplicate adapters, switch to c99 for initializer declarations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/ResolvExpr/Resolver.cc

    rd4778a6 rb1a6d6b  
    192192
    193193    void Resolver::visit( ForStmt *forStmt ) {
     194        // SymTab::Indexer::visit( forStmt );
    194195        Expression *newExpr;
     196        // for statements introduce a level of scope
     197        enterScope();
     198        maybeAccept( forStmt->get_initialization(), *this );
    195199        if ( forStmt->get_condition() ) {
    196200            newExpr = findSingleExpression( forStmt->get_condition(), *this );
     
    204208            forStmt->set_increment( newExpr );
    205209        } // 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();
    208215    }
    209216
Note: See TracChangeset for help on using the changeset viewer.