tree_sitter::ffi

Function ts_node_field_name_for_child

Source
pub unsafe extern "C" fn ts_node_field_name_for_child(
    self_: TSNode,
    child_index: u32,
) -> *const c_char
Expand description

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.