aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/edit.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-24 11:56:07 +0000
committerAleksey Kladov <[email protected]>2020-03-24 11:56:07 +0000
commit9bf2cd609c772a4ddccd7af67e8da9a3cb6e110f (patch)
tree3ada128ae3f5f2f3d5ede68f0d7cfc81cd03b28d /crates/ra_syntax/src/ast/edit.rs
parent8617fe641ddc0d8c4303c5bbe49152ea320ef179 (diff)
Align naming
Diffstat (limited to 'crates/ra_syntax/src/ast/edit.rs')
-rw-r--r--crates/ra_syntax/src/ast/edit.rs6
1 files changed, 3 insertions, 3 deletions
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 {
296} 296}
297 297
298#[must_use] 298#[must_use]
299pub fn strip_attrs_and_docs<N: ast::AttrsOwner>(node: &N) -> N { 299pub fn remove_attrs_and_docs<N: ast::AttrsOwner>(node: &N) -> N {
300 N::cast(strip_attrs_and_docs_inner(node.syntax().clone())).unwrap() 300 N::cast(remove_attrs_and_docs_inner(node.syntax().clone())).unwrap()
301} 301}
302 302
303fn strip_attrs_and_docs_inner(mut node: SyntaxNode) -> SyntaxNode { 303fn remove_attrs_and_docs_inner(mut node: SyntaxNode) -> SyntaxNode {
304 while let Some(start) = 304 while let Some(start) =
305 node.children_with_tokens().find(|it| it.kind() == ATTR || it.kind() == COMMENT) 305 node.children_with_tokens().find(|it| it.kind() == ATTR || it.kind() == COMMENT)
306 { 306 {