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

[Codegen-135] add getPaperTopLevelNameDeprecated to parsers #38683

Closed
wants to merge 1 commit into from

Conversation

siddarthkay
Copy link
Contributor

@siddarthkay siddarthkay commented Jul 30, 2023

Summary:

[Codegen 135] This PR introduces getPaperTopLevelNameDeprecated to parser base class and abstracts the logic out of typescript and parser events as requested on #34872

Changelog:

[Internal] [Changed] - Add getPaperTopLevelNameDeprecated to parser base class and update usages.

Test Plan:

Run yarn jest react-native-codegen locally and ensure CI is green

Screenshot of test passing locally:

Screenshot 2023-07-30 at 10 04 24 AM

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jul 30, 2023
@analysis-bot
Copy link

analysis-bot commented Jul 30, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,885,448 +1
android hermes armeabi-v7a 7,935,794 -2
android hermes x86 9,281,964 +2
android hermes x86_64 9,185,449 +2
android jsc arm64-v8a 9,473,446 +0
android jsc armeabi-v7a 8,416,806 +3
android jsc x86 9,456,193 +0
android jsc x86_64 9,772,405 +3

Base commit: 265f72f
Branch: main

@siddarthkay
Copy link
Contributor Author

@cipolleschi @rshest : All checks pass and PR is ready for review

Copy link
Contributor

@rshest rshest left a comment

Choose a reason for hiding this comment

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

Please fix the API description.

@@ -414,4 +414,11 @@ export interface Parser {
* @returns: the properties of an object represented by a type annotation.
*/
getObjectProperties(typeAnnotation: $FlowFixMe): $FlowFixMe;

/**
* Given a typeAnnotation return the properties of an object.
Copy link
Contributor

Choose a reason for hiding this comment

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

I imagine that's a copypaste?..

Could you please modify this so it actually does correspond to what the method does? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, I forgot to update that 1st line, will fix! Thanks for the review :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated the description @rshest

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 31, 2023
@facebook-github-bot
Copy link
Contributor

@rshest merged this pull request in 8bcfc49.

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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants