Class RefactorNotice
Why a refactoring is refused, what it would change of what the code does, or what the user should know of it.
public sealed record RefactorNotice : IEquatable<RefactorNotice>
- Inheritance
-
RefactorNotice
- Implements
- Inherited Members
Properties
Choice
public string? Choice { get; init; }
Property Value
Code
What the notice is of: a code that names what the refactoring says, the same in any language, by which the user accepts a change.
public string Code { get; init; }
Property Value
Item
The item of a List choice (Id) when Choice is one of that item's own choices; null when it is a choice of the refactoring itself, and for a notice of the refactoring.
public string? Item { get; init; }
Property Value
Kind
Whether it refuses the refactoring, says a change the user accepts, or says what the user should know.
public RefactorNoticeKind Kind { get; init; }
Property Value
Location
Where the code the notice is of is written; null for a notice of no place.
public SourceLocation? Location { get; init; }
Property Value
Message
What the notice says, in the language of the user interface.
public string Message { get; init; }
Property Value
Related
Another place the notice is of, when there is one (LSP 3.17 §DiagnosticRelatedInformation): the declaration a new name would hide,
the GoTo that jumps into the selection.
public SourceLocation? Related { get; init; }