7 implementations of ICodeCleanupProvider
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CodeCleanup\Providers\AbstractTokensCodeCleanupProvider.vb (1)
15Implements ICodeCleanupProvider
CodeCleanup\Providers\CaseCorrectionCodeCleanupProvider.vb (1)
18Implements ICodeCleanupProvider
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (1)
22Implements ICodeCleanupProvider
CodeCleanup\Providers\RemoveUnnecessaryLineContinuationCodeCleanupProvider.vb (1)
19Implements ICodeCleanupProvider
Microsoft.CodeAnalysis.Workspaces (2)
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
17internal sealed class FormatCodeCleanupProvider : ICodeCleanupProvider
CodeCleanup\Providers\SimplificationCodeCleanupProvider.cs (1)
15internal class SimplificationCodeCleanupProvider : ICodeCleanupProvider
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
CodeCleanup\MockCodeCleanupProvider.cs (1)
17internal sealed class MockCodeCleanupProvider : ICodeCleanupProvider
44 references to ICodeCleanupProvider
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CodeCleanup\CSharpCodeCleanerService.cs (3)
14private static readonly ImmutableArray<ICodeCleanupProvider> s_defaultProviders = ImmutableArray.Create<ICodeCleanupProvider>( 18public override ImmutableArray<ICodeCleanupProvider> GetDefaultProviders()
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
LineCommit\CommitFormatter.vb (2)
25Private Shared ReadOnly s_codeCleanupPredicate As Func(Of ICodeCleanupProvider, Boolean) = 150cancellationToken As CancellationToken) As ICodeCleanupProvider
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
CaseCorrecting\CaseCorrectionServiceTests.vb (1)
42ImmutableArray.Create(Of ICodeCleanupProvider)(New CaseCorrectionCodeCleanupProvider()),
Microsoft.CodeAnalysis.VisualBasic.Workspaces (15)
CodeCleanup\Providers\AbstractTokensCodeCleanupProvider.vb (3)
17Public MustOverride ReadOnly Property Name As String Implements ICodeCleanupProvider.Name 22Public Async Function CleanupAsync(document As Document, spans As ImmutableArray(Of TextSpan), options As CodeCleanupOptions, cancellationToken As CancellationToken) As Task(Of Document) Implements ICodeCleanupProvider.CleanupAsync 30Public Async Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync
CodeCleanup\Providers\CaseCorrectionCodeCleanupProvider.vb (3)
25Public ReadOnly Property Name As String Implements ICodeCleanupProvider.Name 31Public Function CleanupAsync(document As Document, spans As ImmutableArray(Of TextSpan), options As CodeCleanupOptions, cancellationToken As CancellationToken) As Task(Of Document) Implements ICodeCleanupProvider.CleanupAsync 35Public Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (3)
29Public ReadOnly Property Name As String Implements ICodeCleanupProvider.Name 35Public Async Function CleanupAsync(document As Document, spans As ImmutableArray(Of TextSpan), options As CodeCleanupOptions, cancellationToken As CancellationToken) As Task(Of Document) Implements ICodeCleanupProvider.CleanupAsync 42Public Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync
CodeCleanup\Providers\RemoveUnnecessaryLineContinuationCodeCleanupProvider.vb (3)
26Public ReadOnly Property Name As String Implements ICodeCleanupProvider.Name 32Public Async Function CleanupAsync(document As Document, spans As ImmutableArray(Of TextSpan), options As CodeCleanupOptions, cancellationToken As CancellationToken) As Task(Of Document) Implements ICodeCleanupProvider.CleanupAsync 45Public Function CleanupAsync(root As SyntaxNode, spans As ImmutableArray(Of TextSpan), options As SyntaxFormattingOptions, services As SolutionServices, cancellationToken As CancellationToken) As Task(Of SyntaxNode) Implements ICodeCleanupProvider.CleanupAsync
CodeCleanup\VisualBasicCodeCleanerService.vb (3)
17Private Shared ReadOnly s_defaultProviders As ImmutableArray(Of ICodeCleanupProvider) = ImmutableArray.Create(Of ICodeCleanupProvider)( 27Public Overrides Function GetDefaultProviders() As ImmutableArray(Of ICodeCleanupProvider)
Microsoft.CodeAnalysis.Workspaces (20)
CodeCleanup\AbstractCodeCleanerService.cs (8)
27public abstract ImmutableArray<ICodeCleanupProvider> GetDefaultProviders(); 30public async Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, ImmutableArray<ICodeCleanupProvider> providers, CancellationToken cancellationToken) 74public async Task<SyntaxNode> CleanupAsync(SyntaxNode root, ImmutableArray<TextSpan> spans, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<ICodeCleanupProvider> providers, CancellationToken cancellationToken) 460ImmutableArray<ICodeCleanupProvider> codeCleaners, 476foreach (var codeCleaner in codeCleaners) 542ImmutableArray<ICodeCleanupProvider> codeCleaners, 554foreach (var codeCleaner in codeCleaners) 591private string GetCodeCleanerTypeName(ICodeCleanupProvider codeCleaner)
CodeCleanup\CodeCleaner.cs (8)
30public static ImmutableArray<ICodeCleanupProvider> GetDefaultProviders(Document document) 44return ImmutableArray<ICodeCleanupProvider>.Empty; 52public static async Task<Document> CleanupAsync(Document document, CodeCleanupOptions options, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default) 62public static async Task<Document> CleanupAsync(Document document, SyntaxAnnotation annotation, CodeCleanupOptions options, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default) 72public static Task<Document> CleanupAsync(Document document, TextSpan span, CodeCleanupOptions options, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default) 79public static async Task<Document> CleanupAsync(Document document, ImmutableArray<TextSpan> spans, CodeCleanupOptions options, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default) 89public static Task<SyntaxNode> CleanupAsync(SyntaxNode root, TextSpan span, SyntaxFormattingOptions options, SolutionServices services, ImmutableArray<ICodeCleanupProvider> providers = default, CancellationToken cancellationToken = default) 96public 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))
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
CodeCleanup\CodeCleanupTests.cs (3)
383VerifyRange(codeWithoutMarker, ImmutableArray<ICodeCleanupProvider>.Empty, namedSpans["b"], ref expectedResult, language); 386private static void VerifyRange(string codeWithMarker, ICodeCleanupProvider transformer, ref IEnumerable<TextSpan> expectedResult, string language = LanguageNames.CSharp) 394private static void VerifyRange(string code, ImmutableArray<ICodeCleanupProvider> codeCleanups, ImmutableArray<TextSpan> spans, ref IEnumerable<TextSpan> expectedResult, string language)