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 2022-01-10 to 2022-02-26 (#716)
Instructions: https://github.com/alangpierce/sucrase/wiki/Porting-changes-from-Babel's-parser 69246b6212 [babel 8] fix properties name for function-like TS nodes (#13709) 🚫 AST only. bc0d1ef860 v7.16.8 🚫 Release only. 478a9709ab Improve errors location tracking (#14130) 🚫 Change to error messaging details that were removed in Sucrase. 4a737547e5 v7.16.10 🚫 Release only. e5d29f6e40 fix: incorrect conciseBody lookahead (#14194) ✅ Bug doesn't appear in Sucrase, but I added a test anyway. 5266605528 v7.16.12 🚫 Release only. 5861002b33 Reinterpret << when parsing TS type arguments (#14145) ✅ Ported following a very similar implementation. 6b427ced22 Fuzz test location-related parser options (#14201) 🚫 Babel-internal change testing location logic not present in Sucrase. 96a8251def Add parser support for the "regexp unicode sets" proposal (#14086) ✅ No implementation necessary, but I added a quick test. f893b333a8 Add the `decoratorsAutoAccessors` parser plugin (#13681) ✅ Ported basic parsing for accessor properties. de5c7b1bce Parse destructuring private fields (#13931) ✅ Seems to be already working, and I added a test. 🚫 d50c18dbc2 fix: usePrivateName usage Only affects Babel scope code, not relevant to Sucrase. 🚫 b092bd0cb5 remove invalid test output Only affects Babel tests. df27d542ef proposal-pipe: Add support for `^^` and `@@` topics (#13973) 🚫 Sucrase is holding off on pipeline topic parsing until the details are finalized. Tracked in #674. 97a8bcb9cc Expose `.index` on Position to internally track nodes location (#14174) 🚫 Only affects class not used in Sucrase. 38c23cded4 v7.17.0 🚫 Release only. 19ede090eb parser: Update `babel-parser.d.ts` for 7v.17.0 features (#14266) 🚫 Not relevant to Sucrase. f52c70c357 v7.17.3 🚫 Release only. a53c2fa4a2 fix(ts): skip func-type param start on parsing (#14293) 🚫 Bug not present in Sucrase. 5749c16dc2 [tsx] raise error on single arrow type argument without comma (#14135) 🚫 Only affects error handling.
- Loading branch information