Class: LSP::TextDocumentPositionParams

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

Overview

export interface TextDocumentPositionParams

/**
 * The text document.
 */
textDocument: TextDocumentIdentifier;
/**
 * The position inside the text document.
 */
position: Position;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#positionObject

type: TextDocumentIdentifier # type: Position



145
146
147
# File 'lib/lsp/lsp_protocol.rb', line 145

def position
  @position
end

#textDocumentObject

type: TextDocumentIdentifier # type: Position



145
146
147
# File 'lib/lsp/lsp_protocol.rb', line 145

def textDocument
  @textDocument
end

Instance Method Details

#from_h!(value) ⇒ Object



147
148
149
150
151
152
# File 'lib/lsp/lsp_protocol.rb', line 147

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