-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the ASTValidator to expect MODULE_BODY statements anywhere in …
…the SCRIPT (not just at the top) and validate the module contents. From http://b/294420383, we know that modules can exist during the transpiler passes and the compiler inserts some code above the goog.modules statements. However, ASTValidator crashes if it notices that a MODULE_BODY node is not the first child of a SCRIPT. This CL updates the validator to expect MODULE_BODY statement and validates the module contents. PiperOrigin-RevId: 555635449
- Loading branch information
1 parent
4201382
commit 7ee0b5e
Showing
2 changed files
with
69 additions
and
0 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