public Void VisitThisExpr(Expr.This expr) { if (currentClass == ClassType.NONE) { ElizScriptCompiler.Error(expr.keyword, "Cannot use 'this' outside of a class."); return(null); } ResolveLocal(expr, expr.keyword); return(null); }
public object VisitThisExpr(Expr.This expr) { return(LookUpVariable(expr.keyword, expr)); }