struct

LSP::Data::Diagnostic::RelatedInformation

Inherits JSON::Serializable < Struct < Value < Object

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

Constructors

new(pull : JSON::PullParser)
Source
new(location : LSP::Data::Location = Location.new, message : String = "")
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