Class: LSP::TextDocumentChangeEvent

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

Overview

export interface TextDocumentChangeEvent

/**
 * The document that has changed.
 */
document: TextDocument;

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

#documentObject

type: TextDocument



1500
1501
1502
# File 'lib/lsp/lsp_types.rb', line 1500

def document
  @document
end

Instance Method Details

#from_h!(value) ⇒ Object



1502
1503
1504
1505
1506
# File 'lib/lsp/lsp_types.rb', line 1502

def from_h!(value)
  value = {} if value.nil?
  self.document = TextDocument.new(value['document']) unless value['document'].nil?
  self
end