pub fn apply_edit_to_text(old_text: &str, edit: &TextEdit) -> String
Apply a text edit to the old source, producing the new source text.