tree_sitter::ffi

Function ts_node_descendant_for_byte_range

Source
pub unsafe extern "C" fn ts_node_descendant_for_byte_range(
    self_: TSNode,
    start: u32,
    end: u32,
) -> TSNode
Expand description

Get the smallest node within this node that spans the given range of bytes or (row, column) positions.