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