Class: Markly::Merge::Backend::Tree Private

Inherits:
TreeHaver::Base::Tree
  • Object
show all
Defined in:
lib/markly/merge/backend.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Markly tree wrapper

Wraps Markly parse results to provide tree-sitter-compatible API.

Instance Method Summary collapse

Constructor Details

#initialize(document, source) ⇒ Tree

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Tree.



193
194
195
# File 'lib/markly/merge/backend.rb', line 193

def initialize(document, source)
  super(document, source: source)
end

Instance Method Details

#root_nodeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



197
198
199
# File 'lib/markly/merge/backend.rb', line 197

def root_node
  Node.new(inner_tree, source: source, lines: lines)
end