Skip to content

[Codegen 129]: add emitObjectProp in parser primitives - #37872

Closed
tarunrajput wants to merge 1 commit into
react:mainfrom
tarunrajput:add-emitObjectProp
Closed

[Codegen 129]: add emitObjectProp in parser primitives#37872
tarunrajput wants to merge 1 commit into
react:mainfrom
tarunrajput:add-emitObjectProp

Conversation

@tarunrajput

Copy link
Copy Markdown
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-botfacebook-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
Copy Markdown
Contributor

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

@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a8,755,252+0
androidhermesarmeabi-v7a8,067,825-1
androidhermesx869,247,852-1
androidhermesx86_649,096,987-2
androidjscarm64-v8a9,316,460+1
androidjscarmeabi-v7a8,506,360+0
androidjscx869,379,946-1
androidjscx86_649,633,187-2

Base commit: b03c5af
Branch: main

@Pranav-yadavPranav-yadav added the Tech: Codegen Related to react-native-codegen label Jun 14, 2023

@cipolleschicipolleschi left a comment

Copy link
Copy Markdown
Contributor

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-botfacebook-github-bot added the Merged This PR has been merged. label Jun 14, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@rshest merged this pull request in 202b965.

@tarunrajput

Copy link
Copy Markdown
ContributorAuthor

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

@cipolleschi

Copy link
Copy Markdown
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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.Tech: CodegenRelated to react-native-codegen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@tarunrajput@facebook-github-bot@analysis-bot@cipolleschi@Pranav-yadav