-
Notifications
You must be signed in to change notification settings - Fork 25k
[Codegen 74] Replace getTypes functions with parser specific methods #36225
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
[Codegen 74] Replace getTypes functions with parser specific methods #36225
Conversation
Base commit: 05438c3 |
|
Thanks for taking the time to run this refactoring! |
|
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@AntoineDoubovetzky FYI, this task is 74, not 84 😁 |
|
Oh sorry, I updated the description |
|
@AntoineDoubovetzky could you please rebase and fix the merge conflicts, please? Now that we have a few people working on Codegen, they will be quite common.. 😅 |
160f5ba to
abe3cad
Compare
|
@cipolleschi It's done! |
|
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@cipolleschi merged this pull request in f23f7f4. |
Summary: This PR is task 74 from facebook#34872: > Move getTypes functions from utils.js to specific Parsers. Right now we have two Parser classes that takes care of the language specific details and two utils files that contains similar logic. We would like to move everything under the Parsers classes for better OOP architecture and to encourage code-reuse. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [Internal] [Changed] - Replace getTypes functions with parser specific methods Pull Request resolved: facebook#36225 Test Plan: I tested using Jest and Flow commands. Reviewed By: rshest Differential Revision: D43453454 Pulled By: cipolleschi fbshipit-source-id: 0eebcb55e1af3319e2c35bb462980046329a2c09
Summary
This PR is task 74 from #34872:
Changelog
[Internal] [Changed] - Replace getTypes functions with parser specific methods
Test Plan
I tested using Jest and Flow commands.