mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Remove AsyncOwner
This commit is contained in:
parent
42813126d9
commit
208ad97fdc
5 changed files with 6 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue