tree_sitter::ffi

Function ts_lookahead_iterator_reset_state

Source
pub unsafe extern "C" fn ts_lookahead_iterator_reset_state(
    self_: *mut TSLookaheadIterator,
    state: TSStateId,
) -> bool
Expand description

Reset the lookahead iterator to another state.

This returns true if the iterator was reset to the given state and false otherwise.