tree_sitter::ffi

Function ts_node_parent

Source
pub unsafe extern "C" fn ts_node_parent(self_: TSNode) -> TSNode
Expand description

Get the node’s immediate parent. Prefer ts_node_child_containing_descendant for iterating over the node’s ancestors.