Sha256: 0d54431bc426add1867ed8b8b0b246522c1958b84750c1e631b74b72330f9cce
Contents?: true
Size: 1009 Bytes
Versions: 108
Compression:
Stored size: 1009 Bytes
Contents
module LanguageServer module Protocol module Interface class SemanticTokensEdit def initialize(start:, delete_count:, data: nil) @attributes = {} @attributes[:start] = start @attributes[:deleteCount] = delete_count @attributes[:data] = data if data @attributes.freeze end # # The start offset of the edit. # # @return [number] def start attributes.fetch(:start) end # # The count of elements to remove. # # @return [number] def delete_count attributes.fetch(:deleteCount) end # # The elements to insert. # # @return [number[]] def data attributes.fetch(:data) 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
108 entries across 108 versions & 13 rubygems