class LanguageServer::Protocol::Interface::DiagnosticRelatedInformation


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

def initialize(location:, message:)

def initialize(location:, message:)
  @attributes = {}
  @attributes[:location] = location
  @attributes[:message] = message
  @attributes.freeze
end

def location

Returns:
  • (Location) -
def location
  attributes.fetch(:location)
end

def message

Returns:
  • (string) -
def message
  attributes.fetch(:message)
end

def to_hash

def to_hash
  attributes
end

def to_json(*args)

def to_json(*args)
  to_hash.to_json(*args)
end