class

LSProtocol::DiagnosticRelatedInformation

Inherits JSON::Serializable / 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 related to a diagnostics, e.g when duplicating a symbol in a scope.

Constructors

new(location : Location | Nil, message : String | Nil)
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
message

The message of this related diagnostic information.

Source