Class: LSP::PrepareRenameParams
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface PrepareRenameParams 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) ⇒ PrepareRenameParams
constructor
A new instance of PrepareRenameParams.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ PrepareRenameParams
Returns a new instance of PrepareRenameParams.
2579 2580 2581 2582 |
# File 'lib/lsp/lsp_protocol.rb', line 2579 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneToken] end |
Instance Attribute Details
#position ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken
2577 2578 2579 |
# File 'lib/lsp/lsp_protocol.rb', line 2577 def position @position end |
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken
2577 2578 2579 |
# File 'lib/lsp/lsp_protocol.rb', line 2577 def textDocument @textDocument end |
#workDoneToken ⇒ Object
type: TextDocumentIdentifier # type: Position # type: ProgressToken
2577 2578 2579 |
# File 'lib/lsp/lsp_protocol.rb', line 2577 def workDoneToken @workDoneToken end |
Instance Method Details
#from_h!(value) ⇒ Object
2584 2585 2586 2587 2588 2589 2590 |
# File 'lib/lsp/lsp_protocol.rb', line 2584 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 |