Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare TypedScopeCreator to work with ES6 block scopes.
1. Split the `scope` field in TypedScopeCreator.AbstractScopeBuilder into `currentScope` and `currentHoistScope`. These currently point to the same object, so no behavior change is expected. 2. Declare qualified names on their owner's scope: this is a slight behavior change that improves type inference. It's included in this change because with the introduction of block scopes, the question of which scope to declare a qualified name on is becoming more nuanced, so it helps to start by making the behavior more consistent. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=191386776
- Loading branch information
1 parent
8ae7242
commit 68a5bd7
Showing
4 changed files
with
296 additions
and
144 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
Oops, something went wrong.