-
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-03-15 to 2021-04-28 (#636)
Instructions: https://github.com/alangpierce/sucrase/wiki/Porting-changes-from-Babel's-parser 4b674ea031 v7.13.11 🚫 Release only. beb7cf8b24 Sort error keys with ESLint (#13020) 🚫 Babel-internal change. edb11baabf v7.13.12 🚫 Release only. 4f727139ec fix(ts): Allow parenthesized "assert and assign" (#12933) 🚫 Seems to work fine in Sucrase. 0067fd9e02 Disallow await before exponential (#12441) 🚫 Validation only. 2f8203f190 v7.13.13 🚫 Release only. 8efbac4a5d fix: the LHS in for-of loop should not start with let (#13049) 🚫 Validation only. a647b9ea6b Convert `@babel/core` to TypeScript (#12929) 🚫 Babel-internal. 7fe3ebf4db fix: raise `SyntaxError` for unparenthesized assert and assign (#13099) 🚫 Validation only. 42e630e8a2 Allow trailing comma after rest parameter in TSDeclareFunction (#13101) 🚫 Seems to work fine in Sucrase. e50f6f7eef v7.13.15 🚫 Release only. 368bf893fa [ts] raise `SyntaxError` for `declare` before getter/setter (#13143) 🚫 Validation only. d94a8e50ed v7.13.16 🚫 Release only. 10f4d08efb refactor: avoid parsing logic on locations (#13200) 🚫 Refactor not relevant to Sucrase. 0ee98139a6 Introduce parser error codes (#13033) 🚫 Error handling not relevant to Sucrase. eac0259ce2 Support TS 4.3 static index signature in classes (#13096) ✅ Ported and updated parser to mark all modifiers as type tokens. f8aa32f767 Support parsing Flow's Indexed Access Types (#13053) ✅ Straightforward port. bf14a106ad Support TS 4.3 `override` syntax in class (#13097) ✅ Ported non-validation parts and implemented the feature in the transformer as well. 2521c666f7 Add internal ESLint rule for consistent parser error messages (#13130) 🚫 Error messaging only. 7484b51e56 Support TS 4.3 `get`/`set` type members (#13089) ✅ Ported, though the implementation needed some changes to avoid depending on the AST. c949660b34 babel-parser: Deep freeze for `makeErrorTemplates` (#13142) 🚫 Babel internal.
- Loading branch information
1 parent
284bda6
commit 45d20de
Showing
13 changed files
with
286 additions
and
132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ export enum ContextualKeyword { | |
_namespace, | ||
_of, | ||
_opaque, | ||
_override, | ||
_private, | ||
_protected, | ||
_proto, | ||
|
Oops, something went wrong.