Function tree_sitter::ffi::ts_tree_cursor_goto_previous_sibling
source · pub unsafe extern "C" fn ts_tree_cursor_goto_previous_sibling(
self_: *mut TSTreeCursor
) -> bool
Expand description
Move the cursor to the previous sibling of its current node.
This returns true
if the cursor successfully moved, and returns false
if
there was no previous sibling node.
Note, that this function may be slower than
ts_tree_cursor_goto_next_sibling
due to how node positions are stored. In
the worst case, this will need to iterate through all the children upto the
previous sibling node to recalculate its position.