internal/core/adt: add wrapper for inline Vertex
When working on the evaluator and changing the
representation of Vertex, it is important to consider all
instantiations of it. A common case is an "inline" Vertex,
which does not have a place in the evaluation tree (does not
correspond to a CUE path), but is part of the computation.
This is treated slightly different for structural cycle detection.
Creating these with a special wrapper reduces the number of
literal Vertex values in the code.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I5b9732973bb961c3f5be6192223b7752fa534667
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/551887
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>