From 20996601ea28071e590ed91147176dfb2db5ceb9 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 1 Sep 2022 17:48:43 +0300 Subject: feat(tvix/eval): track source spans for `with` expressions Change-Id: I1d58ce548b5b47e967928e85bb64acf5ed69ecc8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6395 Reviewed-by: sterni Tested-by: BuildkiteCI --- tvix/eval/src/compiler/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix/eval') diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs index fa4c56d493..4dd8fe4b50 100644 --- a/tvix/eval/src/compiler/mod.rs +++ b/tvix/eval/src/compiler/mod.rs @@ -836,11 +836,11 @@ impl Compiler<'_> { self.scope_mut().push_with(); - self.push_op_old(OpCode::OpPushWith(with_idx)); + self.push_op(OpCode::OpPushWith(with_idx), &node); self.compile(slot, node.body().unwrap()); - self.push_op_old(OpCode::OpPopWith); + self.push_op(OpCode::OpPopWith, &node); self.scope_mut().pop_with(); self.end_scope(); } -- cgit 1.4.1