Include expression to wait for to the span of Await

This commit is contained in:
topecongiro
2019-05-10 14:44:43 +09:00
parent 03bd2f653f
commit c921aaed39

View File

@@ -2764,6 +2764,7 @@ impl<'a> Parser<'a> {
self.expect(&token::OpenDelim(token::Paren))?;
let expr = self.parse_expr()?;
self.expect(&token::CloseDelim(token::Paren))?;
hi = self.prev_span;
ex = ExprKind::Await(ast::AwaitOrigin::MacroLike, expr);
} else if self.token.is_path_start() {
let path = self.parse_path(PathStyle::Expr)?;