diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-01T14·05+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-07T19·23+0000 |
commit | f14b368514d179571cc0973fe76c757bee060510 (patch) | |
tree | 5bf534606985a3c1f3664ee9aabe19aea90cf163 | |
parent | 3c4eed9b76f85b9e3adb396e2e9aa3669ad1a88f (diff) |
feat(tvix/eval): track source spans for strings r/4715
Change-Id: I29e6c7f9e25d1b2e6bafa602c463eb9ccee2131b Reviewed-on: https://cl.tvl.fyi/c/depot/+/6382 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
-rw-r--r-- | tvix/eval/src/compiler/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |