Class: LSP::DocumentHighlightParams

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

Overview

export interface DocumentHighlightParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

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

#partialResultTokenObject

type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken



1607
1608
1609
# File 'lib/lsp/lsp_protocol.rb', line 1607

def partialResultToken
  @partialResultToken
end

#positionObject

type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken



1607
1608
1609
# File 'lib/lsp/lsp_protocol.rb', line 1607

def position
  @position
end

#textDocumentObject

type: TextDocumentIdentifier # type: Position # type: ProgressToken # type: ProgressToken



1607
1608
1609
# File 'lib/lsp/lsp_protocol.rb', line 1607

def textDocument
  @textDocument
end

#workDoneTokenObject

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