Exemplo n.º 1
0
 internal ParseError(ParseErrorType errorType, ParseErrorLocation location, string customText)
     : this()
 {
     ErrorType = errorType;
     Location  = location;
     Text      = customText;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 internal bool AddParseError(ParseErrorType type, ParseErrorLocation location)
 {
     return(AddParseError(type, location, null));
 }
Exemplo n.º 4
0
 internal ParseError(ParseErrorType errorType, ParseErrorLocation location)
     : this(errorType, location, null)
 {
 }