Class: LSP::SemanticTokensPartialResult

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

Overview

export interface SemanticTokensPartialResult

data: number[];

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

#dataObject

type: number[]



65
66
67
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 65

def data
  @data
end

Instance Method Details

#from_h!(value) ⇒ Object



67
68
69
70
71
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 67

def from_h!(value)
  value = {} if value.nil?
  self.data = value['data'].map { |val| val } unless value['data'].nil?
  self
end