void ExprCompiler::visit(AssignExpr& expr, int dest) { // Compile the value and also make it the result of the expression. compile(expr.value(), dest); // Now assign it to the left-hand side. expr.lvalue()->accept(*this, dest); }
void Resolver::visit(AssignExpr& expr, int dummy) { resolve(expr.value()); expr.lvalue()->accept(*this, dummy); }