2 references to CanReplaceWithDefaultLiteral
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
42
if (!defaultExpression.
CanReplaceWithDefaultLiteral
(parseOptions, preference.Value, context.SemanticModel, cancellationToken))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpUseDefaultLiteralCodeFixProvider.cs (1)
62
(semanticModel, defaultExpression) => defaultExpression.
CanReplaceWithDefaultLiteral
(parseOptions, preferSimpleDefaultExpression, semanticModel, cancellationToken),