tree_sitter::ffi

Function ts_tree_cursor_current_field_name

Source
pub unsafe extern "C" fn ts_tree_cursor_current_field_name(
    self_: *const TSTreeCursor,
) -> *const c_char
Expand description

Get the field name of the tree cursor’s current node.

This returns NULL if the current node doesn’t have a field. See also ts_node_child_by_field_name.