tree_sitter::ffi

Function ts_tree_edit

source
pub unsafe extern "C" fn ts_tree_edit(
    self_: *mut TSTree,
    edit: *const TSInputEdit,
)
Expand description

Edit the syntax tree to keep it in sync with source code that has been edited.

You must describe the edit both in terms of byte offsets and in terms of (row, column) coordinates.