Class: LSP::SelectionRangeParams
- Defined in:
- lib/lsp/lsp_protocol_selectionrange.rb
Overview
export interface SelectionRangeParams extends WorkDoneProgressParams, PartialResultParams { /** * The text document. / textDocument: TextDocumentIdentifier; /* * The positions inside the text document. */ positions: Position; }
Instance Attribute Summary collapse
-
#positions ⇒ 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
#positions ⇒ Object
type: TextDocumentIdentifier # type: Position
65 66 67 |
# File 'lib/lsp/lsp_protocol_selectionrange.rb', line 65 def positions @positions end |
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: Position
65 66 67 |
# File 'lib/lsp/lsp_protocol_selectionrange.rb', line 65 def textDocument @textDocument end |
Instance Method Details
#from_h!(value) ⇒ Object
67 68 69 70 71 72 |
# File 'lib/lsp/lsp_protocol_selectionrange.rb', line 67 def from_h!(value) value = {} if value.nil? self.textDocument = value['textDocument'] # Unknown type self.positions = value['positions'].map { |val| val } unless value['positions'].nil? # Unknown array type self end |