Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Roll forward 179255046: Normalize shorthand object properties.
NEW: updated transpile.js to be in sync with the final state of the CL, rather than an intermediate state. Automated g4 rollback of changelist 179430808. *** Reason for rollback *** Roll forward *** Original change description *** Automated g4 rollback of changelist 179255046. *** Reason for rollback *** Breaks transpilation. *** Original change description *** Normalize shorthand object properties. After this change, the AST no longer has special forms for shorthand object properties (i.e. {x}), neither in object literals nor in object destructuring patterns. Import specs are unchanged. All handling of shorthand properties has been pushed to the extremities of parsing (which returns the same AST as {x:x}, except the STRING_KEY node has an IS_SHORTHAND_PROPERTY annotation) and code generation (which will re-collapse the property if the annotation is present and the names are the same). This greatly simplifies a number of checks, transpilations, and optimizations, which now no longer need to deal with a different form of tree. *** ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179499029
- Loading branch information
Showing
19 changed files
with
146 additions
and
203 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
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
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
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.