mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Use more natural signature for Edit::apply
This commit is contained in:
parent
4a6fa8f0df
commit
27c7ef6d65
4 changed files with 42 additions and 20 deletions
|
@ -142,7 +142,8 @@ impl Parse<SourceFile> {
|
|||
}
|
||||
|
||||
fn full_reparse(&self, indel: &Indel) -> Parse<SourceFile> {
|
||||
let text = indel.apply(self.tree().syntax().text().to_string());
|
||||
let mut text = self.tree().syntax().text().to_string();
|
||||
indel.apply(&mut text);
|
||||
SourceFile::parse(&text)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue