fix: align await traversal with generated AST node shape
Verify Tessera GUI / verify (push) Failing after 9m42s
Verify Tessera GUI / verify (push) Failing after 9m42s
This commit is contained in:
+1
-1
@@ -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
@@ -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, .. } => {
|
||||
|
||||
Vendored
+1
-1
Submodule vendor/aster updated: ae75c54707...89b817447e
Reference in New Issue
Block a user