fix: align await traversal with generated AST node shape
Verify Tessera GUI / verify (push) Failing after 9m42s

This commit is contained in:
2026-10-23 20:16:01 +08:00
parent 5256ac1318
commit c9eb498932
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1346,7 +1346,7 @@ impl Architecture {
ExprKind::Number(value) => (value.clone(), "number", vec![]),
ExprKind::String(value) => (value.chars().take(40).collect(), "string", vec![]),
ExprKind::Symbol(name) => (name.text.clone(), "symbol", vec![]),
ExprKind::Unary { operand, .. } | ExprKind::Await { operand } => {
ExprKind::Unary { operand, .. } | ExprKind::Await(operand) => {
("negate".into(), "unary", vec![self.expression(operand)])
}
ExprKind::Binary { left, right, .. } => (
+1 -1
View File
@@ -162,7 +162,7 @@ fn shift_expression(expression: &mut Expr, offset: usize) {
match &mut expression.kind {
ExprKind::Name(_) | ExprKind::Number(_) | ExprKind::String(_) => {}
ExprKind::Symbol(name) => shift_span(&mut name.span, offset),
ExprKind::Unary { operand, .. } | ExprKind::Await { operand } => {
ExprKind::Unary { operand, .. } | ExprKind::Await(operand) => {
shift_expression(operand, offset)
}
ExprKind::Binary { left, right, .. } => {
+1 -1