void Resolver::visit(SequenceExpr& expr, int dummy) { for (int i = 0; i < expr.expressions().count(); i++) { resolve(expr.expressions()[i]); } }
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); } }