apply_edits

Function apply_edits 

Source
fn apply_edits(src: &str, edits: &mut [TextEdit]) -> String
Expand description

Apply a list of non-overlapping edits in order. Sorts by start position descending so each application doesn’t invalidate the remaining offsets. Edits that overlap are dropped silently — the AST walker is responsible for ensuring non-overlap by emitting one edit per syntactic position.