-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This CL does some magic with FromDef in order to make the tests pass again after the reduction in closeContext graph depth. In general, FromDef should be taken from the ConjunctGroup leafs. However, sometimes FromDef is passed down too aggressively. We therefore erase the incoming FromDef in adt.Unify. At the same time, when adt.Unify is called from the API and passes a Vertex, we still need to honor the ClosedRecursive flag. We therefore keep setting this flag for adt.Unify (in addConjuncts). Another issue is that in insertSkipConjuncts, we now need to clear the FromDef not only in ConjunctGroups, but any conjunct with a lower depth, because there is no longer a conjunct group corresponding to each increase in depth of the graph. Issue #2850 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I89d53ff14e374350c1fff317d2f1baf20268aaec Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1209184 Reviewed-by: Matthew Sackman <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
Showing
6 changed files
with
78 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.