Class: LSP::SemanticTokensRangeParams

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

Overview

export interface SemanticTokensRangeParams extends WorkDoneProgressParams, PartialResultParams

/**
 * The text document.
 */
textDocument: TextDocumentIdentifier;
/**
 * The range the semantic tokens are requested for.
 */
range: Range;

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

#rangeObject

type: TextDocumentIdentifier # type: Range



328
329
330
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 328

def range
  @range
end

#textDocumentObject

type: TextDocumentIdentifier # type: Range



328
329
330
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 328

def textDocument
  @textDocument
end

Instance Method Details

#from_h!(value) ⇒ Object



330
331
332
333
334
335
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 330

def from_h!(value)
  value = {} if value.nil?
  self.textDocument = value['textDocument'] # Unknown type
  self.range = value['range'] # Unknown type
  self
end