diff --git a/src/protocol/ast_printer.rs b/src/protocol/ast_printer.rs index 1f1a37a352675b6071b3d04b9a3e494270d0c9ec..68d1046f946d27bf2b21c38b5bdcf12c61504cea 100644 --- a/src/protocol/ast_printer.rs +++ b/src/protocol/ast_printer.rs @@ -472,7 +472,7 @@ impl ASTWriter { self.kv(indent2).with_s_key("EndWhile").with_disp_val(&stmt.end_while.0.index); self.kv(indent2).with_s_key("InSync") - .with_opt_disp_val(stmt.in_sync.as_ref().map(|v| &v.0.index)); + .with_disp_val(&stmt.in_sync.0.index); self.kv(indent2).with_s_key("Condition"); self.write_expr(heap, stmt.test, indent3); self.kv(indent2).with_s_key("Body"); @@ -565,10 +565,10 @@ impl ASTWriter { Expression::Binding(expr) => { self.kv(indent).with_id(PREFIX_BINARY_EXPR_ID, expr.this.0.index) .with_s_key("BindingExpr"); - self.kv(indent2).with_s_key("LeftExpression"); - self.write_expr(heap, expr.left.upcast(), indent3); - self.kv(indent2).with_s_key("RightExpression"); - self.write_expr(heap, expr.right, indent3); + self.kv(indent2).with_s_key("BindToExpression"); + self.write_expr(heap, expr.bound_to, indent3); + self.kv(indent2).with_s_key("BindFromExpression"); + self.write_expr(heap, expr.bound_from, indent3); self.kv(indent2).with_s_key("Parent") .with_custom_val(|v| write_expression_parent(v, &expr.parent)); },