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