Sha256: db7d0770e7a84ad5b5f578d0f775ea7baf437634b404d0b29536019d87d75285
Contents?: true
Size: 816 Bytes
Versions: 107
Compression:
Stored size: 816 Bytes
Contents
module LanguageServer module Protocol module Interface class SemanticTokensDelta def initialize(result_id: nil, edits:) @attributes = {} @attributes[:resultId] = result_id if result_id @attributes[:edits] = edits @attributes.freeze end # @return [string] def result_id attributes.fetch(:resultId) end # # The semantic token edits to transform a previous result into a new # result. # # @return [SemanticTokensEdit[]] def edits attributes.fetch(:edits) 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
107 entries across 107 versions & 13 rubygems