Microsoft.CodeAnalysis.CodeFixes Namespace
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.
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. |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應