Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out provide/require handling from ProcessClosurePrimitives
Motivations: - We soon will move provide/require rewriting after typechecking, but don't care about the remaining primitives and will keep this before typechecking. - This pass is huge. - This potentially makes it easier to share goog.provide logic with other parts of the compiler. Eventually this should also be its own pass, but for now continues to run as part of ProcessClosurePrimitives. We also plan to remove the require rewriting eventually, and consolidate rewriting for requires in ES modules/goog.modules/goog.provide files/scripts. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=237530052
- Loading branch information