From 9bf2cd609c772a4ddccd7af67e8da9a3cb6e110f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 24 Mar 2020 12:56:07 +0100 Subject: Align naming --- crates/ra_syntax/src/ast/edit.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_syntax/src/ast') diff --git a/crates/ra_syntax/src/ast/edit.rs b/crates/ra_syntax/src/ast/edit.rs index 68dae008f..324327162 100644 --- a/crates/ra_syntax/src/ast/edit.rs +++ b/crates/ra_syntax/src/ast/edit.rs @@ -296,11 +296,11 @@ impl ast::UseTree { } #[must_use] -pub fn strip_attrs_and_docs(node: &N) -> N { - N::cast(strip_attrs_and_docs_inner(node.syntax().clone())).unwrap() +pub fn remove_attrs_and_docs(node: &N) -> N { + N::cast(remove_attrs_and_docs_inner(node.syntax().clone())).unwrap() } -fn strip_attrs_and_docs_inner(mut node: SyntaxNode) -> SyntaxNode { +fn remove_attrs_and_docs_inner(mut node: SyntaxNode) -> SyntaxNode { while let Some(start) = node.children_with_tokens().find(|it| it.kind() == ATTR || it.kind() == COMMENT) { -- cgit v1.2.3