Compare this edited syntax tree to a new syntax tree representing the same document, returning ranges whose syntactic structure has changed.
For this to work correctly, this tree must have been edited to match the new tree's ranges. Generally, you'll want to call this right after parsing, using the old tree that was passed to parse and the new tree that was returned.
The new tree to compare against
Array of ranges that have changed
Get the text for a node within this tree
The syntax node to get text for
The source text for the node
Get the root node of the syntax tree, but with its position shifted forward by the given offset.
The number of bytes to shift by
The number of rows/columns to shift by
The root node with its position offset
Create a new TreeCursor starting from the root of the tree.
A new cursor positioned at the root node
A tree that represents the syntactic structure of a source code file.