Hide TSTree, expose TSNode
This commit is contained in:
parent
02904085c2
commit
b3385f20c8
13 changed files with 333 additions and 122 deletions
17
src/runtime/node.h
Normal file
17
src/runtime/node.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef RUNTIME_NODE_H_
|
||||
#define RUNTIME_NODE_H_
|
||||
|
||||
#include "tree_sitter/parser.h"
|
||||
|
||||
struct TSNode {
|
||||
size_t ref_count;
|
||||
size_t 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);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue