tree_sitter::ffi

Function ts_query_capture_name_for_id

source
pub unsafe extern "C" fn ts_query_capture_name_for_id(
    self_: *const TSQuery,
    index: u32,
    length: *mut u32,
) -> *const c_char
Expand description

Get the name and length of one of the query’s captures, or one of the query’s string literals. Each capture and string is associated with a numeric id based on the order that it appeared in the query’s source.