Reorder TSTreeCursor fields so it has the same structure as internal TreeCursor
This commit is contained in:
parent
0e3d9c2c58
commit
1b482f0785
4 changed files with 6 additions and 6 deletions
|
|
@ -81,8 +81,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 = {array_new(), NULL};
|
||||
TreeCursor cursor2 = {array_new(), NULL};
|
||||
TreeCursor cursor1 = {NULL, array_new()};
|
||||
TreeCursor cursor2 = {NULL, array_new()};
|
||||
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