Skip to main content

expr_contains_await

Function expr_contains_await 

Source
pub fn expr_contains_await(expr: &TsExpr) -> bool
Expand description

Whether expr contains an await, at any depth. A TsExpr::VerbatimExpr or TsExpr::RawUsing is foreign text, so it is searched as text; an Ident is an identifier path, so it never awaits.