tree_sitter::ffi

Function ts_tree_cursor_goto_parent

Source
pub unsafe extern "C" fn ts_tree_cursor_goto_parent(
    self_: *mut TSTreeCursor,
) -> bool
Expand description

Move the cursor to the parent of its current node.

This returns true if the cursor successfully moved, and returns false if there was no parent node (the cursor was already on the root node).