Class: LSP::DocumentLinkParams

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

Overview

export interface DocumentLinkParams extends WorkDoneProgressParams, PartialResultParams

/**
 * The document to provide document links for.
 */
textDocument: TextDocumentIdentifier;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DocumentLinkParams

Returns a new instance of DocumentLinkParams.



2145
2146
2147
2148
# File 'lib/lsp/lsp_protocol.rb', line 2145

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[workDoneToken partialResultToken]
end

Instance Attribute Details

#partialResultTokenObject

type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken



2143
2144
2145
# File 'lib/lsp/lsp_protocol.rb', line 2143

def partialResultToken
  @partialResultToken
end

#textDocumentObject

type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken



2143
2144
2145
# File 'lib/lsp/lsp_protocol.rb', line 2143

def textDocument
  @textDocument
end

#workDoneTokenObject

type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken



2143
2144
2145
# File 'lib/lsp/lsp_protocol.rb', line 2143

def workDoneToken
  @workDoneToken
end

Instance Method Details

#from_h!(value) ⇒ Object



2150
2151
2152
2153
2154
2155
2156
# File 'lib/lsp/lsp_protocol.rb', line 2150

def from_h!(value)
  value = {} if value.nil?
  self.textDocument = value['textDocument'] # Unknown type
  self.workDoneToken = value['workDoneToken'] # Unknown type
  self.partialResultToken = value['partialResultToken'] # Unknown type
  self
end