Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify scope creator's scanVars method.
Instead of trying to track down what nodes are in the "current lexical scope", explicitly pass the scopes around, and in particular give scanVars reference up to two scopes: * The hoist scope in which vars should be declared * The local block scope in which everything else should be declared. This also allows us to remove both of the boolean parameters from scanVars #codehealth ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=162496322
- Loading branch information
Showing
1 changed file
with
42 additions
and
76 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