class

LSP::DiagnosticRelatedInformation

Inherits JSON::Serializable < LSP::Initializer < Reference < Object

Represents a related message and source code location for a diagnostic. This should be used to point to code locations that cause or are related to a diagnostics, e.g when duplicating a symbol in a scope.

Constructors

new(line : Int32 | Nil, column : Int32 | Nil, size : Int32 | Nil, message : String, filename)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

location

The location of this related diagnostic information.

Source
location=(location : Location)

The location of this related diagnostic information.

Source
message

The message of this related diagnostic information.

Source
message=(message : String)

The message of this related diagnostic information.

Source