Class: LSP::TextDocumentPositionParams
- 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
-
#position ⇒ Object
type: TextDocumentIdentifier # type: Position.
-
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: Position.
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Attribute Details
#position ⇒ Object
type: TextDocumentIdentifier # type: Position
145 146 147 |
# File 'lib/lsp/lsp_protocol.rb', line 145 def position @position end |
#textDocument ⇒ Object
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 |