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