4 types derived from OperationReplacer
Microsoft.CodeAnalysis.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Runtime\UseStringEqualsOverStringCompare.Fixer.cs (4)
170
private sealed class StringStringCaseReplacer :
OperationReplacer
194
private sealed class StringStringBoolReplacer :
OperationReplacer
236
private sealed class StringStringStringComparisonReplacer :
OperationReplacer
260
private sealed class OrdinalStringStringCaseReplacer :
OperationReplacer
9 references to OperationReplacer
Microsoft.CodeAnalysis.NetAnalyzers (9)
Microsoft.NetCore.Analyzers\Runtime\UseStringEqualsOverStringCompare.Fixer.cs (9)
47
if (GetViolation(editor.OriginalRoot, diagnostic.Location.SourceSpan, semanticModel, cancellationToken) is not (IOperation violation,
OperationReplacer
replacer))
63
private static (IOperation Violation,
OperationReplacer
Replacer)? GetViolation(SyntaxNode root, TextSpan span, SemanticModel semanticModel, CancellationToken cancellationToken)
77
var
replacer = GetOperationReplacers(symbols).FirstOrDefault(x => x.IsMatch(violation));
82
private static ImmutableArray<
OperationReplacer
> GetOperationReplacers(RequiredSymbols symbols)
84
return ImmutableArray.Create<
OperationReplacer
>(
104
/// Indicates whether the current <see cref="
OperationReplacer
"/> applies to the specified violation.
107
/// <returns>True if the current <see cref="
OperationReplacer
"/> applies to the specified violation.</returns>
111
/// Creates a replacement node for a violation that the current <see cref="
OperationReplacer
"/> applies to.
112
/// Asserts if the current <see cref="
OperationReplacer
"/> does not apply to the specified violation.