Function tree_sitter::ffi::ts_range_edit
source · pub unsafe extern "C" fn ts_range_edit(
range: *mut TSRange,
edit: *const TSInputEdit
)Expand description
Edit a range to keep it in-sync with source code that has been edited.
This function updates a range’s start and end positions based on an edit operation. This is useful for editing ranges without requiring a tree or node instance.