Class: LSP::SemanticTokensPartialResult
- Defined in:
- lib/lsp/lsp_protocol_sematictokens.proposed.rb
Overview
export interface SemanticTokensPartialResult
data: number[];
Instance Attribute Summary collapse
-
#data ⇒ Object
type: number[].
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Attribute Details
#data ⇒ Object
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 |