Allocate and free trees using an object pool
This commit is contained in:
parent
53152658ce
commit
addeb6c4c1
11 changed files with 287 additions and 230 deletions
|
|
@ -3,6 +3,15 @@
|
|||
|
||||
#include "runtime/tree.h"
|
||||
|
||||
typedef struct {
|
||||
Tree *tree;
|
||||
Length position;
|
||||
uint32_t child_index;
|
||||
uint32_t structural_child_index;
|
||||
} TreePathEntry;
|
||||
|
||||
typedef Array(TreePathEntry) TreePath;
|
||||
|
||||
unsigned ts_tree_get_changed_ranges(
|
||||
Tree *old_tree, Tree *new_tree, TreePath *path1, TreePath *path2,
|
||||
const TSLanguage *language, TSRange **ranges
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue