-
Notifications
You must be signed in to change notification settings - Fork 1
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: limit error propagation to cross package
This check mostly necessary to catch cross-package errors. Within packages it may result in unintuitive error messages. This is because the error status of a node may change during evaluation. Note that package nodes are self-contained and that because of a lack of cycles, a package node is always fully evaluated before a referring node. In order to determine whether an error crosses package boundaries, we mark the originating node in the error. An error orginates from a different package if they root node is different. There are probably less error-prone mechanisms to determine the package, but the impact of getting it wrong is quite small, so this is sufficient for now. Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I82c5e199a1bc0746abb60b825c31e03587061f39 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200793 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Matthew Sackman <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
Showing
20 changed files
with
141 additions
and
128 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
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.