diff options
author | Aleksey Kladov <[email protected]> | 2020-03-24 11:56:07 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-24 11:56:07 +0000 |
commit | 9bf2cd609c772a4ddccd7af67e8da9a3cb6e110f (patch) | |
tree | 3ada128ae3f5f2f3d5ede68f0d7cfc81cd03b28d /crates/ra_syntax/src/ast | |
parent | 8617fe641ddc0d8c4303c5bbe49152ea320ef179 (diff) |
Align naming
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/edit.rs | 6 |
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] |
299 | pub fn strip_attrs_and_docs<N: ast::AttrsOwner>(node: &N) -> N { | 299 | pub 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 | ||
303 | fn strip_attrs_and_docs_inner(mut node: SyntaxNode) -> SyntaxNode { | 303 | fn 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 | { |