diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-01T14·43+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-07T19·23+0000 |
commit | f37e4a0b9c285f89284059ddcda086b4d7a056ff (patch) | |
tree | 032de52caf26bfdf5c30bfdce4da17d3212571e8 /tvix | |
parent | 7f687f0e99141ccd13e10e4e85b955fedea347fe (diff) |
feat(tvix/eval): track source spans for `let` bindings r/4726
Change-Id: I9457917277a7fdd8bdbe227a567b28969312d06e Reviewed-on: https://cl.tvl.fyi/c/depot/+/6393 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix')
-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 714c24de3121..21b236761663 100644 --- a/tvix/eval/src/compiler/mod.rs +++ b/tvix/eval/src/compiler/mod.rs @@ -687,7 +687,7 @@ impl Compiler<'_> { self.emit_force(); self.emit_literal_ident(&ident); - self.push_op_old(OpCode::OpAttrsSelect); + self.push_op(OpCode::OpAttrsSelect, &ident); let idx = self.declare_local( ident.syntax().clone(), ident.ident_token().unwrap().text(), @@ -747,7 +747,7 @@ impl Compiler<'_> { for idx in indices { if self.scope()[idx].needs_finaliser { let stack_idx = self.scope().stack_index(idx); - self.push_op_old(OpCode::OpFinalise(stack_idx)); + self.push_op(OpCode::OpFinalise(stack_idx), &node); } } |