Class: LSP::SemanticTokensParams

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

Overview

export interface SemanticTokensParams extends WorkDoneProgressParams, PartialResultParams

/**
 * The text document.
 */
textDocument: TextDocumentIdentifier;

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

#textDocumentObject

type: TextDocumentIdentifier



287
288
289
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 287

def textDocument
  @textDocument
end

Instance Method Details

#from_h!(value) ⇒ Object



289
290
291
292
293
# File 'lib/lsp/lsp_protocol_sematictokens.proposed.rb', line 289

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