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