Unnamed repository; edit this file 'description' to name the repository.
Remove edit in place
| -rw-r--r-- | crates/syntax/src/ast.rs | 1 | ||||
| -rw-r--r-- | crates/syntax/src/ast/edit_in_place.rs | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/crates/syntax/src/ast.rs b/crates/syntax/src/ast.rs index dc592a4372..d8c7e15830 100644 --- a/crates/syntax/src/ast.rs +++ b/crates/syntax/src/ast.rs @@ -1,7 +1,6 @@ //! Abstract Syntax Tree, layered on top of untyped `SyntaxNode`s pub mod edit; -pub mod edit_in_place; mod expr_ext; mod generated; pub mod make; 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() - } -} |