public object VisitThisExpr(This expr) { if (currentClass == ClassType.NONE) { CsLox.Error(expr.Keyword, "Cannot use 'this' outside of a class."); } ResolveLocal(expr, expr.Keyword); return(null); }
public object VisitThisExpr(This expr) { return(LookUpVariable(expr.Keyword, expr)); }
public string VisitThisExpr(This expr) { throw new System.NotImplementedException(); }