Precompute trees' visible children
This commit is contained in:
parent
b3385f20c8
commit
0e11bf7271
6 changed files with 92 additions and 71 deletions
|
|
@ -5,13 +5,14 @@
|
|||
|
||||
struct TSNode {
|
||||
size_t ref_count;
|
||||
size_t position;
|
||||
size_t start_position;
|
||||
size_t index;
|
||||
const TSTree *content;
|
||||
struct TSNode *parent;
|
||||
TSParserConfig *config;
|
||||
};
|
||||
|
||||
TSNode * ts_node_make(TSTree *tree, TSNode *parent, size_t position, TSParserConfig *config);
|
||||
TSNode * ts_node_make(const TSTree *tree, TSNode *parent, size_t start_position, TSParserConfig *config);
|
||||
TSNode * ts_node_make_root(const TSTree *tree, TSParserConfig *config);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue