tvl-depot/tvix/eval/src/compiler
Vincent Ambo 972c867b36 feat(tvix/eval): add error contexts to annotate error kinds
This makes it possible for users to add additional context to an
error, which will then be rendered as an additional secondary span in
the formatted error output.

We should strive to do this basically anywhere errors are raised that
can occur multiple times, *especially* during type casts. This was
triggered by me debugging a type cast error attached to a fairly
large-ish span (a builtin invocation).

Change-Id: I51be41fabee00cf04de973935daf34fe6424e76f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7849
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
2023-01-20 15:39:51 +00:00
..
bindings.rs feat(tvix/eval): warn on empty let-bindings 2023-01-06 12:23:55 +00:00
import.rs refactor(tvix/eval): streamline construction of globals/builtins 2023-01-04 12:28:43 +00:00
mod.rs feat(tvix/eval): add error contexts to annotate error kinds 2023-01-20 15:39:51 +00:00
optimiser.rs feat(tvix/eval): skip & warn for useless parenthesis 2023-01-06 12:23:55 +00:00
scope.rs fix(tvix/eval): don't increase with_stack_size in scope inherits 2023-01-06 12:23:55 +00:00