Add ts_tree_cursor_reset function
This commit is contained in:
parent
fa1f4aa86a
commit
af01846fd7
3 changed files with 12 additions and 6 deletions
|
|
@ -48,7 +48,8 @@ void ts_tree_edit(TSTree *self, const TSInputEdit *edit) {
|
|||
|
||||
TSRange *ts_tree_get_changed_ranges(const TSTree *self, const TSTree *other, uint32_t *count) {
|
||||
TSRange *result;
|
||||
TreeCursor cursor1, cursor2;
|
||||
TreeCursor cursor1 = {array_new(), NULL};
|
||||
TreeCursor cursor2 = {array_new(), NULL};
|
||||
TSNode root = ts_tree_root_node(self);
|
||||
ts_tree_cursor_init(&cursor1, root);
|
||||
ts_tree_cursor_init(&cursor2, root);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue