mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Handle all rename special cases for all record pattern fields
This commit is contained in:
parent
6a07bf6a9f
commit
5e533e5900
4 changed files with 112 additions and 23 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue