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