tree_sitter::ffi

Function ts_query_start_byte_for_pattern

source
pub unsafe extern "C" fn ts_query_start_byte_for_pattern(
    self_: *const TSQuery,
    pattern_index: u32,
) -> u32
Expand description

Get the byte offset where the given pattern starts in the query’s source.

This can be useful when combining queries by concatenating their source code strings.