47 references to LiteralExpression
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
16SyntaxFactory.LiteralExpression(SyntaxKind.DefaultLiteralExpression);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
412return SyntaxFactory.LiteralExpression(
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
60SyntaxFactory.LiteralExpression(SyntaxKind.DefaultLiteralExpression).WithTriviaFrom(defaultExpression)),
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForReferenceEqualsCodeFixProvider.cs (1)
25= LiteralExpression(SyntaxKind.NullLiteralExpression);
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (1)
27private static readonly ConstantPatternSyntax s_nullConstantPattern = ConstantPattern(LiteralExpression(SyntaxKind.NullLiteralExpression));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (2)
52=> LiteralExpression(SyntaxKind.NullLiteralExpression); 101return LiteralExpression(val
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Formatting\FormattingEngineTests.cs (2)
2223var entry = SyntaxFactory.BinaryExpression(SyntaxKind.EqualsExpression, SyntaxFactory.LiteralExpression(SyntaxKind.TrueLiteralExpression), SyntaxFactory.LiteralExpression(SyntaxKind.FalseLiteralExpression));
Microsoft.CodeAnalysis.CSharp.Features (7)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (2)
35private static readonly PatternSyntax s_trueConstantPattern = ConstantPattern(LiteralExpression(TrueLiteralExpression)); 36private static readonly PatternSyntax s_falseConstantPattern = ConstantPattern(LiteralExpression(FalseLiteralExpression));
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
601ArgumentList([Argument(LiteralExpression(SyntaxKind.FalseLiteralExpression))]));
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
412return SyntaxFactory.LiteralExpression(
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
60SyntaxFactory.LiteralExpression(SyntaxKind.DefaultLiteralExpression).WithTriviaFrom(defaultExpression)),
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForReferenceEqualsCodeFixProvider.cs (1)
25= LiteralExpression(SyntaxKind.NullLiteralExpression);
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (1)
27private static readonly ConstantPatternSyntax s_nullConstantPattern = ConstantPattern(LiteralExpression(SyntaxKind.NullLiteralExpression));
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
3254return SyntaxFactory.LiteralExpression(SyntaxKind.NullLiteralExpression); 3260return SyntaxFactory.LiteralExpression(SyntaxKind.FalseLiteralExpression);
Simplification\Reducers\CSharpDefaultExpressionReducer.Rewriter.cs (1)
37return SyntaxFactory.LiteralExpression(SyntaxKind.DefaultLiteralExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DefaultExpressionSyntaxExtensions.cs (1)
16SyntaxFactory.LiteralExpression(SyntaxKind.DefaultLiteralExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (2)
52=> LiteralExpression(SyntaxKind.NullLiteralExpression); 101return LiteralExpression(val
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
CodeGeneration\SyntaxGeneratorTests.cs (3)
1322LiteralExpression( 1451LiteralExpression( 1459LiteralExpression(
Microsoft.Interop.ComInterfaceGenerator (3)
ComClassGenerator.cs (1)
181LiteralExpression(SyntaxKind.NullLiteralExpression)),
ComInterfaceGenerator.cs (2)
665LiteralExpression(SyntaxKind.NullLiteralExpression)), 679.WithExpressionBody(ArrowExpressionClause(LiteralExpression(SyntaxKind.NullLiteralExpression)))
Microsoft.Interop.JavaScript.JSImportGenerator (5)
JSExportCodeGenerator.cs (2)
95LiteralExpression(SyntaxKind.TrueLiteralExpression)))); 146LiteralExpression(SyntaxKind.TrueLiteralExpression))),
JSImportCodeGenerator.cs (3)
103LiteralExpression(SyntaxKind.TrueLiteralExpression)))); 142? LiteralExpression(SyntaxKind.NullLiteralExpression) 147statementsToUpdate.Add(IfStatement(BinaryExpression(SyntaxKind.EqualsExpression, IdentifierName(_signatureContext.BindingName), LiteralExpression(SyntaxKind.NullLiteralExpression)),
Microsoft.Interop.LibraryImportGenerator (3)
LibraryImportGenerator.cs (3)
469LiteralExpression(SyntaxKind.TrueLiteralExpression)) 494LiteralExpression(SyntaxKind.TrueLiteralExpression)) 519return LiteralExpression(
Microsoft.Interop.LibraryImportGenerator.Downlevel (3)
DownlevelLibraryImportGenerator.cs (3)
344LiteralExpression(SyntaxKind.TrueLiteralExpression)) 369LiteralExpression(SyntaxKind.TrueLiteralExpression)) 397return LiteralExpression(
Microsoft.Interop.SourceGeneration (8)
ManagedToNativeStubGenerator.cs (1)
159LiteralExpression(SyntaxKind.TrueLiteralExpression))));
Marshalling\DelegateMarshaller.cs (4)
48LiteralExpression(SyntaxKind.NullLiteralExpression) 54LiteralExpression(SyntaxKind.DefaultLiteralExpression))); 67LiteralExpression(SyntaxKind.DefaultLiteralExpression)), 76LiteralExpression(SyntaxKind.NullLiteralExpression)));
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (2)
45LiteralExpression(SyntaxKind.TrueLiteralExpression))); 68LiteralExpression(SyntaxKind.FalseLiteralExpression))))));
Utils\SyntaxFactoryExtensions.cs (1)
20return Declare(typeSyntax, identifier, initializeToDefault ? LiteralExpression(SyntaxKind.DefaultLiteralExpression) : null);