Exemple #1
0
        public object VisitThisExpression(ThisExpression expression)
        {
            if (_currentClassType == ClassType.None)
            {
                ErrorState.AddError(expression.Keyword, "Cannot use 'this' outside of a class.");
            }
            else
            {
                ResolveLocal(expression, expression.Keyword);
            }

            return(null);
        }
Exemple #2
0
 public string VisitThisExpression(ThisExpression expression)
 {
     throw new System.NotImplementedException();
 }