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
|
|
@ -66,7 +66,7 @@ static inline bool ts_tree_cursor_child_iterator_next(ChildIterator *self,
|
|||
// TSTreeCursor - lifecycle
|
||||
|
||||
TSTreeCursor ts_tree_cursor_new(TSNode node) {
|
||||
TSTreeCursor self = {{0, 0}, NULL, NULL};
|
||||
TSTreeCursor self = {NULL, NULL, {0, 0}};
|
||||
ts_tree_cursor_init((TreeCursor *)&self, node);
|
||||
return self;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue