RefactorAllContext Class
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.
Context for "Refactor all occurrences" for code refactorings provided by each CodeRefactoringProvider.
public sealed class RefactorAllContext
type RefactorAllContext = class
Public NotInheritable Class RefactorAllContext
- Inheritance
-
RefactorAllContext
Remarks
TODO: Make public, tracked with https://github.com/dotnet/roslyn/issues/60703
Properties
| Name | Description |
|---|---|
| CancellationToken |
CancellationToken for refactor all session. |
| CodeActionEquivalenceKey |
The EquivalenceKey value expected of a CodeAction participating in this refactor all. |
| CodeRefactoringProvider |
Underlying CodeRefactoringProvider which triggered this refactor all. |
| Document |
Document within which refactor all occurrences was triggered. |
| Progress | |
| Project |
Project to refactor all occurrences within. |
| Scope |
RefactorAllScope to refactor all occurrences. |
| Solution | |
Methods
| Name | Description |
|---|---|
| GetRefactorAllSpansAsync(CancellationToken) |
Gets the spans to refactor by document for the Scope for this refactor all occurrences fix. If no spans are specified, it indicates the entire document needs to be refactored. |