NAME

Text::Treesitter::Tree - holds the result of a tree-sitter parse operation

SYNOPSIS

TODO

DESCRIPTION

Instances of this class represent the result of a parse operation from an instance of Text::Treesitter::Parser. These objects are not created directly, but are returned by the parse_string method on a parser instance.

METHODS

root_node

$node = $tree->root_node;

Returns the root node of the parse tree, as an instance of Text::Treesitter::Node.

TODO

The following C library functions are currently unhandled:

ts_tree_copy
ts_tree_root_node_with_offset
ts_tree_language
ts_tree_included_ranges
ts_tree_edit
ts_tree_get_changed_ranges

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>