Add an API for getting a node's child index

This commit is contained in:
Max Brunsfeld 2018-01-09 12:33:51 -08:00
parent f653f2b3bb
commit 315dff3285
3 changed files with 32 additions and 0 deletions

View file

@ -92,6 +92,7 @@ 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);