60 references to XmlEntityLiteralToken
Microsoft.CodeAnalysis.CSharp (13)
Parser\DocumentationCommentParser.cs (5)
151
case SyntaxKind.
XmlEntityLiteralToken
:
192
|| this.CurrentToken.Kind == SyntaxKind.
XmlEntityLiteralToken
)
533
if ((current.Kind == SyntaxKind.XmlTextLiteralToken || current.Kind == SyntaxKind.
XmlEntityLiteralToken
) &&
540
if ((current.Kind == SyntaxKind.XmlTextLiteralToken || current.Kind == SyntaxKind.
XmlEntityLiteralToken
) &&
608
|| this.CurrentToken.Kind == SyntaxKind.
XmlEntityLiteralToken
Parser\Lexer.cs (6)
407
case SyntaxKind.
XmlEntityLiteralToken
:
2824
info.Kind = SyntaxKind.
XmlEntityLiteralToken
;
3385
info.Kind = SyntaxKind.
XmlEntityLiteralToken
;
3522
info.Kind = SyntaxKind.
XmlEntityLiteralToken
;
3630
info.Kind = SyntaxKind.
XmlEntityLiteralToken
;
3832
info.Kind = SyntaxKind.
XmlEntityLiteralToken
;
Syntax\InternalSyntax\SyntaxFactory.cs (1)
249
return SyntaxToken.WithValue(SyntaxKind.
XmlEntityLiteralToken
, leading, text, value, trailing);
Syntax\SyntaxKindFacts.cs (1)
221
case SyntaxKind.
XmlEntityLiteralToken
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (46)
LexicalAndXml\CrefLexerTests.cs (20)
108
AssertTokens("\u0067lobal", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0067lobal"));
109
AssertTokens("\u006Fperator", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u006Fperator"));
110
AssertTokens("\u0065xplicit", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0065xplicit"));
111
AssertTokens("\u0069mplicit", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0069mplicit"));
112
AssertTokens("\u0072ef", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0072ef"));
113
AssertTokens("\u006Fut", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u006Fut"));
114
AssertTokens("\u0074rue", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0074rue"));
115
AssertTokens("\u0066alse", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0066alse"));
216
AssertTokens("&", Token(SyntaxKind.
XmlEntityLiteralToken
, "&")); // Not valid XML
323
AssertTokens("&", Token(SyntaxKind.
XmlEntityLiteralToken
, "&"));
324
AssertTokens("&&", Token(SyntaxKind.
XmlEntityLiteralToken
, "&"), Token(SyntaxKind.
XmlEntityLiteralToken
, "&"));
325
AssertTokens("&;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&;"));
326
AssertTokens("&a;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&a;"));
327
AssertTokens("&#;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&#;"));
328
AssertTokens("&#x;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&#x;"));
329
AssertTokens("&#a;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&#"), Token(SyntaxKind.IdentifierToken, "a"), Token(SyntaxKind.BadToken, ";"));
330
AssertTokens("&#xg;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&#x"), Token(SyntaxKind.IdentifierToken, "g"), Token(SyntaxKind.BadToken, ";"));
333
AssertTokens("�", Token(SyntaxKind.
XmlEntityLiteralToken
, "�"));
334
AssertTokens("�", Token(SyntaxKind.
XmlEntityLiteralToken
, "�"));
LexicalAndXml\NameAttributeValueLexerTests.cs (20)
113
AssertTokens("\u0067lobal", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0067lobal"));
114
AssertTokens("\u006Fperator", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u006Fperator"));
115
AssertTokens("\u0065xplicit", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0065xplicit"));
116
AssertTokens("\u0069mplicit", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0069mplicit"));
117
AssertTokens("\u0072ef", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0072ef"));
118
AssertTokens("\u006Fut", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u006Fut"));
119
AssertTokens("\u0074rue", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0074rue"));
120
AssertTokens("\u0066alse", Token(SyntaxKind.
XmlEntityLiteralToken
, "\", "\\"), Token(SyntaxKind.IdentifierToken, "u0066alse"));
223
AssertTokens("&", Token(SyntaxKind.
XmlEntityLiteralToken
, "&")); // Not valid XML
332
AssertTokens("&", Token(SyntaxKind.
XmlEntityLiteralToken
, "&"));
333
AssertTokens("&&", Token(SyntaxKind.
XmlEntityLiteralToken
, "&"), Token(SyntaxKind.
XmlEntityLiteralToken
, "&"));
334
AssertTokens("&;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&;"));
335
AssertTokens("&a;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&a;"));
336
AssertTokens("&#;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&#;"));
337
AssertTokens("&#x;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&#x;"));
338
AssertTokens("&#a;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&#"), Token(SyntaxKind.IdentifierToken, "a"), Token(SyntaxKind.BadToken, ";"));
339
AssertTokens("&#xg;", Token(SyntaxKind.
XmlEntityLiteralToken
, "&#x"), Token(SyntaxKind.IdentifierToken, "g"), Token(SyntaxKind.BadToken, ";"));
342
AssertTokens("�", Token(SyntaxKind.
XmlEntityLiteralToken
, "�"));
343
AssertTokens("�", Token(SyntaxKind.
XmlEntityLiteralToken
, "�"));
Parsing\VerbatimCrefParsingTests.cs (4)
67
N(SyntaxKind.
XmlEntityLiteralToken
);
88
N(SyntaxKind.
XmlEntityLiteralToken
);
108
N(SyntaxKind.
XmlEntityLiteralToken
);
109
N(SyntaxKind.
XmlEntityLiteralToken
);
Syntax\SyntaxTests.cs (2)
212
[InlineData(SyntaxKind.
XmlEntityLiteralToken
)]
226
[InlineData(SyntaxKind.
XmlEntityLiteralToken
)]
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Classification\Worker_DocumentationComments.cs (1)
155
if (token.Kind() == SyntaxKind.
XmlEntityLiteralToken
)