Remove AsyncOwner

This commit is contained in:
Edwin Cheng 2019-12-25 00:25:18 +08:00
parent 42813126d9
commit 208ad97fdc
5 changed files with 6 additions and 13 deletions

View file

@ -221,6 +221,10 @@ impl ast::FnDef {
.and_then(|it| it.into_token())
.filter(|it| it.kind() == T![;])
}
pub fn is_async(&self) -> bool {
self.syntax().children_with_tokens().any(|it| it.kind() == T![async])
}
}
impl ast::LetStmt {