-
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.
Loading status checks…
internal/core/adt: fix dropping of field
Previously, inline struct were reapproriated by linking them into the destination struct by setting the parent and label. However, labels are used to look up fields. This resulted in fields being dropped. To keep access to the field, rather than overwriting it, we now point the parent to the node in which it is shared, rather than its parent. This introduces an additional path component upon traversal, which we subsequently adjust for in the code that generates paths. Issue #3601 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: I41987d4201ce34b25904f06afaf3e5474fbf926d Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205232 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Matthew Sackman <matthew@cue.works>
Showing
3 changed files
with
8 additions
and
12 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