diff --git a/src/protocol/ast_printer.rs b/src/protocol/ast_printer.rs index b0e2d899195d33eedfd977ee874103a9eb8329c7..5529cd3dde91d3b9834ab3cc4ecce3d8641eef9d 100644 --- a/src/protocol/ast_printer.rs +++ b/src/protocol/ast_printer.rs @@ -403,7 +403,7 @@ impl ASTWriter { self.kv(indent2).with_s_key("EndBlockID").with_disp_val(&stmt.end_block.0.index); self.kv(indent2).with_s_key("FirstUniqueScopeID").with_disp_val(&stmt.first_unique_id_in_scope); self.kv(indent2).with_s_key("NextUniqueScopeID").with_disp_val(&stmt.next_unique_id_in_scope); - self.kv(indent2).with_s_key("RelativePos").with_disp_val(&stmt.relative_pos_in_parent); + self.kv(indent2).with_s_key("RelativePos").with_disp_val(&stmt.scope_node.relative_pos_in_parent); self.kv(indent2).with_s_key("Statements"); for stmt_id in &stmt.statements {