Class: LSP::HoverParams

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

Overview

export interface HoverParams 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) ⇒ 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

#positionObject

type: TextDocumentIdentifier # type: Position # type: ProgressToken



1191
1192
1193
# File 'lib/lsp/lsp_protocol.rb', line 1191

def position
  @position
end

#textDocumentObject

type: TextDocumentIdentifier # type: Position # type: ProgressToken



1191
1192
1193
# File 'lib/lsp/lsp_protocol.rb', line 1191

def textDocument
  @textDocument
end

#workDoneTokenObject

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