This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue: fix import usage detection for partially resolved files
Previously, the usage of imports was deteced by matching them with unresolved references. This did not work, however, when passing a previously processed ast.File, with already resolved references. The problem was previously undetected, as the CUE builder would always write out files and parse them back in. Recent optimizations that elide this step exposed this problem. This change also makes uses of the newer multi-error infrastructure and improves some of the naming of vars. Change-Id: Ieda38b989b050d90f0ced49e91acaea58ca47e19 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/5360 Reviewed-by: Jason Wang <jasonwzm@google.com> Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information
Showing
2 changed files
with
92 additions
and
22 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