-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ast/astutil: deprecate Cursor.Import
Cursor.Import always creates name-mangled imports to avoid collisions. It was created before astutil.Sanitize, which does a much better job of detecting whether name manglation is required or not. Remove the one remaining use of Cursor.Import, in cmd/import.go; Mark the Cursor.Import API as deprecated. Sadly, it's a public API so we can't just remove it. Signed-off-by: Matthew Sackman <[email protected]> Change-Id: I2adc92f93198e4988af7d9277b894262d0a5a8ce Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200507 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
1 parent
1e65cee
commit 691ee74
Showing
3 changed files
with
16 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