예제 #1
0
파일: Resolver.cpp 프로젝트: relrod/magpie
 void Resolver::visit(SequenceExpr& expr, int dummy)
 {
   for (int i = 0; i < expr.expressions().count(); i++)
   {
     resolve(expr.expressions()[i]);
   }
 }
예제 #2
0
 void ExprCompiler::visit(SequenceExpr& expr, int dest)
 {
   for (int i = 0; i < expr.expressions().count(); i++)
   {
     // TODO(bob): Could compile all but the last expression with a special
     // sigil dest that means "won't use" and some exprs could check that to
     // omit some unnecessary instructions.
     compile(expr.expressions()[i], dest);
   }
 }