305f7c3352
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 |
||
---|---|---|
.. | ||
assets | ||
babel-plugin-codegen | ||
eslint-config-react-native-community | ||
eslint-plugin-react-native-community | ||
eslint-plugin-specs | ||
hermes-inspector-msggen | ||
normalize-color | ||
polyfills | ||
react-native-bots | ||
react-native-codegen | ||
react-native-gradle-plugin | ||
rn-tester |