feat(tvix/eval): track source spans for unary operators

Change-Id: I79034a4aa04aea66ec598e33e6eab35e1e19c0d0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6383
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-09-01 17:05:58 +03:00 committed by tazjin
parent f14b368514
commit 176e729556

View file

@ -256,7 +256,7 @@ impl Compiler<'_> {
ast::UnaryOpKind::Negate => OpCode::OpNegate,
};
self.push_op_old(opcode);
self.push_op(opcode, &op);
}
fn compile_binop(&mut self, slot: Option<LocalIdx>, op: ast::BinOp) {