tree_sitter::ffi

Function ts_tree_root_node_with_offset

Source
pub unsafe extern "C" fn ts_tree_root_node_with_offset(
    self_: *const TSTree,
    offset_bytes: u32,
    offset_extent: TSPoint,
) -> TSNode
Expand description

Get the root node of the syntax tree, but with its position shifted forward by the given offset.