Allow creating a tree cursor starting at any node, not just the root

Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
This commit is contained in:
Max Brunsfeld 2018-06-21 12:54:04 -07:00
parent 35ed21139c
commit 89b6a14d9f
5 changed files with 27 additions and 15 deletions

View file

@ -15,6 +15,6 @@ typedef struct {
const TSTree *tree;
} TreeCursor;
void ts_tree_cursor_init(TreeCursor *, const TSTree *);
void ts_tree_cursor_init(TreeCursor *, TSNode);
#endif // RUNTIME_TREE_CURSOR_H_