Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Roll memoization directly into TypedScopeCreator.
This is a prerequisite for handling block scoping correctly: to ensure names are defined in the correct order, TypedScopeCreator needs to create nested block scopes when they are encountered in the createScope traversal, rather than afterwards. This is required for, e.g. `if (true) { class Base {} } class Sub extends Base {}`. TypedScopeCreator can now create these scopes and be sure they are correctly memoized. This is straightforward since every usage of TypedScopeCreator was always wrapped in MemoizedTypedScopeCreator. The upshot is that MemoizedTypedScopeCreator can now be deleted. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187245381
- Loading branch information
Showing
11 changed files
with
122 additions
and
218 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
121 changes: 0 additions & 121 deletions
121
src/com/google/javascript/jscomp/MemoizedTypedScopeCreator.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.