Skip to content

Conversation

@yux-m
Copy link
Contributor

@yux-m yux-m commented Mar 13, 2023

Summary

[Codegen 91] Extract the inner switch in typescript/modules/index.js at line to parse the case TSTypereference (lines)into a function translateTypeReferenceAnnotation() (the goal is to try and get a simpler switch statement and to spot structural similiarities between the flow and typescript index.js files)

Part of Issue #34872

Changelog

[INTERNAL] [CHANGED] - Extract inner switch case 'TSTypereference' to function translateTypeReferenceAnnotation().

Test Plan

  • yarn lint
  • yarn run flow
  • yarn test react-native-codegen

@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 Mar 13, 2023
@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.

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,519,172 +0
android hermes armeabi-v7a 7,834,700 +0
android hermes x86 8,999,506 +0
android hermes x86_64 8,854,758 +0
android jsc arm64-v8a 9,142,474 +0
android jsc armeabi-v7a 8,333,842 +0
android jsc x86 9,197,229 +0
android jsc x86_64 9,455,335 +0

Base commit: 803bb16
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 16, 2023
@facebook-github-bot
Copy link
Contributor

@cipolleschi merged this pull request in 94f505b.

OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…ReferenceAnnotation() (facebook#36463)

Summary:
> [Codegen 91] Extract the inner switch in typescript/modules/index.js at line to parse the case TSTypereference ([lines](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/typescript/modules/index.js#L194-L275))into a function translateTypeReferenceAnnotation() (the goal is to try and get a simpler switch statement and to spot structural similiarities between the flow and typescript index.js files)

Part of Issue facebook#34872

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[INTERNAL] [CHANGED] - Extract inner switch case 'TSTypereference' to function translateTypeReferenceAnnotation().

Pull Request resolved: facebook#36463

Test Plan:
- yarn lint
- yarn run flow
- yarn test react-native-codegen

Reviewed By: cortinico

Differential Revision: D44027755

Pulled By: cipolleschi

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants