62 references to Utf8StringLiteralToken
Microsoft.AspNetCore.App.Analyzers (4)
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (2)
71token.RawKind == (int)SyntaxKind.Utf8StringLiteralToken || 116else if (token.RawKind == (int)SyntaxKind.Utf8StringLiteralToken)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (1)
70case SyntaxKind.Utf8StringLiteralToken:
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (1)
51rawKind == (int)SyntaxKind.Utf8StringLiteralToken ||
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Expressions.cs (1)
7340Debug.Assert(node.Token.Kind() is SyntaxKind.Utf8StringLiteralToken or SyntaxKind.Utf8SingleLineRawStringLiteralToken or SyntaxKind.Utf8MultiLineRawStringLiteralToken);
CSharpExtensions.cs (1)
239return token.Kind() is (SyntaxKind.StringLiteralToken or SyntaxKind.Utf8StringLiteralToken) && token.Text.Length > 0 && token.Text[0] == '@';
Parser\LanguageParser.cs (3)
10571case SyntaxKind.Utf8StringLiteralToken: 10874case SyntaxKind.Utf8StringLiteralToken: 11481case SyntaxKind.Utf8StringLiteralToken:
Parser\Lexer.cs (1)
391case SyntaxKind.Utf8StringLiteralToken:
Parser\Lexer_StringLiteral.cs (2)
98info.Kind = SyntaxKind.Utf8StringLiteralToken; 243info.Kind = SyntaxKind.Utf8StringLiteralToken;
Syntax\LiteralExpressionSyntax.cs (1)
22SyntaxKind.Utf8StringLiteralExpression => SyntaxKind.Utf8StringLiteralToken,
Syntax\SyntaxEquivalence.cs (1)
89case SyntaxKind.Utf8StringLiteralToken:
Syntax\SyntaxKindFacts.cs (2)
212case SyntaxKind.Utf8StringLiteralToken: 574SyntaxKind.Utf8StringLiteralToken => SyntaxKind.Utf8StringLiteralExpression,
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
72case SyntaxKind.Utf8StringLiteralToken:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (3)
326SyntaxKind.Utf8StringLiteralToken or 335SyntaxKind.Utf8StringLiteralToken or 403SyntaxKind.Utf8StringLiteralToken or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
482case SyntaxKind.Utf8StringLiteralToken:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
61public int? Utf8StringLiteralToken => (int)SyntaxKind.Utf8StringLiteralToken;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
193kind: SyntaxKind.Utf8StringLiteralToken,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
TextStructureNavigation\CSharpTextStructureNavigatorProvider.cs (3)
35case SyntaxKind.Utf8StringLiteralToken: 88SyntaxKind.Utf8StringLiteralToken => position == token.Span.End - 3 && token.Text is [.., '"', 'u' or 'U', '8'], 94if (token.Kind() is SyntaxKind.StringLiteralToken or SyntaxKind.Utf8StringLiteralToken &&
Microsoft.CodeAnalysis.CSharp.Features (6)
BraceMatching\StringLiteralBraceMatcher.cs (1)
37else if (token.IsKind(SyntaxKind.Utf8StringLiteralToken))
EmbeddedLanguages\EmbeddedLanguageUtilities.cs (1)
32return token.Kind() is SyntaxKind.StringLiteralToken or SyntaxKind.Utf8StringLiteralToken && !token.IsVerbatimStringLiteral()
SplitStringLiteral\SimpleStringSplitter.cs (2)
33return _token.IsKind(SyntaxKind.Utf8StringLiteralToken) && CursorPosition >= _token.Span.End - "u8".Length; 46var firstTokenSuffix = _token.Kind() == SyntaxKind.Utf8StringLiteralToken
SplitStringLiteral\StringSplitter.cs (1)
42if (token.Kind() is SyntaxKind.StringLiteralToken or SyntaxKind.Utf8StringLiteralToken)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
193kind: SyntaxKind.Utf8StringLiteralToken,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (21)
Parsing\ParsingTests.cs (1)
303case SyntaxKind.Utf8StringLiteralToken:
Parsing\Utf8StringLiteralsParsingTests.cs (20)
106N(SyntaxKind.Utf8StringLiteralToken, "\"hello\"u8"); 118N(SyntaxKind.Utf8StringLiteralToken, "\"hello\"u8"); 130N(SyntaxKind.Utf8StringLiteralToken, "\"hello\"u8"); 142N(SyntaxKind.Utf8StringLiteralToken, "@\"hello\"u8"); 154N(SyntaxKind.Utf8StringLiteralToken, "@\"hello\"u8"); 166N(SyntaxKind.Utf8StringLiteralToken, "@\"hello\"u8"); 178N(SyntaxKind.Utf8StringLiteralToken, "\"hello\"U8"); 190N(SyntaxKind.Utf8StringLiteralToken, "\"hello\"U8"); 202N(SyntaxKind.Utf8StringLiteralToken, "\"hello\"U8"); 214N(SyntaxKind.Utf8StringLiteralToken, "@\"hello\"U8"); 226N(SyntaxKind.Utf8StringLiteralToken, "@\"hello\"U8"); 238N(SyntaxKind.Utf8StringLiteralToken, "@\"hello\"U8"); 304N(SyntaxKind.Utf8StringLiteralToken, "@\"hello\"u8"); 402N(SyntaxKind.Utf8StringLiteralToken, "\"hello\"u8"); 452N(SyntaxKind.Utf8StringLiteralToken, "@\"hello\"U8"); 502N(SyntaxKind.Utf8StringLiteralToken, "\"hello\"U8"); 620N(SyntaxKind.Utf8StringLiteralToken, "@\"\"\"hello\"\"\"" + suffix); 780N(SyntaxKind.Utf8StringLiteralToken, "@\"\"\"" + @" 949N(SyntaxKind.Utf8StringLiteralToken, "\"hello\"u8"); 965N(SyntaxKind.Utf8StringLiteralToken, "@\"hello\"u8");
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Classification\ClassificationHelpers.cs (1)
142or SyntaxKind.Utf8StringLiteralToken
Classification\Worker.cs (1)
130SyntaxKind.Utf8StringLiteralToken or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
72case SyntaxKind.Utf8StringLiteralToken:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (3)
326SyntaxKind.Utf8StringLiteralToken or 335SyntaxKind.Utf8StringLiteralToken or 403SyntaxKind.Utf8StringLiteralToken or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
482case SyntaxKind.Utf8StringLiteralToken:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
61public int? Utf8StringLiteralToken => (int)SyntaxKind.Utf8StringLiteralToken;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
138is SyntaxKind.Utf8StringLiteralToken