public object VisitThisExpr(This expr) { if (currentClass == ClassType.NONE) { Lox.Error(expr.keyword, "Can't use this outside of a class."); return(null); } ResolveLocal(expr, expr.keyword); return(null); }
public string VisitThisExpr(This @this) { throw new NotImplementedException(); }
public object VisitThisExpr(This expr) { return(LookUpVariable(expr.keyword, expr)); }