73 references to SingleLineRawStringLiteralToken
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Expressions.cs (1)
6265
if (node.Token.Kind() is SyntaxKind.
SingleLineRawStringLiteralToken
or SyntaxKind.MultiLineRawStringLiteralToken)
Parser\LanguageParser.cs (3)
9956
case SyntaxKind.
SingleLineRawStringLiteralToken
:
10251
case SyntaxKind.
SingleLineRawStringLiteralToken
:
10714
case SyntaxKind.
SingleLineRawStringLiteralToken
:
Parser\Lexer.cs (1)
390
case SyntaxKind.
SingleLineRawStringLiteralToken
:
Parser\Lexer_RawStringLiteral.cs (3)
104
Debug.Assert(info.Kind is (SyntaxKind.
SingleLineRawStringLiteralToken
or SyntaxKind.MultiLineRawStringLiteralToken));
110
case SyntaxKind.
SingleLineRawStringLiteralToken
:
128
info.Kind = SyntaxKind.
SingleLineRawStringLiteralToken
;
Syntax\SyntaxEquivalence.cs (1)
86
case SyntaxKind.
SingleLineRawStringLiteralToken
:
Syntax\SyntaxKindFacts.cs (3)
185
case SyntaxKind.
SingleLineRawStringLiteralToken
:
218
case SyntaxKind.
SingleLineRawStringLiteralToken
:
547
SyntaxKind.
SingleLineRawStringLiteralToken
=> SyntaxKind.StringLiteralExpression,
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
CSharpSyntaxFacts.cs (1)
487
case SyntaxKind.
SingleLineRawStringLiteralToken
:
CSharpSyntaxKinds.cs (1)
52
public int? SingleLineRawStringLiteralToken => (int)SyntaxKind.
SingleLineRawStringLiteralToken
;
CSharpVirtualCharService.cs (2)
75
case SyntaxKind.
SingleLineRawStringLiteralToken
:
144
if (token.Kind() is SyntaxKind.
SingleLineRawStringLiteralToken
or SyntaxKind.Utf8SingleLineRawStringLiteralToken)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
366
SyntaxKind.
SingleLineRawStringLiteralToken
or
375
if (token.Kind() is SyntaxKind.
SingleLineRawStringLiteralToken
or SyntaxKind.MultiLineRawStringLiteralToken)
429
SyntaxKind.
SingleLineRawStringLiteralToken
or
Microsoft.CodeAnalysis.CSharp.EditorFeatures (8)
RawStringLiteral\RawStringLiteralCommandHandler_Return.cs (1)
94
if (token.Kind() is not (SyntaxKind.
SingleLineRawStringLiteralToken
or
RawStringLiteral\RawStringLiteralCommandHandler_TypeChar.cs (2)
170
if (token.Kind() is not (SyntaxKind.
SingleLineRawStringLiteralToken
or
229
else if (token.Kind() is SyntaxKind.
SingleLineRawStringLiteralToken
or SyntaxKind.MultiLineRawStringLiteralToken)
StringCopyPaste\StringCopyPasteHelpers.cs (2)
170
=> literal.Token.Kind() is SyntaxKind.
SingleLineRawStringLiteralToken
or SyntaxKind.MultiLineRawStringLiteralToken;
270
(int)SyntaxKind.
SingleLineRawStringLiteralToken
or
StringCopyPaste\StringInfo.cs (1)
107
if (literal.Token.Kind() is SyntaxKind.
SingleLineRawStringLiteralToken
)
TextStructureNavigation\CSharpTextStructureNavigatorProvider.cs (2)
45
case SyntaxKind.
SingleLineRawStringLiteralToken
:
109
SyntaxKind.
SingleLineRawStringLiteralToken
or
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (1)
322
SyntaxKind.
SingleLineRawStringLiteralToken
,
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);
291
TestSingleToken("\"\"\" " + escapeSequence + " \"\"\"", SyntaxKind.
SingleLineRawStringLiteralToken
, $" {escapeSequence} ");
Parsing\ParsingTests.cs (1)
300
case SyntaxKind.
SingleLineRawStringLiteralToken
:
Parsing\Utf8StringLiteralsParsingTests.cs (4)
50
N(SyntaxKind.
SingleLineRawStringLiteralToken
, "\"\"\"hello\"\"\"");
641
N(SyntaxKind.
SingleLineRawStringLiteralToken
, "\"\"\"hello\"\"\"");
659
N(SyntaxKind.
SingleLineRawStringLiteralToken
, "\"\"\"hello\"\"\"");
675
N(SyntaxKind.
SingleLineRawStringLiteralToken
, "\"\"\"hello\"\"\"");
Syntax\SyntaxTests.cs (3)
202
[InlineData(SyntaxKind.
SingleLineRawStringLiteralToken
)]
216
[InlineData(SyntaxKind.
SingleLineRawStringLiteralToken
)]
230
[InlineData(SyntaxKind.
SingleLineRawStringLiteralToken
, SyntaxKind.StringLiteralExpression)]
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Classification\ClassificationHelpers.cs (1)
153
|| token.IsKind(SyntaxKind.
SingleLineRawStringLiteralToken
)
CSharpSyntaxFacts.cs (1)
487
case SyntaxKind.
SingleLineRawStringLiteralToken
:
CSharpSyntaxKinds.cs (1)
52
public int? SingleLineRawStringLiteralToken => (int)SyntaxKind.
SingleLineRawStringLiteralToken
;
CSharpVirtualCharService.cs (2)
75
case SyntaxKind.
SingleLineRawStringLiteralToken
:
144
if (token.Kind() is SyntaxKind.
SingleLineRawStringLiteralToken
or SyntaxKind.Utf8SingleLineRawStringLiteralToken)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
366
SyntaxKind.
SingleLineRawStringLiteralToken
or
375
if (token.Kind() is SyntaxKind.
SingleLineRawStringLiteralToken
or SyntaxKind.MultiLineRawStringLiteralToken)
429
SyntaxKind.
SingleLineRawStringLiteralToken
or
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
144
if (token.IsKind(SyntaxKind.
SingleLineRawStringLiteralToken
) ||