Start work on removing parent pointers

Co-Authored-By: Rick Winfrey <rewinfrey@github.com>
This commit is contained in:
Max Brunsfeld 2018-05-09 10:16:10 -07:00
parent 8300f24fec
commit 973e4a44f0
14 changed files with 410 additions and 324 deletions

View file

@ -63,8 +63,11 @@ typedef struct {
} TSRange;
typedef struct {
const void *data;
uint32_t offset[2];
const void *subtree;
const TSDocument *document;
TSPoint position;
uint32_t byte;
TSSymbol alias_symbol;
} TSNode;
uint32_t ts_node_start_byte(TSNode);
@ -84,7 +87,6 @@ TSNode ts_node_child(TSNode, uint32_t);
TSNode ts_node_named_child(TSNode, uint32_t);
uint32_t ts_node_child_count(TSNode);
uint32_t ts_node_named_child_count(TSNode);
uint32_t ts_node_child_index(TSNode);
TSNode ts_node_next_sibling(TSNode);
TSNode ts_node_next_named_sibling(TSNode);
TSNode ts_node_prev_sibling(TSNode);