fix: use generated tuple representation for Await AST nodes

This commit is contained in:
2026-10-23 20:15:49 +08:00
parent ae75c54707
commit 89b817447e
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ peg::parser! {
left:(@) slash() right:@ { binary(left, BinaryOp::Divide, right) }
--
start:keyword("await") operand:@ {
Expr { span: start.through(operand.span), kind: ExprKind::Await { operand: Box::new(operand) } }
Expr { span: start.through(operand.span), kind: ExprKind::Await(Box::new(operand)) }
}
start:minus() operand:@ {
Expr { span: start.through(operand.span), kind: ExprKind::Unary { operation: UnaryOp::Negate, operand: Box::new(operand) } }