Sha256: 031d66420dec1be555d41b465348491e82bd6070c04fdc70c3e7d573818102c6
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 KB
Contents
module LanguageServer module Protocol module Interface class DocumentRangeFormattingParams < WorkDoneProgressParams def initialize(work_done_token: nil, text_document:, range:, options:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:textDocument] = text_document @attributes[:range] = range @attributes[:options] = options @attributes.freeze end # # The document to format. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The range to format # # @return [Range] def range attributes.fetch(:range) end # # The format options # # @return [FormattingOptions] def options attributes.fetch(:options) 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
4 entries across 4 versions & 1 rubygems