Dela via


Microsoft.CodeAnalysis.CodeFixes Namespace

Classes

CodeFixProvider

Implement this type to provide fixes for source code problems. Remember to use ExportCodeFixProviderAttribute so the host environment can offer your fixes in a UI.

DocumentBasedFixAllProvider

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.

ExportCodeFixProviderAttribute

Use this attribute to declare a CodeFixProvider implementation so that it can be discovered by the host.

FixAllContext

Context for "Fix all occurrences" code fixes provided by a Microsoft.CodeAnalysis.CodeFixes.FixAllContext.FixAllProvider.

FixAllContext.DiagnosticProvider

Diagnostic provider to fetch document/project diagnostics to fix in a FixAllContext.

FixAllProvider

Implement this abstract type to provide fix all/multiple occurrences code fixes for source code problems. Alternatively, you can use any of the well known fix all providers from WellKnownFixAllProviders.

WellKnownFixAllProviders

Contains well known implementations of FixAllProvider.

Structs

CodeFixContext

Context for code fixes provided by a CodeFixProvider.

Enums

FixAllScope

Indicates scope for "Fix all occurrences" code fixes provided by each FixAllProvider.