124 references to StringLiteralExpression
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Expressions.cs (1)
703case SyntaxKind.StringLiteralExpression:
Binder\EarlyWellKnownAttributeBinder.cs (1)
82case SyntaxKind.StringLiteralExpression:
Parser\LanguageParser.cs (2)
1242if (argument.expression is LiteralExpressionSyntax { Kind: SyntaxKind.StringLiteralExpression, Token: var literalToken } && 10804case SyntaxKind.StringLiteralExpression:
Syntax\LiteralExpressionSyntax.cs (1)
21SyntaxKind.StringLiteralExpression => SyntaxKind.StringLiteralToken,
Syntax\SyntaxKindFacts.cs (3)
573SyntaxKind.StringLiteralToken => SyntaxKind.StringLiteralExpression, 575SyntaxKind.SingleLineRawStringLiteralToken => SyntaxKind.StringLiteralExpression, 577SyntaxKind.MultiLineRawStringLiteralToken => SyntaxKind.StringLiteralExpression,
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
84if (argument.Expression is not LiteralExpressionSyntax(SyntaxKind.StringLiteralExpression) and not InterpolatedStringExpressionSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
85public int StringLiteralExpression => (int)SyntaxKind.StringLiteralExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
99if (parent.Kind() is SyntaxKind.StringLiteralExpression or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
110SyntaxKind.StringLiteralExpression, Literal(valueString, val));
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
CompleteStatement\CompleteStatementCommandHandler.cs (3)
464if (currentNode.Kind() is not (SyntaxKind.InterpolatedStringExpression or SyntaxKind.StringLiteralExpression or SyntaxKind.Utf8StringLiteralExpression or SyntaxKind.CharacterLiteralExpression)) 467if (currentNode.IsKind(SyntaxKind.StringLiteralExpression, out LiteralExpressionSyntax? literalExpression) 479if (currentNode.IsKind(SyntaxKind.StringLiteralExpression, out literalExpression)
StringCopyPaste\StringCopyPasteHelpers.cs (1)
265RawKind: (int)SyntaxKind.StringLiteralExpression,
Microsoft.CodeAnalysis.CSharp.Features (14)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (5)
180var category = LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(diagnostic.Descriptor.Category)); 185var ruleId = LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(ruleIdText)); 188var justificationExpr = LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(FeaturesResources.Pending)); 198var scopeExpr = LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(scopeString)); 202var targetExpr = LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(targetString));
ConvertBetweenRegularAndVerbatimString\ConvertBetweenRegularAndVerbatimStringCodeRefactoringProvider.cs (1)
30=> literalExpression.Kind() == SyntaxKind.StringLiteralExpression;
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
496if (descendant is LiteralExpressionSyntax(kind: SyntaxKind.StringLiteralExpression) ||
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (1)
33=> stringExpression.Kind() is SyntaxKind.StringLiteralExpression;
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
81case SyntaxKind.StringLiteralExpression:
EditAndContinue\SyntaxComparer.cs (1)
522case SyntaxKind.StringLiteralExpression:
SplitStringLiteral\SimpleStringSplitter.cs (2)
64var leftExpression = SyntaxFactory.LiteralExpression(SyntaxKind.StringLiteralExpression, firstToken); 65var rightExpression = SyntaxFactory.LiteralExpression(SyntaxKind.StringLiteralExpression, secondToken);
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (1)
84if (argument.Expression is not LiteralExpressionSyntax(SyntaxKind.StringLiteralExpression) and not InterpolatedStringExpressionSyntax)
Structure\Providers\StringLiteralExpressionStructureProvider.cs (1)
21if (node.IsKind(SyntaxKind.StringLiteralExpression) &&
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (66)
LexicalAndXml\RawStringLiteralLexingTests.cs (1)
188var literal = SyntaxFactory.LiteralExpression(SyntaxKind.StringLiteralExpression, token);
Parsing\AwaitParsingTests.cs (1)
2224N(SyntaxKind.StringLiteralExpression);
Parsing\CollectionExpressionParsingTests.cs (26)
1022N(SyntaxKind.StringLiteralExpression); 1030N(SyntaxKind.StringLiteralExpression); 17205N(SyntaxKind.StringLiteralExpression); 17213N(SyntaxKind.StringLiteralExpression); 17233N(SyntaxKind.StringLiteralExpression); 17282N(SyntaxKind.StringLiteralExpression); 17290N(SyntaxKind.StringLiteralExpression); 17310N(SyntaxKind.StringLiteralExpression); 17438N(SyntaxKind.StringLiteralExpression); 17446N(SyntaxKind.StringLiteralExpression); 17466N(SyntaxKind.StringLiteralExpression); 17474N(SyntaxKind.StringLiteralExpression); 17523N(SyntaxKind.StringLiteralExpression); 17531N(SyntaxKind.StringLiteralExpression); 17551N(SyntaxKind.StringLiteralExpression); 17559N(SyntaxKind.StringLiteralExpression); 17687N(SyntaxKind.StringLiteralExpression); 17695N(SyntaxKind.StringLiteralExpression); 17769N(SyntaxKind.StringLiteralExpression); 17777N(SyntaxKind.StringLiteralExpression); 17930N(SyntaxKind.StringLiteralExpression); 17938N(SyntaxKind.StringLiteralExpression); 17958N(SyntaxKind.StringLiteralExpression); 18020N(SyntaxKind.StringLiteralExpression); 18028N(SyntaxKind.StringLiteralExpression); 18048N(SyntaxKind.StringLiteralExpression);
Parsing\ExpressionParsingTests.cs (2)
512Assert.Equal(SyntaxKind.StringLiteralExpression, expr.Kind()); 527Assert.Equal(SyntaxKind.StringLiteralExpression, expr.Kind());
Parsing\MemberDeclarationParsingTests.cs (1)
12519N(SyntaxKind.StringLiteralExpression);
Parsing\PatternParsingTests_ListPatterns.cs (1)
1329N(SyntaxKind.StringLiteralExpression);
Parsing\RecordParsing.cs (2)
1910N(SyntaxKind.StringLiteralExpression); 1982N(SyntaxKind.StringLiteralExpression);
Parsing\StatementParsingTests.cs (3)
4385N(SyntaxKind.StringLiteralExpression); 4549N(SyntaxKind.StringLiteralExpression); 4740N(SyntaxKind.StringLiteralExpression);
Parsing\UsingDirectiveParsingTests.cs (2)
3694N(SyntaxKind.StringLiteralExpression); 3856N(SyntaxKind.StringLiteralExpression);
Parsing\Utf8StringLiteralsParsingTests.cs (22)
24N(SyntaxKind.StringLiteralExpression); 36N(SyntaxKind.StringLiteralExpression); 48N(SyntaxKind.StringLiteralExpression); 62N(SyntaxKind.StringLiteralExpression); 76N(SyntaxKind.StringLiteralExpression); 90N(SyntaxKind.StringLiteralExpression); 253N(SyntaxKind.StringLiteralExpression); 269N(SyntaxKind.StringLiteralExpression); 285N(SyntaxKind.StringLiteralExpression); 351N(SyntaxKind.StringLiteralExpression); 367N(SyntaxKind.StringLiteralExpression); 383N(SyntaxKind.StringLiteralExpression); 417N(SyntaxKind.StringLiteralExpression); 433N(SyntaxKind.StringLiteralExpression); 467N(SyntaxKind.StringLiteralExpression); 483N(SyntaxKind.StringLiteralExpression); 639N(SyntaxKind.StringLiteralExpression); 657N(SyntaxKind.StringLiteralExpression); 673N(SyntaxKind.StringLiteralExpression); 805N(SyntaxKind.StringLiteralExpression); 829N(SyntaxKind.StringLiteralExpression); 851N(SyntaxKind.StringLiteralExpression);
Parsing\ValueTupleTests.cs (1)
90N(SyntaxKind.StringLiteralExpression);
Syntax\SyntaxRewriterTests.cs (1)
364var after = SyntaxFactory.LiteralExpression(SyntaxKind.StringLiteralExpression, SyntaxFactory.Literal("After"));
Syntax\SyntaxTests.cs (3)
233[InlineData(SyntaxKind.StringLiteralToken, SyntaxKind.StringLiteralExpression)] 234[InlineData(SyntaxKind.SingleLineRawStringLiteralToken, SyntaxKind.StringLiteralExpression)] 235[InlineData(SyntaxKind.MultiLineRawStringLiteralToken, SyntaxKind.StringLiteralExpression)]
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
85public int StringLiteralExpression => (int)SyntaxKind.StringLiteralExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
99if (parent.Kind() is SyntaxKind.StringLiteralExpression or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
110SyntaxKind.StringLiteralExpression, Literal(valueString, val));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingElasticTriviaTests.cs (1)
160SyntaxKind.StringLiteralExpression,
Microsoft.Interop.JavaScript.JSImportGenerator (8)
JSExportCodeGenerator.cs (1)
154Argument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(_signatureContext.QualifiedMethodName))),
JSExportGenerator.cs (5)
278LiteralExpression(SyntaxKind.StringLiteralExpression, Literal($"{generatedNamespace}.{initializerClass}")) 282LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(assemblyName)) 324AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(wrapperName))), 325AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(incrementalContext.SignatureContext.StubTypeFullName))), 326AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(incrementalContext.SignatureContext.AssemblyName))),
JSImportCodeGenerator.cs (2)
139Argument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(_jsImportData.FunctionName))), 143: LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(_jsImportData.ModuleName))),
Microsoft.Interop.LibraryImportGenerator (7)
Analyzers\ConvertToLibraryImportFixer.cs (3)
509if (attrArg.Expression.IsKind(SyntaxKind.StringLiteralExpression)) 516SyntaxFactory.LiteralExpression(SyntaxKind.StringLiteralExpression, 528SyntaxFactory.LiteralExpression(SyntaxKind.StringLiteralExpression,
LibraryImportGenerator.cs (4)
458SyntaxKind.StringLiteralExpression, 464SyntaxKind.StringLiteralExpression, 485SyntaxKind.StringLiteralExpression, 528SyntaxKind.StringLiteralExpression,
Microsoft.Interop.LibraryImportGenerator.Downlevel (4)
DownlevelLibraryImportGenerator.cs (4)
333SyntaxKind.StringLiteralExpression, 339SyntaxKind.StringLiteralExpression, 360SyntaxKind.StringLiteralExpression, 406SyntaxKind.StringLiteralExpression,
Microsoft.Interop.SourceGeneration (2)
SignatureContext.cs (2)
78AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(generatorName))), 79AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(generatorVersion)))
Microsoft.ML.InternalCodeAnalyzer (1)
ContractsCheckAnalyzer.cs (1)
159return exp.IsKind(SyntaxKind.StringLiteralExpression) || exp.IsKind(SyntaxKind.IdentifierName);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\MethodXml\MethodXmlBuilder.cs (2)
171case SyntaxKind.StringLiteralExpression: 268case SyntaxKind.StringLiteralExpression: