Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify type resolution to no longer be scope-dependent
Removes TypedScope.ScopeResolver, which existed for two purposes: (1) ensure that JSType#resolve is called with the right scope argument, and (2) ensure that inner scopes were resolved before outer scopes. These are no longer relevant, since NamedType now stores the resolution scope internally, and therefore the resolution order is no longer important. Now there is only a single resolveTypes() method on TypedScopeCreator and JSTypeRegistry that is called outside of the per-scope loops. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=197846646
- Loading branch information
Showing
5 changed files
with
53 additions
and
81 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