Exemple #1
0
        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);
        }
Exemple #2
0
 public object VisitThisExpr(This expr)
 {
     return(LookUpVariable(expr.Keyword, expr));
 }
Exemple #3
0
 public string VisitThisExpr(This expr)
 {
     throw new System.NotImplementedException();
 }