-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port all babel-parser changes from 2018-10-01 to 2018-11-09 (#333)
Notably, this adds support for TypeScript 3.0 syntax. Details: 07862e727 Fix perf issue in typescript parser plugin (#8792) 🚫 Already implemented with a similar fix. 3c8740171 [decorators] [typescript] Parse type parameters (#8767) ✅ Straightforward port. a5b5ed928 Typescript - Tuple elements can be optional (#8720) ✅ Straightforward port. 2575312d1 Fix parsing of slash after class expression (#8804) ✅ Already worked, added test. 850bc1d3d class private methods and properties: should not allow spaces between # and identifier (#8756) 🚫 Error checking only. 08454ece4 Typescript - Tuples can include rest elements (#8805) ✅ Straightforward port. d2c75c2d3 fix: corrects handling of newline after async with paren-less arrow function (#8830) ✅ Straightforward port with new regression test. ce1a6526e [email protected] (#8832) 🚫 Nothing to port. 8ee857e26 v7.1.3 🚫 Nothing to port. 929567523 Fixes #8865 (#8866) 🚫 Sucrase doesn't maintain curLine. e4929e11f [flow] Explicit inexact objects with `...` (#8884) ✅ Relatively straightforward port with test. No error handling ported. cd81b079e Allow function types in type params within arrow return types (#8954) ✅ Already worked, just implemented test. f216a7b06 [flow] Add support for parsing `_` as implicit instantiation in call/new (#8883) ✅ Already worked, complexity in the babel code seemed to all be around error handling. 24c4901ff Remove Babylon plugins for features already merged to the ECMAScript spec (#8448) 🚫 Sucrase doesn't have parser plugins. e3b2c1aff fix: Do not allow TypeCastExpressions w/o parens (#8956) 🚫 Just extra error handling. 2194842d1 Typescript: Validate tuple type element positions (#8828) 🚫 Just error handling. 2fa198463 Fix await in function name and parameters (#7727) 🚫 Just error handling. afe67a703 v7.1.5 🚫 Release only. 5d5cd8612 Fix several edge cases with context expression state (#8972) ✅ Added tests, but seems like everything was already working. The fixes were all around context, and Sucrase got rid of context. 343f776ca Rename primitive types to reserved types (#8984) 🚫 Code doesn't exist in Sucrase. 4f206b241 [email protected] (#9001) 🚫 Tooling upgrade.
- Loading branch information
1 parent
3032f6b
commit fadf8af
Showing
7 changed files
with
206 additions
and
2 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