Changing API name; Adding unit test and Rust bindings

This commit is contained in:
Niranjan Hasabnis 2021-05-21 01:50:10 +00:00
parent bd06b1a8b3
commit c31acb8fec
4 changed files with 38 additions and 2 deletions

View file

@ -488,10 +488,10 @@ TSNode ts_node_parent(TSNode);
TSNode ts_node_child(TSNode, uint32_t);
/**
* Get the field_name for node's child at the given index, where zero represents
* Get the field name for node's child at the given index, where zero represents
* the first child. Returns NULL, if no field is found.
*/
const char *ts_node_child_field_name(TSNode, uint32_t);
const char *ts_node_field_name_for_child(TSNode, uint32_t);
/**
* Get the node's number of children.