-
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 babel-parser changes from 2021-02-18 to 2021-03-14 (#635)
Instructions: https://github.com/alangpierce/sucrase/wiki/Porting-changes-from-Babel's-parser 2f755ef052 v7.12.17 🚫 Release only. 16e9f1c8e5 Support Flow `this` parameter annotations (#12234) 🚫 Seems to be working already. 5b99b8f221 Flow Enums with unknown members support (#12193) 🚫 For now, Flow enums won't be supported in Sucrase. e4588bed22 Support TypeScript 4.2 abstract constructor signatures (#12628) ✅ Ported with a similar implementation, but made a new enum value instead of passing a flag. 9c567baa9b Parse JS Module Blocks proposal (#12469) ✅ Added basic parsing support, though the transformer doesn't yet do anything special. Filed #634 as follow-up. 03d7911be6 Implement class features in estree (#12370) 🚫 Sucrase doesn't support entree. c827193d9c v7.13.0 🚫 Release only. c30039029a Don't enable class features by default in `estree` (#12867) 🚫 Sucrase doesn't support entree. e940b8c4b9 v7.13.4 🚫 Release only. b62fc3d44f babel-parser(flow): Set `this` property to `null` for FunctionTypeAnnotation without parens (#12930) 🚫 AST only. efdca01409 fix: add tokens when tokens: true is passed to parseExpression (#12939) 🚫 Only applies to Babel-specific API. 2c0e8d0008 v7.13.9 🚫 Release only. b416847b61 (ts) Raise syntax error for abstract methods with a body (#12687) 🚫 Validation only. d04842a700 Avoid using CJS globals in internal source files (#12963) 🚫 Babel change not relevant for Sucrase. d1d404b9a3 v7.13.10 🚫 Release only. 1a05b81387 Support multiple static blocks (#12738) 🚫 Only affects validation, multiple static blocks were already supported. 0988c471e9 Parse type imports in TSImportEqualsDeclaration (#12962) ✅ Implemented independently using similar logic as in Babel.
- Loading branch information
1 parent
fa424bd
commit 284bda6
Showing
7 changed files
with
170 additions
and
8 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