-
Notifications
You must be signed in to change notification settings - Fork 25k
[Codegen 108]: add handleGenericTypeAnnotation in parser-commons #37525
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
[Codegen 108]: add handleGenericTypeAnnotation in parser-commons #37525
Conversation
|
/rebase |
f23889a to
d95cd99
Compare
Base commit: b6b247b |
cipolleschi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work! I think we can improve it even a little further, I added some extra comments in the PR
d95cd99 to
5de24f4
Compare
|
@cipolleschi , Thank you for the review! I have updated the pull request to address all the points. |
5de24f4 to
d9f4f0f
Compare
cipolleschi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for updating the code! 🙏
|
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
d9f4f0f to
84bdffb
Compare
|
@cipolleschi merged this pull request in 8ffaede. |
Summary:
Part of #34872
Move the switch construct from parsers/typescript/utils.js and parsers/flow/utils.js to the parsers-commons.js file, in a handleGenericTypeAnnotation function. Use that function in place of the switch.
Changelog:
[Internal][Added]: Added handleGenericTypeAnnotation in parsers-commons
Test Plan:
yarn test