Compartilhar via


DocumentBasedFixAllProvider Constructors

Definition

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(ImmutableArray<FixAllScope>)

Source:
DocumentBasedFixAllProvider.cs
Source:
DocumentBasedFixAllProvider.cs
Source:
DocumentBasedFixAllProvider.cs
Source:
DocumentBasedFixAllProvider.cs
Source:
DocumentBasedFixAllProvider.cs
Source:
DocumentBasedFixAllProvider.cs
Source:
DocumentBasedFixAllProvider.cs
Source:
DocumentBasedFixAllProvider.cs

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.

Applies to