Class: LSP::SemanticTokensEditsPartialResult

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol_sematictokens.proposed.rb

Overview

export interface SemanticTokensEditsPartialResult

edits: SemanticTokensEdit[];

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#editsObject

type: SemanticTokensEdit[]



124
125
126
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 124

def edits
  @edits
end

Instance Method Details

#from_h!(value) ⇒ Object



126
127
128
129
130
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 126

def from_h!(value)
  value = {} if value.nil?
  self.edits = to_typed_aray(value['edits'], SemanticTokensEdit)
  self
end