added eq_token() method to LetStmt
This commit is contained in:
@@ -234,6 +234,13 @@ impl ast::LetStmt {
|
||||
Some(node) => node.kind() == T![;],
|
||||
}
|
||||
}
|
||||
|
||||
pub fn eq_token(&self) -> Option<SyntaxToken> {
|
||||
self.syntax()
|
||||
.descendants_with_tokens()
|
||||
.find(|t| t.kind() == EQ)
|
||||
.and_then(|it| it.into_token())
|
||||
}
|
||||
}
|
||||
|
||||
impl ast::ExprStmt {
|
||||
|
||||
Reference in New Issue
Block a user