Class: LSP::DefinitionParams

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

Overview

export interface DefinitionParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DefinitionParams

Returns a new instance of DefinitionParams.



1472
1473
1474
1475
# File 'lib/lsp/lsp_protocol.rb', line 1472

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[workDoneToken partialResultToken]
end

Instance Attribute Details

#partialResultTokenObject

type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken



1470
1471
1472
# File 'lib/lsp/lsp_protocol.rb', line 1470

def partialResultToken
  @partialResultToken
end

#positionObject

type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken



1470
1471
1472
# File 'lib/lsp/lsp_protocol.rb', line 1470

def position
  @position
end

#textDocumentObject

type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken



1470
1471
1472
# File 'lib/lsp/lsp_protocol.rb', line 1470

def textDocument
  @textDocument
end

#workDoneTokenObject

type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken



1470
1471
1472
# File 'lib/lsp/lsp_protocol.rb', line 1470

def workDoneToken
  @workDoneToken
end

Instance Method Details

#from_h!(value) ⇒ Object



1477
1478
1479
1480
1481
1482
1483
1484
# File 'lib/lsp/lsp_protocol.rb', line 1477

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