Skip to content

babel parser type improvements#14801

Merged
liuxingbaoyu merged 6 commits intobabel:mainfrom
zxbodya:ts-babel-parser
Aug 3, 2022
Merged

babel parser type improvements#14801
liuxingbaoyu merged 6 commits intobabel:mainfrom
zxbodya:ts-babel-parser

Conversation

@zxbodya
Copy link
Copy Markdown
Contributor

@zxbodya zxbodya commented Jul 26, 2022

Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Type improvements for babel parser:

  • uncommenting flow comments, converting them to typescript
  • making some classes abstract (effectively they were already abstract)
  • better types for parser plugins
  • avoid using ...args in class methods, replacing it with actual arguments
  • other type error fixes

(rebasing remaining type fixes from #13370)

@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Jul 26, 2022

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/52628/

Comment on lines -3149 to +3154
return super.checkParams(node, allowDuplicates, isArrowFunction);
return super.checkParams(
node,
allowDuplicates,
isArrowFunction,
strictModeChanged,
);
Copy link
Copy Markdown
Contributor Author

@zxbodya zxbodya Jul 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here, interestingly - last argument was missing(comparing to overridden method signature)

Copy link
Copy Markdown
Contributor

@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@JLHwung JLHwung added PR: Internal 🏠 A type of pull request used for our changelog categories pkg: parser labels Aug 2, 2022
@liuxingbaoyu liuxingbaoyu merged commit 8d17ae6 into babel:main Aug 3, 2022
@zxbodya zxbodya deleted the ts-babel-parser branch August 3, 2022 10:45
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Nov 3, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser PR: Internal 🏠 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants