-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The new evaluator does not implement IsSpan. Instead it kept track of closedness through the new closeContext construct. The relevant information on whether or not a struct is closed is now copied to fields in the Vertex. Rather than just having Closed, it keeps trackof this with an additional field HasEllipsis. This allows accumulating information as it comes in, instead of possibly revert setting Closed, which is less error prone. This is especially so because the old evaluator uses Closed in a slightly different way. Issue #3060 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: I90672c3a37fd441c0a718b6349961e33df2026d0 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194049 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
- Loading branch information
Showing
4 changed files
with
44 additions
and
9 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