-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/core/adt: impove arcType update logic
This makes closedness checking with arcType updates more robust: - it asserts that "allows" is only called on closeContexts that are done processing - it consolidates recursive logic in a single place instead of sprinkling it throughout comprehension code - it now actively marks disallowed pending nodes as ArcNotPresent - decisions now mostly rely on the arcType in the closeContext only, instead of on both the arc type in the Vertex and closeContext. It also simplifies some of the calling signatures and cleans up some of the logic in the process. Fixes #3533 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: I5f2663fa2167ba2a4bcaadcf9a8f8196c0d3600d Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1203000 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
- Loading branch information
Showing
5 changed files
with
67 additions
and
163 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
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.