Rework API completely
This commit is contained in:
parent
33f7643040
commit
e75ecd1bb1
31 changed files with 841 additions and 1075 deletions
|
|
@ -4,17 +4,17 @@
|
|||
#include "runtime/subtree.h"
|
||||
|
||||
typedef struct {
|
||||
Subtree *tree;
|
||||
Subtree *subtree;
|
||||
Length position;
|
||||
uint32_t child_index;
|
||||
uint32_t structural_child_index;
|
||||
} TreeCursorEntry;
|
||||
|
||||
struct TSTreeCursor {
|
||||
const TSDocument *document;
|
||||
const TSTree *tree;
|
||||
Array(TreeCursorEntry) stack;
|
||||
};
|
||||
|
||||
TSTreeCursor *ts_tree_cursor_new(const TSDocument *);
|
||||
void ts_tree_cursor_init(TSTreeCursor *, const TSTree *);
|
||||
|
||||
#endif // RUNTIME_TREE_CURSOR_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue