internal ParseError(ParseErrorType errorType, ParseErrorLocation location, string customText) : this() { ErrorType = errorType; Location = location; Text = customText; }
internal bool AddParseError(ParseErrorType type, ParseErrorLocation location, string customText) { if (_parseErrors == null) { _parseErrors = new List <ParseError>(); } else { // Check if it was already added for (int i = 0; i < _parseErrors.Count; i++) { if (_parseErrors[i].ErrorType == type && _parseErrors[i].Location == location) { return(false); } } } _parseErrors.Add(new ParseError(type, location, customText)); return(true); }
internal bool AddParseError(ParseErrorType type, ParseErrorLocation location) { return(AddParseError(type, location, null)); }
internal ParseError(ParseErrorType errorType, ParseErrorLocation location) : this(errorType, location, null) { }