7 references to CleanupAsync
Microsoft.CodeAnalysis.Workspaces (2)
CodeCleanup\CodeCleaner.cs (2)
63return await CleanupAsync(document, [.. root.GetAnnotatedNodesAndTokens(annotation).Select(n => n.Span)], options, providers, cancellationToken: cancellationToken).ConfigureAwait(false); 71=> CleanupAsync(document, [span], options, providers, cancellationToken);
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
CodeCleanup\CodeCleanupTests.cs (5)
41var cleanDocument = await CodeCleaner.CleanupAsync(document, [], await document.GetCodeCleanupOptionsAsync(CancellationToken.None)); 70var cleanDocument = await CodeCleaner.CleanupAsync(document, [root.FullSpan], await document.GetCodeCleanupOptionsAsync(CancellationToken.None)); 97var cleanDocument = await CodeCleaner.CleanupAsync(document, [], await document.GetCodeCleanupOptionsAsync(CancellationToken.None)); 135var cleanDocument = await CodeCleaner.CleanupAsync(document, [root.FullSpan], await document.GetCodeCleanupOptionsAsync(CancellationToken.None)); 408await CodeCleaner.CleanupAsync(document, spans,