90 references to SingleLineRawStringLiteralToken
Microsoft.AspNetCore.App.Analyzers (3)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (2)
75case SyntaxKind.SingleLineRawStringLiteralToken: 147if (token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.Utf8SingleLineRawStringLiteralToken)
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (1)
49rawKind == (int)SyntaxKind.SingleLineRawStringLiteralToken ||
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Expressions.cs (1)
7456if (node.Token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken)
Parser\LanguageParser.cs (3)
10948case SyntaxKind.SingleLineRawStringLiteralToken: 11245case SyntaxKind.SingleLineRawStringLiteralToken: 11882case SyntaxKind.SingleLineRawStringLiteralToken:
Parser\Lexer.cs (1)
381case SyntaxKind.SingleLineRawStringLiteralToken:
Parser\Lexer_RawStringLiteral.cs (3)
73Debug.Assert(info.Kind is (SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken)); 79case SyntaxKind.SingleLineRawStringLiteralToken: 103info.Kind = SyntaxKind.SingleLineRawStringLiteralToken;
Syntax.xml.Internal.Generated.cs (2)
29144case SyntaxKind.SingleLineRawStringLiteralToken: 34511case SyntaxKind.SingleLineRawStringLiteralToken:
Syntax.xml.Main.Generated.cs (1)
2963case SyntaxKind.SingleLineRawStringLiteralToken:
Syntax\SyntaxEquivalence.cs (1)
90case SyntaxKind.SingleLineRawStringLiteralToken:
Syntax\SyntaxKindFacts.cs (3)
213case SyntaxKind.SingleLineRawStringLiteralToken: 246case SyntaxKind.SingleLineRawStringLiteralToken: 600SyntaxKind.SingleLineRawStringLiteralToken => SyntaxKind.StringLiteralExpression,
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (2)
76case SyntaxKind.SingleLineRawStringLiteralToken: 144if (token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.Utf8SingleLineRawStringLiteralToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (3)
328SyntaxKind.SingleLineRawStringLiteralToken or 349if (kind is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken) 405SyntaxKind.SingleLineRawStringLiteralToken or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
478case SyntaxKind.SingleLineRawStringLiteralToken: 1103SyntaxKind.SingleLineRawStringLiteralToken or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
61public int? SingleLineRawStringLiteralToken => (int)SyntaxKind.SingleLineRawStringLiteralToken;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (6)
RawStringLiteral\RawStringLiteralCommandHandler_Return.cs (2)
106if (token.Kind() is not (SyntaxKind.SingleLineRawStringLiteralToken or 140case SyntaxKind.SingleLineRawStringLiteralToken when token.Parent is ExpressionSyntax parentExpression:
StringCopyPaste\StringCopyPasteHelpers.cs (2)
168=> literal.Token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken; 268(int)SyntaxKind.SingleLineRawStringLiteralToken or
StringCopyPaste\StringInfo.cs (1)
96if (literal.Token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken)
TextStructureNavigation\CSharpTextStructureNavigatorProvider.cs (1)
60var isRawStringLiteral = token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.Utf8SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken or SyntaxKind.Utf8MultiLineRawStringLiteralToken;
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (1)
195SyntaxKind.SingleLineRawStringLiteralToken,
EmbeddedLanguages\CSharpTestEmbeddedLanguageClassifier.cs (1)
34if (token.Kind() is not (SyntaxKind.StringLiteralToken or SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken))
RawStringLiteral\CSharpRawStringLiteralOnAutoInsertService.cs (2)
115if (token.Kind() is not (SyntaxKind.SingleLineRawStringLiteralToken or 169else if (token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (36)
LexicalAndXml\RawStringLiteralLexingTests.cs (28)
22[InlineData("\"\"\"{|CS8997:|}", SyntaxKind.SingleLineRawStringLiteralToken, "")] 23[InlineData("\"\"\" {|CS8997:|}", SyntaxKind.SingleLineRawStringLiteralToken, " ")] 24[InlineData("\"\"\" \"{|CS8997:|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"")] 25[InlineData("\"\"\" \"\"{|CS8997:|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"")] 26[InlineData("\"\"\" \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " ")] 27[InlineData("\"\"\"\t\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, "\t")] 28[InlineData("\"\"\"a\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, "a")] 29[InlineData("\"\"\"abc\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, "abc")] 30[InlineData("\"\"\" abc \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " abc ")] 31[InlineData("\"\"\" abc \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " abc ")] 32[InlineData("\"\"\" \" \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " \" ")] 33[InlineData("\"\"\" \"\" \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " \"\" ")] 34[InlineData("\"\"\"\" \"\"\" \"\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"\" ")] 35[InlineData("\"\"\"'\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, "'")] 36[InlineData("\"\"\" \"\"\"{|CS8998:\"|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"\"\"")] 37[InlineData("\"\"\" \"\"\"{|CS8998:\"\"|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"\"\"\"")] 38[InlineData("\"\"\" \"\"\"{|CS8998:\"\"\"|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"\"\"\"\"")] 39[InlineData("\"\"\" \"\"\"{|CS8998:\"\"\"\"|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"\"\"\"\"\"")] 40[InlineData("\"\"\"a{|CS8997:|}\n", SyntaxKind.SingleLineRawStringLiteralToken, "a")] 41[InlineData("\"\"\" a {|CS8997:|}\n", SyntaxKind.SingleLineRawStringLiteralToken, " a ")] 42[InlineData("\"\"\" \"{|CS8997:|}\n", SyntaxKind.SingleLineRawStringLiteralToken, " \"")] 43[InlineData("\"\"\" \"\"{|CS8997:|}\n", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"")] 44[InlineData("\"\"\"a{|CS8997:|}\r\n", SyntaxKind.SingleLineRawStringLiteralToken, "a")] 45[InlineData("\"\"\" a {|CS8997:|}\r\n", SyntaxKind.SingleLineRawStringLiteralToken, " a ")] 46[InlineData("\"\"\" \"{|CS8997:|}\r\n", SyntaxKind.SingleLineRawStringLiteralToken, " \"")] 47[InlineData("\"\"\" \"\"{|CS8997:|}\r\n", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"")] 250"\"\"\"" + charValue + "\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, charValue.ToString(), testOutput: false); 292TestSingleToken("\"\"\" " + escapeSequence + " \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, $" {escapeSequence} ");
Parsing\ParsingTests.cs (1)
431or SyntaxKind.SingleLineRawStringLiteralToken
Parsing\Utf8StringLiteralsParsingTests.cs (4)
50N(SyntaxKind.SingleLineRawStringLiteralToken, "\"\"\"hello\"\"\""); 641N(SyntaxKind.SingleLineRawStringLiteralToken, "\"\"\"hello\"\"\""); 659N(SyntaxKind.SingleLineRawStringLiteralToken, "\"\"\"hello\"\"\""); 675N(SyntaxKind.SingleLineRawStringLiteralToken, "\"\"\"hello\"\"\"");
Syntax\SyntaxTests.cs (3)
206[InlineData(SyntaxKind.SingleLineRawStringLiteralToken)] 220[InlineData(SyntaxKind.SingleLineRawStringLiteralToken)] 234[InlineData(SyntaxKind.SingleLineRawStringLiteralToken, SyntaxKind.StringLiteralExpression)]
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Classification\ClassificationHelpers.cs (1)
153or SyntaxKind.SingleLineRawStringLiteralToken
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (2)
76case SyntaxKind.SingleLineRawStringLiteralToken: 144if (token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.Utf8SingleLineRawStringLiteralToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (3)
328SyntaxKind.SingleLineRawStringLiteralToken or 349if (kind is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken) 405SyntaxKind.SingleLineRawStringLiteralToken or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
478case SyntaxKind.SingleLineRawStringLiteralToken: 1103SyntaxKind.SingleLineRawStringLiteralToken or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
61public int? SingleLineRawStringLiteralToken => (int)SyntaxKind.SingleLineRawStringLiteralToken;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
142if (token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken)
Roslyn.Diagnostics.CSharp.Analyzers (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (2)
76case SyntaxKind.SingleLineRawStringLiteralToken: 144if (token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.Utf8SingleLineRawStringLiteralToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (3)
328SyntaxKind.SingleLineRawStringLiteralToken or 349if (kind is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken) 405SyntaxKind.SingleLineRawStringLiteralToken or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
478case SyntaxKind.SingleLineRawStringLiteralToken: 1103SyntaxKind.SingleLineRawStringLiteralToken or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
61public int? SingleLineRawStringLiteralToken => (int)SyntaxKind.SingleLineRawStringLiteralToken;