Esempio n. 1
0
 public Nothing VisitThisExpr(Expr.This expr)
 {
     if (currentClass == ClassType.None)
     {
         Lox.Error(expr.Keyword, "Cannot use 'this' outside of a class.");
         return(Nothing.AtAll);
     }
     ResolveLocal(expr, expr.Keyword);
     return(Nothing.AtAll);
 }
Esempio n. 2
0
 public object VisitThisExpr(Expr.This expr)
 {
     return(LookUpVariable(expr.Keyword, expr));
 }
Esempio n. 3
0
 public string VisitThisExpr(Expr.This expr)
 {
     throw new System.NotImplementedException();
 }