Expand description
Edit primitives.
An Edit is a single atomic change to a buffer. Compound changes are
sequences of edits; the dispatcher groups them into one undo step.
EditDelta is the tree-sitter-shaped sibling of Edit: the
byte/position deltas a parser needs to know how an edit reshaped
a buffer. Producers (the buffer’s apply_edit) emit it as a
by-product of the rope mutation; consumers (the syntax worker)
convert it to tree_sitter::InputEdit at the parser boundary so
lattice-protocol stays parser-agnostic. The type sits here so
all edit-shaped types live together.
Structs§
- Edit
- A single buffer mutation: replace the bytes in
Self::rangewith the text carried bySelf::kind. - Edit
Delta - Tree-sitter-shaped description of a single applied edit.
Enums§
- Edit
Kind - The mutation operation. Replace covers insert (empty range) and delete (empty replacement); we keep the simple form here and let higher layers build dot-repeat / macro records on top.