50 references to XmlParseErrorCode
Microsoft.CodeAnalysis.CSharp (49)
Errors\ErrorFacts.cs (1)
178public static string GetMessage(XmlParseErrorCode id, CultureInfo culture)
Errors\XmlSyntaxDiagnosticInfo.cs (4)
18private readonly XmlParseErrorCode _xmlErrorCode; 20internal XmlSyntaxDiagnosticInfo(XmlParseErrorCode code, params object[] args) 25internal XmlSyntaxDiagnosticInfo(int offset, int width, XmlParseErrorCode code, params object[] args) 52_xmlErrorCode = (XmlParseErrorCode)reader.ReadUInt32();
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)
119XmlParseErrorCode code = endTag ? XmlParseErrorCode.XML_EndTagNotExpected : XmlParseErrorCode.XML_ExpectedEndOfXml; 211name = this.WithXmlParseError(name, XmlParseErrorCode.XML_InvalidWhitespace); 239lessThanSlash = this.WithXmlParseError(lessThanSlash, XmlParseErrorCode.XML_EndTagExpected, name.ToString()); 250endName = this.WithXmlParseError(endName, XmlParseErrorCode.XML_InvalidWhitespace); 255endName = this.WithXmlParseError(endName, XmlParseErrorCode.XML_ElementTypeMatch, endName.ToString(), name.ToString()); 264XmlParseErrorCode.XML_InvalidToken 285slashGreater = this.WithXmlParseError(slashGreater, XmlParseErrorCode.XML_ExpectedEndOfTag, name.ToString()); 335attr = this.WithXmlParseError(attr, XmlParseErrorCode.XML_DuplicateAttribute, attrName); 359XmlParseErrorCode.XML_InvalidToken 381XmlParseErrorCode error 449attrName = this.WithXmlParseError(attrName, XmlParseErrorCode.XML_WhitespaceMissing); 455equals = this.WithXmlParseError(equals, XmlParseErrorCode.XML_MissingEqualsAttribute); 620token = this.WithXmlParseError(token, XmlParseErrorCode.XML_LessThanInAttributeValue); 648startQuote = this.WithXmlParseError(startQuote, XmlParseErrorCode.XML_StringLiteralNoStartQuote); 663endQuote = this.WithXmlParseError(endQuote, XmlParseErrorCode.XML_StringLiteralNoEndQuote); 672quote = this.WithXmlParseError(quote, XmlParseErrorCode.XML_StringLiteralNonAsciiQuote); 702colon = WithAdditionalDiagnostics(colon, new XmlSyntaxDiagnosticInfo(offset, width, XmlParseErrorCode.XML_InvalidWhitespace)); 715id = WithAdditionalDiagnostics(id, new XmlSyntaxDiagnosticInfo(offset, width, XmlParseErrorCode.XML_InvalidWhitespace)); 738token = this.WithXmlParseError(token, XmlParseErrorCode.XML_IncorrectComment); 808return new XmlSyntaxDiagnosticInfo(offset, length, XmlParseErrorCode.XML_ExpectedIdentifier); 811return new XmlSyntaxDiagnosticInfo(offset, length, XmlParseErrorCode.XML_InvalidToken, SyntaxFacts.GetText(actual)); 829return new XmlSyntaxDiagnosticInfo(XmlParseErrorCode.XML_ExpectedIdentifier); 832return new XmlSyntaxDiagnosticInfo(XmlParseErrorCode.XML_InvalidToken, SyntaxFacts.GetText(actual)); 836private TNode WithXmlParseError<TNode>(TNode node, XmlParseErrorCode code) where TNode : CSharpSyntaxNode 841private TNode WithXmlParseError<TNode>(TNode node, XmlParseErrorCode code, params string[] args) where TNode : CSharpSyntaxNode 846private SyntaxToken WithXmlParseError(SyntaxToken node, XmlParseErrorCode code, params string[] args)
Parser\Lexer.cs (10)
3297XmlParseErrorCode? error = null; 3333error = XmlParseErrorCode.XML_RefUndefinedEntity_1; 3374error = XmlParseErrorCode.XML_InvalidCharEntity; 3394error = XmlParseErrorCode.XML_InvalidUnicodeChar; 3404error = XmlParseErrorCode.XML_InvalidWhitespace; 3411error = XmlParseErrorCode.XML_InvalidToken; 3426error = XmlParseErrorCode.XML_InvalidToken; 3466this.AddError(XmlParseErrorCode.XML_CDataEndTagNotAllowed); 3981this.AddError(XmlParseErrorCode.XML_LessThanInAttributeValue, info.Text); //ErrorCode.WRN_XMLParseError 4223this.AddError(XmlParseErrorCode.XML_InvalidUnicodeChar);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
122verifyWithSeverity(new XmlSyntaxDiagnosticInfo(XmlParseErrorCode.XML_EndTagExpected, args));