Skip to content

Conversation

@tarunrajput
Copy link
Contributor

@tarunrajput tarunrajput commented May 22, 2023

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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 22, 2023
@Pranav-yadav Pranav-yadav added the Tech: Codegen Related to react-native-codegen label May 22, 2023
@tarunrajput
Copy link
Contributor Author

/rebase

@github-actions github-actions bot force-pushed the add-handleGenericTypeAnnotation-fn branch from f23889a to d95cd99 Compare May 23, 2023 05:15
@analysis-bot
Copy link

analysis-bot commented May 23, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,744,384 -2
android hermes armeabi-v7a 8,056,513 -2
android hermes x86 9,235,452 -2
android hermes x86_64 9,086,264 -1
android jsc arm64-v8a 9,307,097 -1
android jsc armeabi-v7a 8,496,599 -1
android jsc x86 9,369,084 -1
android jsc x86_64 9,623,995 -3

Base commit: b6b247b
Branch: main

Copy link
Contributor

@cipolleschi cipolleschi left a 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

@tarunrajput tarunrajput force-pushed the add-handleGenericTypeAnnotation-fn branch from d95cd99 to 5de24f4 Compare May 24, 2023 16:24
@tarunrajput
Copy link
Contributor Author

@cipolleschi , Thank you for the review! I have updated the pull request to address all the points.

@tarunrajput tarunrajput force-pushed the add-handleGenericTypeAnnotation-fn branch from 5de24f4 to d9f4f0f Compare May 25, 2023 10:44
@Pranav-yadav Pranav-yadav requested a review from cipolleschi May 25, 2023 15:55
Copy link
Contributor

@cipolleschi cipolleschi left a 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! 🙏

@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@tarunrajput tarunrajput force-pushed the add-handleGenericTypeAnnotation-fn branch from d9f4f0f to 84bdffb Compare June 6, 2023 05:33
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 6, 2023
@facebook-github-bot
Copy link
Contributor

@cipolleschi merged this pull request in 8ffaede.

@tarunrajput tarunrajput deleted the add-handleGenericTypeAnnotation-fn branch June 27, 2023 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Tech: Codegen Related to react-native-codegen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants