Sha256: 1ca3c2ff792ceeda94ea10442662ed285856012cb581b6042254fd026fb8288c
Contents?: true
Size: 1.07 KB
Versions: 6
Compression:
Stored size: 1.07 KB
Contents
module LanguageServer module Protocol module Interface # # 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. # class DiagnosticRelatedInformation def initialize(location:, message:) @attributes = {} @attributes[:location] = location @attributes[:message] = message @attributes.freeze end # # The location of this related diagnostic information. # # @return [Location] def location attributes.fetch(:location) end # # The message of this related diagnostic information. # # @return [string] def message attributes.fetch(:message) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems