Table of Contents

Class RefactorNotice

Namespace
RDCore.SDK.Platform.Protocol
Assembly
RDCore.SDK.Protocol.dll

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

The choice whose answer the notice is of (Id); null for a notice of the refactoring itself.

public string? Choice { get; init; }

Property Value

string

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

string

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

string

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

RefactorNoticeKind

Location

Where the code the notice is of is written; null for a notice of no place.

public SourceLocation? Location { get; init; }

Property Value

SourceLocation?

Message

What the notice says, in the language of the user interface.

public string Message { get; init; }

Property Value

string

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; }

Property Value

SourceLocation?