Class: LSP::DefinitionParams
Overview
export interface DefinitionParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams { }
Instance Attribute Summary collapse
-
#partialResultToken ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken.
-
#position ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken.
-
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken.
-
#workDoneToken ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DefinitionParams
constructor
A new instance of DefinitionParams.
Methods inherited from LSPBase
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
#partialResultToken ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken
1470 1471 1472 |
# File 'lib/lsp/lsp_protocol.rb', line 1470 def partialResultToken @partialResultToken end |
#position ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken
1470 1471 1472 |
# File 'lib/lsp/lsp_protocol.rb', line 1470 def position @position end |
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken
1470 1471 1472 |
# File 'lib/lsp/lsp_protocol.rb', line 1470 def textDocument @textDocument end |
#workDoneToken ⇒ Object
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 |