3 references to CanReplaceWithDefaultLiteral
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\UseDefaultLiteral\CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
43
if (!defaultExpression.
CanReplaceWithDefaultLiteral
(parseOptions, preference.Value, context.SemanticModel, cancellationToken))
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
57
(semanticModel, defaultExpression) => defaultExpression.
CanReplaceWithDefaultLiteral
(parseOptions, preferSimpleDefaultExpression, semanticModel, cancellationToken),
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Reducers\CSharpDefaultExpressionReducer.Rewriter.cs (1)
35
if (node.
CanReplaceWithDefaultLiteral
(ParseOptions, preferSimpleDefaultExpression, semanticModel, cancellationToken))