internal/core/adt: add more error positions
Deleting evalv2 pointed out some error position
logic that did not exist in evalv3 yet.
The containment slice recently introduced in
OpContext is a good place to keep track of
containment positions.
We implement this, following the same approach
as for evalv2.
Note that containment only works, at the moment,
for positions derived within the same OpContext.
It does not solve the position reported in Issue
3992, possibly for that reason.
Issue #3992
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I882769188321c5662707049ba08adbcc79699d16
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1220009
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>