react-native-macos/packages
MaeIg 5f05b07d02 Extract RootTag case of translateTypeAnnotation from the flow and typescript folders in parsers-primitives (#34901)
Summary:
This PR aims to reduce code duplication by extracting `emitRootTag` logic from the flow and typescript folders into a shared parsers-primitives file. It is a task of https://github.com/facebook/react-native/issues/34872:
> Extract the content of the case 'RootTag' (Flow TypeScript) into a single emitRootTag function in the parsers-primitives.js file. Use the new function in the parsers.

~~Note that https://github.com/facebook/react-native/issues/34898 should be merged first. I rebased on it's branch.~~

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[Internal] [Changed] - Extract RootTag case of translateTypeAnnotation from the flow and typescript folders in parsers-primitives

Pull Request resolved: https://github.com/facebook/react-native/pull/34901

Test Plan:
All tests are passing, with `yarn jest react-native-codegen`:
<img width="934" alt="image" src="https://user-images.githubusercontent.com/40902940/194777150-6136c1b6-11f8-4e21-829b-fda418b6925c.png">

Reviewed By: cipolleschi

Differential Revision: D40212553

Pulled By: cipolleschi

fbshipit-source-id: eadbbfb5cf6dfa6c966f4c08a5d9372a3470b621
2022-10-10 04:23:30 -07:00
..
assets @emails -> @oncall (remaining ones) 2022-09-15 15:54:10 -07:00
babel-plugin-codegen RN: Fix Existing Lint Warnings 2022-09-27 09:22:58 -07:00
eslint-config-react-native-community RN: Delete `eslint-config-react-native-community/yarn.lock` 2022-09-29 10:51:37 -07:00
eslint-plugin-react-native-community RN: Replace `error-subclass-name` with `require-extends-error` ESLint Rule 2022-09-27 14:37:29 -07:00
eslint-plugin-specs '@emails' -> '@oncall' (*.js) 2022-09-21 20:47:05 -07:00
hermes-inspector-msggen chore: rename hermes-inspector-msggen to @react-native/hermes-inspector-msggen (#34850) 2022-10-05 03:57:08 -07:00
normalize-color @emails -> @oncall (remaining ones) 2022-09-15 15:54:10 -07:00
polyfills @emails -> @oncall (remaining ones) 2022-09-15 15:54:10 -07:00
react-native-bots Add bots as a yarn workspace and update danger action (#34652) 2022-09-12 22:03:34 -07:00
react-native-codegen Extract RootTag case of translateTypeAnnotation from the flow and typescript folders in parsers-primitives (#34901) 2022-10-10 04:23:30 -07:00
react-native-gradle-plugin Fix forward: Filtering platform in codegen (#34897) 2022-10-07 06:30:28 -07:00
rn-tester build: Bump ws to 6.2.2 due to ReDoS vulnerability (#34759) 2022-10-10 02:58:40 -07:00