1 implementation of IsLiteralExpression
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1486public bool IsLiteralExpression([NotNullWhen(true)] SyntaxNode? node)
8 references to IsLiteralExpression
Microsoft.CodeAnalysis.Features (6)
EmbeddedLanguages\AbstractLanguageDetector.cs (2)
70if (syntaxFacts.IsLiteralExpression(token.Parent) && 102return syntaxFacts.IsLiteralExpression(token.Parent) &&
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeLanguageDetector.cs (1)
130=> syntaxFacts.IsLiteralExpression(token.Parent) &&
EmbeddedLanguages\EmbeddedLanguageDetector.cs (2)
95if (syntaxFacts.IsLiteralExpression(token.Parent) && 286if (!syntaxFacts.IsLiteralExpression(token.Parent))
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
238_syntaxFacts.IsLiteralExpression(argument.Value.Syntax) && argument.ArgumentKind == ArgumentKind.Explicit);
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
81if (syntaxFacts.IsLiteralExpression(expressionOrPattern))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
213syntaxFacts.IsLiteralExpression(syntaxFacts.GetValueOfEqualsValueClause(initializer)))