tree_sitter::ffi

Function ts_tree_cursor_current_field_id

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

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

This returns zero if the current node doesn’t have a field. See also ts_node_child_by_field_id, ts_language_field_id_for_name.