Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babel parser type improvements #14801

Merged
merged 6 commits into from Aug 3, 2022
Merged

Conversation

zxbodya
Copy link
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
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
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
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.

None yet

4 participants