From eb169c51a757a0bbf100030deeac300dd1d6dfb2 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 1 Sep 2022 17:15:32 +0300 Subject: [PATCH] feat(tvix/eval): track source spans for lists Change-Id: Icfd057ee29180cac17264bb3299c67eae0051aee Reviewed-on: https://cl.tvl.fyi/c/depot/+/6387 Tested-by: BuildkiteCI Reviewed-by: sterni --- tvix/eval/src/compiler/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs index 2c2576702..688013f43 100644 --- a/tvix/eval/src/compiler/mod.rs +++ b/tvix/eval/src/compiler/mod.rs @@ -427,7 +427,7 @@ impl Compiler<'_> { self.compile(slot, item); } - self.push_op_old(OpCode::OpList(Count(count))); + self.push_op(OpCode::OpList(Count(count)), &node); } // Compile attribute set literals into equivalent bytecode.