DocumentBasedFixAllProvider Constructors
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.
Overloads
DocumentBasedFixAllProvider() | |
DocumentBasedFixAllProvider(ImmutableArray<FixAllScope>) |
Provides a base class to write a FixAllProvider that fixes documents independently. This type should be used instead of BatchFixer in the case where fixes for a Diagnostic only affect the Document the diagnostic was produced in. |
DocumentBasedFixAllProvider()
protected DocumentBasedFixAllProvider ();
Protected Sub New ()
Applies to
DocumentBasedFixAllProvider(ImmutableArray<FixAllScope>)
Provides a base class to write a FixAllProvider that fixes documents independently. This type should be used instead of BatchFixer in the case where fixes for a Diagnostic only affect the Document the diagnostic was produced in.
protected DocumentBasedFixAllProvider (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CodeFixes.FixAllScope> supportedFixAllScopes);
new Microsoft.CodeAnalysis.CodeFixes.DocumentBasedFixAllProvider : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CodeFixes.FixAllScope> -> Microsoft.CodeAnalysis.CodeFixes.DocumentBasedFixAllProvider
Protected Sub New (supportedFixAllScopes As ImmutableArray(Of FixAllScope))
Parameters
- supportedFixAllScopes
- ImmutableArray<FixAllScope>
Remarks
This type provides suitable logic for fixing large solutions in an efficient manner. Projects are serially processed, with all the documents in the project being processed in parallel. Diagnostics are computed for the project and then appropriately bucketed by document. These are then passed to FixAllAsync(FixAllContext, Document, ImmutableArray<Diagnostic>) for implementors to process.