private static SourceText ApplyEdit(SourceText source, TextEdit edit) { var change = edit.AsTextChange(source); return(source.WithChanges(change)); }