Class: LSP::HoverParams
Overview
export interface HoverParams extends TextDocumentPositionParams, WorkDoneProgressParams { }
Instance Attribute Summary collapse
-
#position ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken.
-
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken.
-
#workDoneToken ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ HoverParams
constructor
A new instance of HoverParams.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ HoverParams
Returns a new instance of HoverParams.
1193 1194 1195 1196 |
# File 'lib/lsp/lsp_protocol.rb', line 1193 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneToken] end |
Instance Attribute Details
#position ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken
1191 1192 1193 |
# File 'lib/lsp/lsp_protocol.rb', line 1191 def position @position end |
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken
1191 1192 1193 |
# File 'lib/lsp/lsp_protocol.rb', line 1191 def textDocument @textDocument end |
#workDoneToken ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken
1191 1192 1193 |
# File 'lib/lsp/lsp_protocol.rb', line 1191 def workDoneToken @workDoneToken end |
Instance Method Details
#from_h!(value) ⇒ Object
1198 1199 1200 1201 1202 1203 1204 |
# File 'lib/lsp/lsp_protocol.rb', line 1198 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 end |