3 references to CanReplaceWithDefaultLiteral
Microsoft.CodeAnalysis.CSharp.Features (2)
CSharpUseDefaultLiteralCodeFixProvider.cs (1)
62(semanticModel, defaultExpression) => defaultExpression.CanReplaceWithDefaultLiteral(parseOptions, preferSimpleDefaultExpression, semanticModel, cancellationToken),
CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
42if (!defaultExpression.CanReplaceWithDefaultLiteral(parseOptions, preference.Value, context.SemanticModel, cancellationToken))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Reducers\CSharpDefaultExpressionReducer.Rewriter.cs (1)
38if (node.CanReplaceWithDefaultLiteral(ParseOptions, preferSimpleDefaultExpression, semanticModel, cancellationToken))