From c9eb49893245201303f88a098f036955cd84fde0 Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Fri, 23 Oct 2026 20:16:01 +0800 Subject: [PATCH] fix: align await traversal with generated AST node shape --- src/endor_host.rs | 2 +- src/endor_script.rs | 2 +- vendor/aster | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/endor_host.rs b/src/endor_host.rs index ba77708..aebbaca 100644 --- a/src/endor_host.rs +++ b/src/endor_host.rs @@ -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, .. } => ( diff --git a/src/endor_script.rs b/src/endor_script.rs index 1a6f1c3..1dd7f94 100644 --- a/src/endor_script.rs +++ b/src/endor_script.rs @@ -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, .. } => { diff --git a/vendor/aster b/vendor/aster index ae75c54..89b8174 160000 --- a/vendor/aster +++ b/vendor/aster @@ -1 +1 @@ -Subproject commit ae75c54707eb2917d97a4117de9eff5a9f025938 +Subproject commit 89b817447e89e73c443304af8c207e1fc4502399