Class: LSP::DocumentHighlightParams
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DocumentHighlightParams 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) ⇒ DocumentHighlightParams
constructor
A new instance of DocumentHighlightParams.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DocumentHighlightParams
1609 1610 1611 1612 |
# File 'lib/lsp/lsp_protocol.rb', line 1609 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
1607 1608 1609 |
# File 'lib/lsp/lsp_protocol.rb', line 1607 def partialResultToken @partialResultToken end |
#position ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken
1607 1608 1609 |
# File 'lib/lsp/lsp_protocol.rb', line 1607 def position @position end |
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken
1607 1608 1609 |
# File 'lib/lsp/lsp_protocol.rb', line 1607 def textDocument @textDocument end |
#workDoneToken ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken
1607 1608 1609 |
# File 'lib/lsp/lsp_protocol.rb', line 1607 def workDoneToken @workDoneToken end |
Instance Method Details
#from_h!(value) ⇒ Object
1614 1615 1616 1617 1618 1619 1620 1621 |
# File 'lib/lsp/lsp_protocol.rb', line 1614 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 |