aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
diff options
context:
space:
mode:
authorTomasKralCZ <[email protected]>2020-01-20 09:08:36 +0000
committerTomasKralCZ <[email protected]>2020-01-20 09:19:33 +0000
commit72792f6bc5cc3c81b53fa8e71304b0f7321f8e22 (patch)
treee9e72ca19c31574ae231e0ba581985f807de78a1 /crates/ra_syntax/src/ast
parentf67ee69777e53ca1121e6aa461ecf84a3c01e139 (diff)
changed 'descendants()' to 'children()'
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r--crates/ra_syntax/src/ast/extensions.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/ast/extensions.rs b/crates/ra_syntax/src/ast/extensions.rs
index b8043b726..cb0aee422 100644
--- a/crates/ra_syntax/src/ast/extensions.rs
+++ b/crates/ra_syntax/src/ast/extensions.rs
@@ -236,10 +236,7 @@ impl ast::LetStmt {
236 } 236 }
237 237
238 pub fn eq_token(&self) -> Option<SyntaxToken> { 238 pub fn eq_token(&self) -> Option<SyntaxToken> {
239 self.syntax() 239 self.syntax().children_with_tokens().find(|t| t.kind() == EQ).and_then(|it| it.into_token())
240 .descendants_with_tokens()
241 .find(|t| t.kind() == EQ)
242 .and_then(|it| it.into_token())
243 } 240 }
244} 241}
245 242