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