Class: LSP::PrepareRenameParams

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

Overview

export interface PrepareRenameParams extends TextDocumentPositionParams, WorkDoneProgressParams { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

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

#positionObject

type: TextDocumentIdentifier # type: Position # type: ProgressToken



2577
2578
2579
# File 'lib/lsp/lsp_protocol.rb', line 2577

def position
  @position
end

#textDocumentObject

type: TextDocumentIdentifier # type: Position # type: ProgressToken



2577
2578
2579
# File 'lib/lsp/lsp_protocol.rb', line 2577

def textDocument
  @textDocument
end

#workDoneTokenObject

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