public object VisitSuperExpression(SuperExpression expression) { if (_currentClassType == ClassType.None) { ErrorState.AddError(expression.Keyword, "Cannot use 'super' outside of a class."); } else if (_currentClassType != ClassType.SubClass) { ErrorState.AddError(expression.Keyword, "Cannot use 'super' in a class with no superclass."); } ResolveLocal(expression, expression.Keyword); return(null); }
public string VisitSuperExpression(SuperExpression expression) { throw new System.NotImplementedException(); }