-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store Quantified instead of Unique in Args/Kwargs
Summary: In D64797380 I made these store the Unique id of the relevant Quantified, because the QuantifiedKind would always be ParamSpec, so that bit wasn't necessary. This diff just uses the Quantified instead. For code that visits over the structure of code looking for Quantifieds, we can avoid adding extra cases. For example: * Deterministic printing * Quantified -> Name lookups (part of printing, see note) * Substitution Note that quantified name printing is currently incomplete. The display code walks types collecting bound tparams in types, but this doesn't account for bound tparams in _scope_. As a result, we still print out lots of types with `?_` instead of the name. Reviewed By: rchen152 Differential Revision: D67998105 fbshipit-source-id: b1008bf86470c89727082e9b1204b1326187fae9
- Loading branch information
1 parent
ab15eb0
commit 0e652f0
Showing
6 changed files
with
54 additions
and
53 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