Share via


DocumentBasedFixAllProvider.FixAllAsync Method

Definition

Fix all the diagnostics present in document. The document returned will only be examined for its content (e.g. it's SyntaxTree or SourceText. No other aspects of (like it's properties), or changes to the Project or Solution it points at will be considered.

protected abstract System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document?> FixAllAsync (Microsoft.CodeAnalysis.CodeFixes.FixAllContext fixAllContext, Microsoft.CodeAnalysis.Document document, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> diagnostics);
abstract member FixAllAsync : Microsoft.CodeAnalysis.CodeFixes.FixAllContext * Microsoft.CodeAnalysis.Document * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document>
Protected MustOverride Function FixAllAsync (fixAllContext As FixAllContext, document As Document, diagnostics As ImmutableArray(Of Diagnostic)) As Task(Of Document)

Parameters

fixAllContext
FixAllContext

The context for the Fix All operation.

document
Document

The document to fix.

diagnostics
ImmutableArray<Diagnostic>

The diagnostics to fix in the document.

Returns

The new Document representing the content fixed document.

-or-

null, if no changes were made to the document.

Applies to