79 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 (12)
Binder\Binder_Expressions.cs (1)
7330if (node.Token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken)
Parser\LanguageParser.cs (3)
10637case SyntaxKind.SingleLineRawStringLiteralToken: 10934case SyntaxKind.SingleLineRawStringLiteralToken: 11547case SyntaxKind.SingleLineRawStringLiteralToken:
Parser\Lexer.cs (1)
392case SyntaxKind.SingleLineRawStringLiteralToken:
Parser\Lexer_RawStringLiteral.cs (3)
104Debug.Assert(info.Kind is (SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken)); 110case SyntaxKind.SingleLineRawStringLiteralToken: 128info.Kind = SyntaxKind.SingleLineRawStringLiteralToken;
Syntax\SyntaxEquivalence.cs (1)
90case SyntaxKind.SingleLineRawStringLiteralToken:
Syntax\SyntaxKindFacts.cs (3)
213case SyntaxKind.SingleLineRawStringLiteralToken: 246case SyntaxKind.SingleLineRawStringLiteralToken: 575SyntaxKind.SingleLineRawStringLiteralToken => SyntaxKind.StringLiteralExpression,
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (2)
77case SyntaxKind.SingleLineRawStringLiteralToken: 146if (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)
490case SyntaxKind.SingleLineRawStringLiteralToken: 1198SyntaxKind.SingleLineRawStringLiteralToken or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
61public int? SingleLineRawStringLiteralToken => (int)SyntaxKind.SingleLineRawStringLiteralToken;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (8)
RawStringLiteral\RawStringLiteralCommandHandler_Return.cs (2)
104if (token.Kind() is not (SyntaxKind.SingleLineRawStringLiteralToken or 130case SyntaxKind.SingleLineRawStringLiteralToken when token.Parent is ExpressionSyntax parentExpression:
RawStringLiteral\RawStringLiteralCommandHandler_TypeChar.cs (2)
170if (token.Kind() is not (SyntaxKind.SingleLineRawStringLiteralToken or 229else if (token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken)
StringCopyPaste\StringCopyPasteHelpers.cs (2)
167=> literal.Token.Kind() is SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken; 267(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 (2)
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (1)
197SyntaxKind.SingleLineRawStringLiteralToken,
EmbeddedLanguages\CSharpTestEmbeddedLanguageClassifier.cs (1)
42if (token.Kind() is not (SyntaxKind.StringLiteralToken or SyntaxKind.SingleLineRawStringLiteralToken or SyntaxKind.MultiLineRawStringLiteralToken))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (36)
LexicalAndXml\RawStringLiteralLexingTests.cs (28)
21[InlineData("\"\"\"{|CS8997:|}", SyntaxKind.SingleLineRawStringLiteralToken, "")] 22[InlineData("\"\"\" {|CS8997:|}", SyntaxKind.SingleLineRawStringLiteralToken, " ")] 23[InlineData("\"\"\" \"{|CS8997:|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"")] 24[InlineData("\"\"\" \"\"{|CS8997:|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"")] 25[InlineData("\"\"\" \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " ")] 26[InlineData("\"\"\"\t\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, "\t")] 27[InlineData("\"\"\"a\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, "a")] 28[InlineData("\"\"\"abc\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, "abc")] 29[InlineData("\"\"\" abc \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " abc ")] 30[InlineData("\"\"\" abc \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " abc ")] 31[InlineData("\"\"\" \" \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " \" ")] 32[InlineData("\"\"\" \"\" \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " \"\" ")] 33[InlineData("\"\"\"\" \"\"\" \"\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"\" ")] 34[InlineData("\"\"\"'\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, "'")] 35[InlineData("\"\"\" \"\"\"{|CS8998:\"|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"\"\"")] 36[InlineData("\"\"\" \"\"\"{|CS8998:\"\"|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"\"\"\"")] 37[InlineData("\"\"\" \"\"\"{|CS8998:\"\"\"|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"\"\"\"\"")] 38[InlineData("\"\"\" \"\"\"{|CS8998:\"\"\"\"|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"\"\"\"\"\"")] 39[InlineData("\"\"\"a{|CS8997:\n|}", SyntaxKind.SingleLineRawStringLiteralToken, "a")] 40[InlineData("\"\"\" a {|CS8997:\n|}", SyntaxKind.SingleLineRawStringLiteralToken, " a ")] 41[InlineData("\"\"\" \"{|CS8997:\n|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"")] 42[InlineData("\"\"\" \"\"{|CS8997:\n|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"")] 43[InlineData("\"\"\"a{|CS8997:\r\n|}", SyntaxKind.SingleLineRawStringLiteralToken, "a")] 44[InlineData("\"\"\" a {|CS8997:\r\n|}", SyntaxKind.SingleLineRawStringLiteralToken, " a ")] 45[InlineData("\"\"\" \"{|CS8997:\r\n|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"")] 46[InlineData("\"\"\" \"\"{|CS8997:\r\n|}", SyntaxKind.SingleLineRawStringLiteralToken, " \"\"")] 250"\"\"\"" + charValue + "\"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, charValue.ToString(), testOutput: false); 292TestSingleToken("\"\"\" " + escapeSequence + " \"\"\"", SyntaxKind.SingleLineRawStringLiteralToken, $" {escapeSequence} ");
Parsing\ParsingTests.cs (1)
304case 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)
151or SyntaxKind.SingleLineRawStringLiteralToken
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (2)
77case SyntaxKind.SingleLineRawStringLiteralToken: 146if (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)
490case SyntaxKind.SingleLineRawStringLiteralToken: 1198SyntaxKind.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)