Add functions to retrieve nodes' siblings and parents

This commit is contained in:
Max Brunsfeld 2014-07-18 13:24:03 -07:00
parent 0e11bf7271
commit 1ecafb874e
5 changed files with 69 additions and 63 deletions

View file

@ -12,7 +12,7 @@ struct TSNode {
TSParserConfig *config;
};
TSNode * ts_node_make(const TSTree *tree, TSNode *parent, size_t start_position, TSParserConfig *config);
TSNode * ts_node_make(const TSTree *tree, TSNode *parent, size_t index, size_t start_position, TSParserConfig *config);
TSNode * ts_node_make_root(const TSTree *tree, TSParserConfig *config);
#endif