react-native-macos/packages
Gabriel Donadel Dall'Agnol 305f7c3352 chore: Extract codegen case 'Stringish' into a single emitStringish function (#34936)
Summary:
This PR extracts the content of the codegen case `'Stringish'` into a single `emitStringish` function inside the `parsers-primitives.js` file and uses it in both Flow and TypeScript parsers as requested on https://github.com/facebook/react-native/issues/34872. This also adds unit tests to the new `emitStringish` function.

## Changelog

[Internal] [Changed] - Extract the content of the case 'Stringish' into a single emitStringish function

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

Test Plan:
Run `yarn jest react-native-codegen` and ensure CI is green

![image](https://user-images.githubusercontent.com/11707729/194987664-b588b82b-a9e0-49a9-a3cc-a03cb0a230e6.png)

Reviewed By: cipolleschi

Differential Revision: D40255921

Pulled By: rshest

fbshipit-source-id: 9c08f81f12c93995bb6ba032fabcd6451b8dc7c1
2022-10-12 03:06:04 -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 Extract the function createParserErrorCapturer into a single function in the parsers/utils.js file (#34934) 2022-10-11 05:24:25 -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 chore: Extract codegen case 'Stringish' into a single emitStringish function (#34936) 2022-10-12 03:06:04 -07:00
react-native-gradle-plugin Fix forward: Filtering platform in codegen (#34897) 2022-10-07 06:30:28 -07:00
rn-tester Bump Circle CI macOS container to Xcode 14.0.1, Ruby to 2.7.6, CocoaPods 1.11.3 (#34884) 2022-10-11 18:27:25 -07:00