48 references to XmlParseErrorCode
Microsoft.CodeAnalysis.CSharp (48)
Errors\ErrorFacts.cs (1)
182public static string GetMessage(XmlParseErrorCode id, CultureInfo culture)
Errors\XmlSyntaxDiagnosticInfo.cs (3)
13private readonly XmlParseErrorCode _xmlErrorCode; 15internal XmlSyntaxDiagnosticInfo(XmlParseErrorCode code, params object[] args) 20internal XmlSyntaxDiagnosticInfo(int offset, int width, XmlParseErrorCode code, params object[] args)
Parser\AbstractLexer.cs (6)
76protected void AddError(int position, int width, XmlParseErrorCode code, params object[] args) 91protected void AddError(XmlParseErrorCode code) 96protected void AddError(XmlParseErrorCode code, params object[] args) 126protected XmlSyntaxDiagnosticInfo MakeError(int position, int width, XmlParseErrorCode code, params object[] args) 147protected static XmlSyntaxDiagnosticInfo MakeError(XmlParseErrorCode code) 152protected static XmlSyntaxDiagnosticInfo MakeError(XmlParseErrorCode code, params object[] args)
Parser\DocumentationCommentParser.cs (28)
118XmlParseErrorCode code = endTag ? XmlParseErrorCode.XML_EndTagNotExpected : XmlParseErrorCode.XML_ExpectedEndOfXml; 210name = this.WithXmlParseError(name, XmlParseErrorCode.XML_InvalidWhitespace); 238lessThanSlash = this.WithXmlParseError(lessThanSlash, XmlParseErrorCode.XML_EndTagExpected, name.ToString()); 249endName = this.WithXmlParseError(endName, XmlParseErrorCode.XML_InvalidWhitespace); 254endName = this.WithXmlParseError(endName, XmlParseErrorCode.XML_ElementTypeMatch, endName.ToString(), name.ToString()); 263XmlParseErrorCode.XML_InvalidToken 284slashGreater = this.WithXmlParseError(slashGreater, XmlParseErrorCode.XML_ExpectedEndOfTag, name.ToString()); 334attr = this.WithXmlParseError(attr, XmlParseErrorCode.XML_DuplicateAttribute, attrName); 354XmlParseErrorCode.XML_InvalidToken 376XmlParseErrorCode error 444attrName = this.WithXmlParseError(attrName, XmlParseErrorCode.XML_WhitespaceMissing); 450equals = this.WithXmlParseError(equals, XmlParseErrorCode.XML_MissingEqualsAttribute); 615token = this.WithXmlParseError(token, XmlParseErrorCode.XML_LessThanInAttributeValue); 643startQuote = this.WithXmlParseError(startQuote, XmlParseErrorCode.XML_StringLiteralNoStartQuote); 658endQuote = this.WithXmlParseError(endQuote, XmlParseErrorCode.XML_StringLiteralNoEndQuote); 667quote = this.WithXmlParseError(quote, XmlParseErrorCode.XML_StringLiteralNonAsciiQuote); 697colon = WithAdditionalDiagnostics(colon, new XmlSyntaxDiagnosticInfo(offset, width, XmlParseErrorCode.XML_InvalidWhitespace)); 710id = WithAdditionalDiagnostics(id, new XmlSyntaxDiagnosticInfo(offset, width, XmlParseErrorCode.XML_InvalidWhitespace)); 733token = this.WithXmlParseError(token, XmlParseErrorCode.XML_IncorrectComment); 803return new XmlSyntaxDiagnosticInfo(offset, length, XmlParseErrorCode.XML_ExpectedIdentifier); 806return new XmlSyntaxDiagnosticInfo(offset, length, XmlParseErrorCode.XML_InvalidToken, SyntaxFacts.GetText(actual)); 824return new XmlSyntaxDiagnosticInfo(XmlParseErrorCode.XML_ExpectedIdentifier); 827return new XmlSyntaxDiagnosticInfo(XmlParseErrorCode.XML_InvalidToken, SyntaxFacts.GetText(actual)); 831private TNode WithXmlParseError<TNode>(TNode node, XmlParseErrorCode code) where TNode : CSharpSyntaxNode 836private TNode WithXmlParseError<TNode>(TNode node, XmlParseErrorCode code, params string[] args) where TNode : CSharpSyntaxNode 841private SyntaxToken WithXmlParseError(SyntaxToken node, XmlParseErrorCode code, params string[] args)
Parser\Lexer.cs (10)
2955XmlParseErrorCode? error = null; 2991error = XmlParseErrorCode.XML_RefUndefinedEntity_1; 3032error = XmlParseErrorCode.XML_InvalidCharEntity; 3052error = XmlParseErrorCode.XML_InvalidUnicodeChar; 3062error = XmlParseErrorCode.XML_InvalidWhitespace; 3069error = XmlParseErrorCode.XML_InvalidToken; 3084error = XmlParseErrorCode.XML_InvalidToken; 3124this.AddError(XmlParseErrorCode.XML_CDataEndTagNotAllowed); 3639this.AddError(XmlParseErrorCode.XML_LessThanInAttributeValue, info.Text); //ErrorCode.WRN_XMLParseError 3881this.AddError(XmlParseErrorCode.XML_InvalidUnicodeChar);