29 references to Literal
Microsoft.CodeAnalysis.CSharp.Features (3)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (3)
180
var category = LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(diagnostic.Descriptor.Category));
185
var ruleId = LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(ruleIdText));
188
var justificationExpr = LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(FeaturesResources.Pending));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Syntax\SyntaxFactoryTests.cs (1)
386
var literal = SyntaxFactory.
Literal
("\u2028");
Syntax\SyntaxNormalizerTests.cs (2)
3644
.WithTokens([SyntaxFactory.
Literal
(@"""a\b""")]))),
3665
SyntaxFactory.
Literal
("a.txt"),
Syntax\SyntaxRewriterTests.cs (1)
364
var after = SyntaxFactory.LiteralExpression(SyntaxKind.StringLiteralExpression, SyntaxFactory.
Literal
("After"));
Syntax\SyntaxTokenListTests.cs (1)
246
SyntaxFactory.
Literal
("x"),
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingElasticTriviaTests.cs (1)
161
Literal
("42"))),
Microsoft.Interop.JavaScript.JSImportGenerator (8)
JSExportCodeGenerator.cs (1)
154
Argument(LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(_signatureContext.QualifiedMethodName))),
JSExportGenerator.cs (5)
278
LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
($"{generatedNamespace}.{initializerClass}"))
282
LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(assemblyName))
324
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(wrapperName))),
325
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(incrementalContext.SignatureContext.StubTypeFullName))),
326
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(incrementalContext.SignatureContext.AssemblyName))),
JSImportCodeGenerator.cs (2)
139
Argument(LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(_jsImportData.FunctionName))),
143
: LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(_jsImportData.ModuleName))),
Microsoft.Interop.LibraryImportGenerator (6)
Analyzers\ConvertToLibraryImportFixer.cs (2)
517
SyntaxFactory.
Literal
(AppendSuffix(entryPoint, entryPointSuffix)))));
529
SyntaxFactory.
Literal
(entryPointSuffix.ToString())))));
LibraryImportGenerator.cs (4)
459
Literal
(libraryImportData.ModuleName))),
465
Literal
(libraryImportData.EntryPoint ?? stubMethodName))),
486
Literal
(target.ModuleName))),
529
Literal
(str));
Microsoft.Interop.LibraryImportGenerator.Downlevel (4)
DownlevelLibraryImportGenerator.cs (4)
334
Literal
(libraryImportData.ModuleName))),
340
Literal
(libraryImportData.EntryPoint ?? stubMethodName))),
361
Literal
(target.ModuleName))),
407
Literal
(str));
Microsoft.Interop.SourceGeneration (2)
SignatureContext.cs (2)
78
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(generatorName))),
79
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression,
Literal
(generatorVersion)))