feat(tvix/eval): track source spans for paths

Change-Id: I42fbd0bb6c2a8feb520e262a25f59ff27dcd035c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6381
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-09-01 16:59:08 +03:00 committed by tazjin
parent eaf7af18be
commit 3c4eed9b76

View file

@ -217,7 +217,7 @@ impl Compiler<'_> {
// TODO: Use https://github.com/rust-lang/rfcs/issues/2208
// once it is available
let value = Value::Path(path.clean());
self.emit_constant_old(value);
self.emit_constant(value, &node);
}
fn compile_str(&mut self, slot: Option<LocalIdx>, node: ast::Str) {