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 129]: add emitObjectProp in parser primitives #37872

Closed
wants to merge 1 commit into from

Conversation

tarunrajput
Copy link
Contributor

Summary:

Part of #34872

Create a function emitObjectProp(name: string, optional: boolean) in parser-primitives.js. Factor out the code from Flow and TypeScript into that function. Use that function in the original call site.

Changelog:

[Internal][Changed]: Add emitObjectProp in parser primitives

Test Plan:

yarn test react-native-codegen

@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 Jun 14, 2023
@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.

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,755,252 +0
android hermes armeabi-v7a 8,067,825 -1
android hermes x86 9,247,852 -1
android hermes x86_64 9,096,987 -2
android jsc arm64-v8a 9,316,460 +1
android jsc armeabi-v7a 8,506,360 +0
android jsc x86 9,379,946 -1
android jsc x86_64 9,633,187 -2

Base commit: b03c5af
Branch: main

@Pranav-yadav Pranav-yadav added the Tech: Codegen Related to react-native-codegen label Jun 14, 2023
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.

Thank you @tarunrajput for taking the time to work on this!

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

@rshest merged this pull request in 202b965.

@tarunrajput
Copy link
Contributor Author

@rshest @cipolleschi , It seems the this PR was not merged correctly. So, I've opened a follow-up PR #37904

@cipolleschi
Copy link
Contributor

@tarunrajput I'm sorry for this. Thank you for the followup!

facebook-github-bot pushed a commit that referenced this pull request Jun 15, 2023
Summary:
This is a follow up PR to #37872 as it was not merged correctly.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[Internal][Changed]: Add emitObjectProp in parser primitives

Pull Request resolved: #37904

Test Plan: `yarn test react-native-codegen`

Reviewed By: cipolleschi

Differential Revision: D46753690

Pulled By: rshest

fbshipit-source-id: a1d0a727222066f3721f62427a51ee0317e06f13
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