Handle all rename special cases for all record pattern fields

This commit is contained in:
Lukas Wirth 2021-08-16 22:48:38 +02:00
parent 6a07bf6a9f
commit 5e533e5900
4 changed files with 112 additions and 23 deletions

View file

@ -159,6 +159,9 @@ impl<'a> IntoIterator for &'a TextEdit {
}
impl TextEditBuilder {
pub fn is_empty(&self) -> bool {
self.indels.is_empty()
}
pub fn replace(&mut self, range: TextRange, replace_with: String) {
self.indel(Indel::replace(range, replace_with))
}