lsp/eval: add support for comprehension else/fallback
This is not perfect, but it's exposed that jump-to-definition sometimes
acts as a "MUST" (i.e. we guarantee that every result is unified
together) and sometimes acts as a "MAY" (i.e. the results may be unified
together depending on other inputs, e.g. a disjunction). This comes to a
head with else/fallback on comprehensions. A better solution will be
developed in time, possibly using other LSP functionality. But for now,
this gets the feature supported albeit imperfectly.
Signed-off-by: Matthew Sackman <matthew@cue.works>
Change-Id: I92172424d4b3c1e6e6f0bf4f74a707cfa563fee1
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1232057
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>