changed 'descendants()' to 'children()'

This commit is contained in:
TomasKralCZ 2020-01-20 10:08:36 +01:00
parent f67ee69777
commit 72792f6bc5

View File

@ -236,10 +236,7 @@ pub fn has_semi(&self) -> bool {
}
pub fn eq_token(&self) -> Option<SyntaxToken> {
self.syntax()
.descendants_with_tokens()
.find(|t| t.kind() == EQ)
.and_then(|it| it.into_token())
self.syntax().children_with_tokens().find(|t| t.kind() == EQ).and_then(|it| it.into_token())
}
}