class LanguageServer::Protocol::Interface::SemanticTokensEdit

Attributes

attributes[R]

Public Class Methods

new(start:, delete_count:, data: nil) click to toggle source
# File lib/language_server/protocol/interface/semantic_tokens_edit.rb, line 5
def initialize(start:, delete_count:, data: nil)
  @attributes = {}

  @attributes[:start] = start
  @attributes[:deleteCount] = delete_count
  @attributes[:data] = data if data

  @attributes.freeze
end

Public Instance Methods

data() click to toggle source

The elements to insert.

@return [number

# File lib/language_server/protocol/interface/semantic_tokens_edit.rb, line 35
def data
  attributes.fetch(:data)
end
delete_count() click to toggle source

The count of elements to remove.

@return [number]

# File lib/language_server/protocol/interface/semantic_tokens_edit.rb, line 27
def delete_count
  attributes.fetch(:deleteCount)
end
start() click to toggle source

The start offset of the edit.

@return [number]

# File lib/language_server/protocol/interface/semantic_tokens_edit.rb, line 19
def start
  attributes.fetch(:start)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/semantic_tokens_edit.rb, line 41
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/semantic_tokens_edit.rb, line 45
def to_json(*args)
  to_hash.to_json(*args)
end