-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/parsers/zero: improve Identifiers typing (#195)
This allows us to do less redundant type assertions while handling the zero prog identifiers. We may go even further, but this step is enough for now to make zero hints handler less awkward. The `.([]zero.Reference)` assertion was not working as the slice contained `[]any` instead. Instead of rewriting the code to handle even more weakly typed `any` values, this patch improves the Identifier objects typing. This makes type assertions and slice conversions unnecessary.
- Loading branch information
Showing
4 changed files
with
55 additions
and
64 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