Class: LSP::SemanticTokensEdit
- Defined in:
- lib/lsp/lsp_protocol_sematictokens.proposed.rb
Overview
export interface SemanticTokensEdit
start: number;
deleteCount: number;
data?: number[];
Instance Attribute Summary collapse
-
#data ⇒ Object
type: number # type: number # type: number[].
-
#deleteCount ⇒ Object
type: number # type: number # type: number[].
-
#start ⇒ Object
type: number # type: number # type: number[].
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ SemanticTokensEdit
constructor
A new instance of SemanticTokensEdit.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ SemanticTokensEdit
82 83 84 85 |
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 82 def initialize(initial_hash = nil) super @optional_method_names = i[data] end |
Instance Attribute Details
#data ⇒ Object
type: number # type: number # type: number[]
80 81 82 |
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 80 def data @data end |
#deleteCount ⇒ Object
type: number # type: number # type: number[]
80 81 82 |
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 80 def deleteCount @deleteCount end |
#start ⇒ Object
type: number # type: number # type: number[]
80 81 82 |
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 80 def start @start end |
Instance Method Details
#from_h!(value) ⇒ Object
87 88 89 90 91 92 93 |
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 87 def from_h!(value) value = {} if value.nil? self.start = value['start'] self.deleteCount = value['deleteCount'] self.data = value['data'].map { |val| val } unless value['data'].nil? self end |