81 references to CharacterLiteralToken
Microsoft.AspNetCore.App.Analyzers (4)
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (3)
72
token.RawKind == (int)SyntaxKind.
CharacterLiteralToken
)
84
token.RawKind == (int)SyntaxKind.
CharacterLiteralToken
)
112
token.RawKind == (int)SyntaxKind.
CharacterLiteralToken
)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (1)
62
case SyntaxKind.
CharacterLiteralToken
:
Microsoft.CodeAnalysis.CSharp (12)
Parser\LanguageParser.cs (3)
10622
case SyntaxKind.
CharacterLiteralToken
:
10922
case SyntaxKind.
CharacterLiteralToken
:
11527
case SyntaxKind.
CharacterLiteralToken
:
Parser\Lexer.cs (1)
398
case SyntaxKind.
CharacterLiteralToken
:
Parser\Lexer_StringLiteral.cs (1)
77
info.Kind = SyntaxKind.
CharacterLiteralToken
;
Syntax\InternalSyntax\SyntaxFactory.cs (2)
138
Debug.Assert(kind != SyntaxKind.
CharacterLiteralToken
);
219
return SyntaxToken.WithValue(SyntaxKind.
CharacterLiteralToken
, leading, text, value, trailing);
Syntax\LiteralExpressionSyntax.cs (1)
23
SyntaxKind.CharacterLiteralExpression => SyntaxKind.
CharacterLiteralToken
,
Syntax\SyntaxEquivalence.cs (1)
87
case SyntaxKind.
CharacterLiteralToken
:
Syntax\SyntaxFactory.cs (1)
254
case SyntaxKind.
CharacterLiteralToken
:
Syntax\SyntaxKindFacts.cs (2)
217
case SyntaxKind.
CharacterLiteralToken
:
579
SyntaxKind.
CharacterLiteralToken
=> SyntaxKind.CharacterLiteralExpression,
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
64
case SyntaxKind.
CharacterLiteralToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
129
case SyntaxKind.
CharacterLiteralToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (2)
323
SyntaxKind.
CharacterLiteralToken
or
451
if (token.Kind() == SyntaxKind.
CharacterLiteralToken
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
480
case SyntaxKind.
CharacterLiteralToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
50
public int CharacterLiteralToken => (int)SyntaxKind.
CharacterLiteralToken
;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
232
if (previousToken.Kind() == SyntaxKind.
CharacterLiteralToken
&& previousToken.ToString().Last() != '\'')
TextStructureNavigation\CSharpTextStructureNavigatorProvider.cs (1)
51
case SyntaxKind.
CharacterLiteralToken
:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (2)
2025
await AutoFormatOnMarkerAsync(code, expected, SyntaxKind.
CharacterLiteralToken
, SyntaxKind.None);
2034
await AutoFormatOnMarkerAsync(code, expected, SyntaxKind.
CharacterLiteralToken
, SyntaxKind.None);
Microsoft.CodeAnalysis.CSharp.Features (2)
BraceCompletion\CharLiteralBraceCompletionService.cs (2)
25
protected override bool IsValidOpeningBraceToken(SyntaxToken token) => token.IsKind(SyntaxKind.
CharacterLiteralToken
);
27
protected override bool IsValidClosingBraceToken(SyntaxToken token) => token.IsKind(SyntaxKind.
CharacterLiteralToken
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (46)
LexicalAndXml\LexicalTests.cs (24)
1208
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1224
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1240
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1256
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1272
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1288
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1304
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1320
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1336
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1353
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1369
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1385
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1401
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1417
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1433
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1449
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1465
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1481
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1497
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1514
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1531
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1547
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1565
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
1585
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, token.Kind());
Parsing\AwaitParsingTests.cs (1)
2330
N(SyntaxKind.
CharacterLiteralToken
);
Parsing\ExpressionParsingTests.cs (1)
546
Assert.Equal(SyntaxKind.
CharacterLiteralToken
, us.Token.Kind());
Parsing\PatternParsingTests.cs (12)
7114
N(SyntaxKind.
CharacterLiteralToken
);
7137
N(SyntaxKind.
CharacterLiteralToken
);
7161
N(SyntaxKind.
CharacterLiteralToken
);
7177
N(SyntaxKind.
CharacterLiteralToken
);
9858
N(SyntaxKind.
CharacterLiteralToken
);
9867
N(SyntaxKind.
CharacterLiteralToken
);
9879
N(SyntaxKind.
CharacterLiteralToken
);
9888
N(SyntaxKind.
CharacterLiteralToken
);
11500
N(SyntaxKind.
CharacterLiteralToken
);
11509
N(SyntaxKind.
CharacterLiteralToken
);
11526
N(SyntaxKind.
CharacterLiteralToken
);
11535
N(SyntaxKind.
CharacterLiteralToken
);
Parsing\PatternParsingTests_ListPatterns.cs (2)
1217
N(SyntaxKind.
CharacterLiteralToken
);
1268
N(SyntaxKind.
CharacterLiteralToken
);
Parsing\TopLevelStatementsParsingTests.cs (1)
2522
N(SyntaxKind.
CharacterLiteralToken
);
Syntax\SyntaxFactoryTests.cs (2)
142
Assert.Throws<ArgumentException>(() => SyntaxFactory.Token(default(SyntaxTriviaList), SyntaxKind.
CharacterLiteralToken
, "text", "valueText", default(SyntaxTriviaList)));
161
SyntaxFactory.Token(default(SyntaxTriviaList), SyntaxKind.
CharacterLiteralToken
, "text", "valueText", default(SyntaxTriviaList));
Syntax\SyntaxTests.cs (3)
208
[InlineData(SyntaxKind.
CharacterLiteralToken
)]
222
[InlineData(SyntaxKind.
CharacterLiteralToken
)]
236
[InlineData(SyntaxKind.
CharacterLiteralToken
, SyntaxKind.CharacterLiteralExpression)]
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\ClassificationHelpers.cs (1)
143
or SyntaxKind.
CharacterLiteralToken
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
64
case SyntaxKind.
CharacterLiteralToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
129
case SyntaxKind.
CharacterLiteralToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (2)
323
SyntaxKind.
CharacterLiteralToken
or
451
if (token.Kind() == SyntaxKind.
CharacterLiteralToken
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
480
case SyntaxKind.
CharacterLiteralToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
50
public int CharacterLiteralToken => (int)SyntaxKind.
CharacterLiteralToken
;