mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-27 07:03:45 +00:00
changed 'descendants()' to 'children()'
This commit is contained in:
parent
f67ee69777
commit
72792f6bc5
@ -236,10 +236,7 @@ impl ast::LetStmt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn eq_token(&self) -> Option<SyntaxToken> {
|
pub fn eq_token(&self) -> Option<SyntaxToken> {
|
||||||
self.syntax()
|
self.syntax().children_with_tokens().find(|t| t.kind() == EQ).and_then(|it| it.into_token())
|
||||||
.descendants_with_tokens()
|
|
||||||
.find(|t| t.kind() == EQ)
|
|
||||||
.and_then(|it| it.into_token())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user