changed 'descendants()' to 'children()'
This commit is contained in:
parent
f67ee69777
commit
72792f6bc5
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user