Skip to content

Conversation

@Marcoo09
Copy link
Contributor

Summary

Part of #34872

This PR extracts the content of the case 'Object' (Flow, TypeScript) into a single emitObject function in the parsers-primitives.js file. Use the new function in the parsers.

Changelog

[Internal] [Changed] - Extract contents of the case 'Object' into a single emitObject function

Test Plan

image

@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 Oct 10, 2022
@Marcoo09 Marcoo09 force-pushed the chore/extract-case-Object-to-parser-primitives branch from e561b28 to 49154d1 Compare October 10, 2022 14:45
@Marcoo09 Marcoo09 changed the title Chore/extract case object to parser primitives Chore/extract codegen case object to parser primitives Oct 10, 2022
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,768,507 +0
android hermes armeabi-v7a 7,169,463 +0
android hermes x86 8,081,647 +0
android hermes x86_64 8,053,150 +0
android jsc arm64-v8a 9,629,226 +0
android jsc armeabi-v7a 8,393,656 +0
android jsc x86 9,578,642 +0
android jsc x86_64 10,171,751 +0

Base commit: cb3a5cc
Branch: main

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: e4dff28
Branch: main

@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.

@cipolleschi
Copy link
Contributor

@Marcoo09 Can you please rebase and fix the conflicts? 🙏

@cortinico cortinico added the Merged This PR has been merged. label Oct 12, 2022
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
Part of facebook#34872

This PR extracts the content of the case 'Object' ([Flow](https://github.com/facebook/react-native/blob/b444f0e44e0d8670139acea5f14c2de32c5e2ddc/packages/react-native-codegen/src/parsers/flow/modules/index.js#L365-L367), [TypeScript](https://github.com/facebook/react-native/blob/00b795642a6562fb52d6df12e367b84674994623/packages/react-native-codegen/src/parsers/typescript/modules/index.js#L400-L402)) into a single emitObject function in the parsers-primitives.js file. Use the new function in the parsers.

## Changelog

[Internal] [Changed] - Extract contents of the case 'Object' into a single emitObject function

Pull Request resolved: facebook#34926

Test Plan: <img width="276" alt="image" src="https://user-images.githubusercontent.com/18408823/194892107-1da9d6e5-c659-47f9-8597-ff4a4b7710ca.png">

Reviewed By: rshest

Differential Revision: D40231670

Pulled By: cipolleschi

fbshipit-source-id: db6a61427c8c020d48be5317b094f136842b62ca
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. hacktoberfest-accepted Merged This PR has been merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants