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 up to the
previous sibling node to recalculate its position. Also note that the node the cursor
was constructed with is considered the root of the cursor, and the cursor cannot
walk outside this node.