DocumentBasedFixAllProvider.FixAllAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.