Sha256: 55b79bbf73f4957b63b7f9f8bea55cd2b24c44ecdd223a179ca22deeb0a15f3a
Contents?: true
Size: 839 Bytes
Versions: 6
Compression:
Stored size: 839 Bytes
Contents
module LanguageServer module Protocol module Interface class PublishDiagnosticsParams def initialize(uri:, diagnostics:) @attributes = {} @attributes[:uri] = uri @attributes[:diagnostics] = diagnostics @attributes.freeze end # # The URI for which diagnostic information is reported. # # @return [string] def uri attributes.fetch(:uri) end # # An array of diagnostic information items. # # @return [Diagnostic[]] def diagnostics attributes.fetch(:diagnostics) 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