static void DeclarationCheck(Token t) { if (t.Type == TokenType.Identifier && currentVisibility.Find(t.Value) == null) throw new ErrorException("Использование ранее необъявленной переменной", t, ErrorType.SyntaxError); }
public ErrorException(string message, Token token, ErrorType type) : base(message) { Type = type; Position = token.Position; Line = token.Line; Length = token.Length; }