From f14b368514d179571cc0973fe76c757bee060510 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 1 Sep 2022 17:05:27 +0300 Subject: feat(tvix/eval): track source spans for strings Change-Id: I29e6c7f9e25d1b2e6bafa602c463eb9ccee2131b Reviewed-on: https://cl.tvl.fyi/c/depot/+/6382 Tested-by: BuildkiteCI Reviewed-by: sterni --- tvix/eval/src/compiler/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix/eval/src/compiler') diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs index e672b0f5baba..b9bbb5c9f17e 100644 --- a/tvix/eval/src/compiler/mod.rs +++ b/tvix/eval/src/compiler/mod.rs @@ -237,13 +237,13 @@ impl Compiler<'_> { ast::InterpolPart::Interpolation(node) => self.compile(slot, node.expr().unwrap()), ast::InterpolPart::Literal(lit) => { - self.emit_constant_old(Value::String(lit.into())); + self.emit_constant(Value::String(lit.into()), &node); } } } if count != 1 { - self.push_op_old(OpCode::OpInterpolate(Count(count))); + self.push_op(OpCode::OpInterpolate(Count(count)), &node); } } -- cgit 1.4.1