fix invalid docs for ts_tree_get_changed_ranges
This commit is contained in:
parent
9b4b46ae11
commit
124ae30138
2 changed files with 2 additions and 2 deletions
|
|
@ -369,8 +369,8 @@ void ts_tree_edit(TSTree *self, const TSInputEdit *edit);
|
|||
* given `length` pointer.
|
||||
*/
|
||||
TSRange *ts_tree_get_changed_ranges(
|
||||
const TSTree *self,
|
||||
const TSTree *old_tree,
|
||||
const TSTree *self,
|
||||
uint32_t *length
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ TSRange *ts_tree_get_changed_ranges(const TSTree *self, const TSTree *other, uin
|
|||
TreeCursor cursor2 = {NULL, array_new()};
|
||||
TSNode root = ts_tree_root_node(self);
|
||||
ts_tree_cursor_init(&cursor1, root);
|
||||
ts_tree_cursor_init(&cursor2, root);
|
||||
ts_tree_cursor_init(&cursor2, root); // really other's root, but reinitialized later
|
||||
|
||||
TSRangeArray included_range_differences = array_new();
|
||||
ts_range_array_get_changed_ranges(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue