about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-01T14·48+0300
committertazjin <tazjin@tvl.su>2022-09-07T20·04+0000
commit20996601ea28071e590ed91147176dfb2db5ceb9 (patch)
tree28154af1ea649d1e797f741ce9942e5e0d9ef824
parent9f5f85a1c1fe98e83fa57d58511675818cdb1871 (diff)
feat(tvix/eval): track source spans for `with` expressions r/4728
Change-Id: I1d58ce548b5b47e967928e85bb64acf5ed69ecc8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6395
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
-rw-r--r--tvix/eval/src/compiler/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs
index fa4c56d493c5..4dd8fe4b50af 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();
     }