public object visitExprVarExpr(ExprVar expr) { bool x; if (scopes.Count > 0 && scopes.Peek().TryGetValue(expr.name.lexeme, out x) && !x) { Program.error(expr.name, "Cannot read local variable in its own initializer."); } resolveLocal(expr, expr.name); return(null); }
public object visitExprVarExpr(ExprVar expr) { return(lookUpVariable(expr.name, expr)); }
public object visitExprVarExpr(ExprVar expr) { return(expr.name); }