1 implementation of ICodeCleanupProvider
Microsoft.CodeAnalysis.Workspaces (1)
CodeCleanup\Providers\SimplificationCodeCleanupProvider.cs (1)
15
internal sealed class SimplificationCodeCleanupProvider :
ICodeCleanupProvider
20 references to ICodeCleanupProvider
Microsoft.CodeAnalysis.Workspaces (20)
CodeCleanup\AbstractCodeCleanerService.cs (8)
26
public abstract ImmutableArray<
ICodeCleanupProvider
> GetDefaultProviders();
29
public async Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, ImmutableArray<
ICodeCleanupProvider
> providers, CancellationToken cancellationToken)
73
public async Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<
ICodeCleanupProvider
> providers, CancellationToken cancellationToken)
459
ImmutableArray<
ICodeCleanupProvider
> codeCleaners,
475
foreach (
var
codeCleaner in codeCleaners)
541
ImmutableArray<
ICodeCleanupProvider
> codeCleaners,
553
foreach (
var
codeCleaner in codeCleaners)
590
private string GetCodeCleanerTypeName(
ICodeCleanupProvider
codeCleaner)
CodeCleanup\CodeCleaner.cs (7)
28
public static ImmutableArray<
ICodeCleanupProvider
> GetDefaultProviders(Document document)
50
public static async Task<Document> CleanupAsync(Document document, CodeCleanupOptions options, ImmutableArray<
ICodeCleanupProvider
> providers = default, CancellationToken cancellationToken = default)
60
public static async Task<Document> CleanupAsync(Document document, SyntaxAnnotation annotation, CodeCleanupOptions options, ImmutableArray<
ICodeCleanupProvider
> providers = default, CancellationToken cancellationToken = default)
70
public static Task<Document> CleanupAsync(Document document, TextSpan span, CodeCleanupOptions options, ImmutableArray<
ICodeCleanupProvider
> providers = default, CancellationToken cancellationToken = default)
77
public static async Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, ImmutableArray<
ICodeCleanupProvider
> providers = default, CancellationToken cancellationToken = default)
87
public static Task<SyntaxNode> CleanupAsync(SyntaxNode root, TextSpan span, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<
ICodeCleanupProvider
> providers = default, CancellationToken cancellationToken = default)
94
public static Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<
ICodeCleanupProvider
> providers = default, CancellationToken cancellationToken = default)
CodeCleanup\ICodeCleanerService.cs (3)
25
ImmutableArray<
ICodeCleanupProvider
> GetDefaultProviders();
30
Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, ImmutableArray<
ICodeCleanupProvider
> providers, CancellationToken cancellationToken);
37
Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<
ICodeCleanupProvider
> providers, CancellationToken cancellationToken);
CodeCleanup\Providers\ExportCodeCleanupProvider.cs (1)
22
: base(typeof(
ICodeCleanupProvider
))
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
16
internal sealed class FormatCodeCleanupProvider(ImmutableArray<AbstractFormattingRule> rules = default) :
ICodeCleanupProvider