Changing API name; Adding unit test and Rust bindings
This commit is contained in:
parent
bd06b1a8b3
commit
c31acb8fec
4 changed files with 38 additions and 2 deletions
|
|
@ -434,6 +434,11 @@ extern "C" {
|
|||
#[doc = " child."]
|
||||
pub fn ts_node_child(arg1: TSNode, arg2: u32) -> TSNode;
|
||||
}
|
||||
extern "C" {
|
||||
#[doc = " Get the field name for node's child at the given index, where zero represents"]
|
||||
#[doc = " the first child. Returns NULL, if no field is found."]
|
||||
pub fn ts_node_field_name_for_child(arg1: TSNode, arg2: u32) -> *const ::std::os::raw::c_char;
|
||||
}
|
||||
extern "C" {
|
||||
#[doc = " Get the node\'s number of children."]
|
||||
pub fn ts_node_child_count(arg1: TSNode) -> u32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue