4 types derived from OperationReplacer
Microsoft.CodeAnalysis.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Runtime\UseStringEqualsOverStringCompare.Fixer.cs (4)
170private sealed class StringStringCaseReplacer : OperationReplacer 194private sealed class StringStringBoolReplacer : OperationReplacer 236private sealed class StringStringStringComparisonReplacer : OperationReplacer 260private sealed class OrdinalStringStringCaseReplacer : OperationReplacer
9 references to OperationReplacer
Microsoft.CodeAnalysis.NetAnalyzers (9)
Microsoft.NetCore.Analyzers\Runtime\UseStringEqualsOverStringCompare.Fixer.cs (9)
47if (GetViolation(editor.OriginalRoot, diagnostic.Location.SourceSpan, semanticModel, cancellationToken) is not (IOperation violation, OperationReplacer replacer)) 63private static (IOperation Violation, OperationReplacer Replacer)? GetViolation(SyntaxNode root, TextSpan span, SemanticModel semanticModel, CancellationToken cancellationToken) 77var replacer = GetOperationReplacers(symbols).FirstOrDefault(x => x.IsMatch(violation)); 82private static ImmutableArray<OperationReplacer> GetOperationReplacers(RequiredSymbols symbols) 84return 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.