Class RefactorPrepareResult
What a refactoring asks its user, with the answer it takes by default to each question, and what it refuses or would change.
public sealed record RefactorPrepareResult : IEquatable<RefactorPrepareResult>
- Inheritance
-
RefactorPrepareResult
- Implements
- Inherited Members
Properties
Choices
What the refactoring asks, in the order a dialog shows it. Each has a default, which the refactoring takes when a choice is not answered.
public IReadOnlyList<RefactorChoice> Choices { get; init; }
Property Value
Notices
Why the refactoring is refused, what it would change of what the code does, which the user accepts, and what the user should know of it (RefactorNoticeKind).
public IReadOnlyList<RefactorNotice> Notices { get; init; }
Property Value
Range
The range of the document the refactoring is of, as it takes the request's (Range): a selection grows to the whole statements it touches, which is what an extraction moves; null when there is none, as when the request's range holds no statement.
public SourceRange? Range { get; init; }
Property Value
Remarks
A client shows it before the refactoring is applied, so that its user sees what it will change. It is given whether or not a notice refuses the refactoring, so that the user also sees what is refused.