pub fn apply_edits(text: &str, spans: &[Span], new_name: &str) -> String
Apply one file’s edits (spans ascending) to its snapshot text.