mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Rename param edit to editor for add_file_edits
This commit is contained in:
@@ -285,11 +285,11 @@ pub fn make_editor(&self, node: &SyntaxNode) -> SyntaxEditor {
|
||||
SyntaxEditor::new(node.ancestors().last().unwrap_or_else(|| node.clone())).0
|
||||
}
|
||||
|
||||
pub fn add_file_edits(&mut self, file_id: impl Into<FileId>, edit: SyntaxEditor) {
|
||||
pub fn add_file_edits(&mut self, file_id: impl Into<FileId>, editor: SyntaxEditor) {
|
||||
match self.file_editors.entry(file_id.into()) {
|
||||
Entry::Occupied(mut entry) => entry.get_mut().merge(edit),
|
||||
Entry::Occupied(mut entry) => entry.get_mut().merge(editor),
|
||||
Entry::Vacant(entry) => {
|
||||
entry.insert(edit);
|
||||
entry.insert(editor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user