Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Extract codegen ParserError from flow and typescript into a common file #34874

Conversation

gabrieldonadel
Copy link
Collaborator

Summary

This PR extracts the ParserError class from the error.js files from the flow and typescript folders into a single file in their parent folder in order to reduce the amount of duplicated code as requested on #34872

Changelog

[Internal] [Changed] - Extract codegen ParserError from flow and typescript folders into a common file

Test Plan

Run yarn jest react-native-codegen and ensure CI is green

image

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Oct 5, 2022
@analysis-bot
Copy link

analysis-bot commented Oct 5, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,746,762 +0
android hermes armeabi-v7a 7,148,545 +0
android hermes x86 8,057,738 +0
android hermes x86_64 8,028,677 +0
android jsc arm64-v8a 9,608,172 +0
android jsc armeabi-v7a 8,373,430 +0
android jsc x86 9,555,436 +0
android jsc x86_64 10,147,977 +0

Base commit: ae3dd54
Branch: main

@analysis-bot
Copy link

analysis-bot commented Oct 5, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: ae3dd54
Branch: main

@facebook-github-bot
Copy link
Contributor

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

@cipolleschi
Copy link
Contributor

I'm sorry, we are landing some changes and these introduced some conflicts. Could you rebase and fix them, please? 🙏

@gabrieldonadel gabrieldonadel force-pushed the chore/extract-codegen-parser-error branch from 261a7bc to 3c05118 Compare October 7, 2022 12:17
@gabrieldonadel
Copy link
Collaborator Author

I'm sorry, we are landing some changes and these introduced some conflicts. Could you rebase and fix them, please? 🙏

Sure @cipolleschi, no problem

@cipolleschi
Copy link
Contributor

/rebase

@github-actions github-actions bot force-pushed the chore/extract-codegen-parser-error branch from 3c05118 to ffef1c5 Compare October 7, 2022 13:48
@cipolleschi
Copy link
Contributor

@hramos could you reimport this? 🙏

@facebook-github-bot
Copy link
Contributor

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

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @gabrieldonadel in 7227bde.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 9, 2022
@gabrieldonadel gabrieldonadel deleted the chore/extract-codegen-parser-error branch October 9, 2022 19:15
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…mmon file (facebook#34874)

Summary:
This PR extracts the `ParserError` class from the `error.js` files from the flow and typescript folders into a single file in their parent folder in order to reduce the amount of duplicated code as requested on facebook#34872

## Changelog

[Internal] [Changed] - Extract codegen `ParserError` from flow and typescript folders into a common file

Pull Request resolved: facebook#34874

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

![image](https://user-images.githubusercontent.com/11707729/194135137-bf0fc82d-220b-4509-b1bb-1e7dae925efe.png)

Reviewed By: cipolleschi

Differential Revision: D40133301

Pulled By: cipolleschi

fbshipit-source-id: 060571cf993672a9d03003e1a1a7c2aa2f381123
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. hacktoberfest-accepted Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants