react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Parser create getTypeAnnotationName(typeAnnotation)

Open cloudpresser opened this issue 1 year ago • 5 comments

Summary:

[Codegen 134 - Assigned to @cloudpresser] Create a function getTypeAnnotationName(typeAnnotation) in the Parser base class. Implement it using this code for Flow and this code for Typescript. Replace the callsites with the new function.

This is part of #34872

Changelog:

[INTERNAL] [ADDED] - getTypeAnnotationName(typeAnnotation) in parser

Test Plan:

yarn jest packages/react-native-codegen > new tests written, as well as coverage from existing tests

cloudpresser avatar May 26 '23 02:05 cloudpresser

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,744,588 +3
android hermes armeabi-v7a 8,056,431 +3
android hermes x86 9,235,548 +3
android hermes x86_64 9,086,369 +4
android jsc arm64-v8a 9,307,266 +3
android jsc armeabi-v7a 8,496,489 +1
android jsc x86 9,369,139 -2
android jsc x86_64 9,624,077 +5

Base commit: 0191d16712a07b092e932a43e386abff9ca2d514 Branch: main

analysis-bot avatar May 31 '23 20:05 analysis-bot

@cipolleschi I updated this PR with changes suggested here. Also, now that upstream is fixed we're now passing CI tests here, :)

cloudpresser avatar Jun 01 '23 23:06 cloudpresser

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Jun 05 '23 10:06 facebook-github-bot

@cloudpresser I'm sorry to ask for this, I have been tried to land this change for a while, but meanwhile the state of the repo has changed. Could you please try to rebase and make sure that the CI is green again? 🙏

cipolleschi avatar Jun 12 '23 15:06 cipolleschi

/rebase

cipolleschi avatar Jun 14 '23 15:06 cipolleschi

@cipolleschi merged this pull request in facebook/react-native@e22d1a10cb9e5318f3636a9716ea8a82d65f8d70.

facebook-github-bot avatar Aug 04 '23 10:08 facebook-github-bot