Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/ast/edit_in_place.rs')
| -rw-r--r-- | crates/syntax/src/ast/edit_in_place.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/crates/syntax/src/ast/edit_in_place.rs b/crates/syntax/src/ast/edit_in_place.rs deleted file mode 100644 index 4a38cb8198..0000000000 --- a/crates/syntax/src/ast/edit_in_place.rs +++ /dev/null @@ -1,16 +0,0 @@ -//! Structural editing for ast. -use crate::{ - AstNode, - ast::{self, make}, - ted, -}; - -impl ast::Impl { - pub fn get_or_create_assoc_item_list(&self) -> ast::AssocItemList { - if self.assoc_item_list().is_none() { - let assoc_item_list = make::assoc_item_list(None).clone_for_update(); - ted::append_child(self.syntax(), assoc_item_list.syntax()); - } - self.assoc_item_list().unwrap() - } -} |