Commit d46f92c
Summary:
[Codegen 116] This PR attempts to extract the logic of `getEventArgument` function from the following locations :
- `parsers/flow/components/events.js`
- `parsers/typescript/components/events.js`
since they are the same and move the function to `parsers/parsers-commons.js` as requested on #34872
## Changelog:
[Internal] [Changed] - Move `getEventArgument` to parser-commons and update usages.
Pull Request resolved: #37133
Test Plan: Run `yarn jest react-native-codegen` and ensure CI is green
Reviewed By: christophpurrer
Differential Revision: D45569128
Pulled By: cipolleschi
fbshipit-source-id: 63a7619e5b4fca0157c62a359ac51831f4f15945
1 parent 74987b6 commit d46f92c
File tree
3 files changed
+23
-23
lines changed- packages/react-native-codegen/src/parsers
- flow/components
- typescript/components
3 files changed
+23
-23
lines changedLines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | 261 | | |
270 | 262 | | |
271 | 263 | | |
| |||
307 | 299 | | |
308 | 300 | | |
309 | 301 | | |
310 | | - | |
| 302 | + | |
311 | 303 | | |
312 | 304 | | |
313 | 305 | | |
| |||
324 | 316 | | |
325 | 317 | | |
326 | 318 | | |
327 | | - | |
| 319 | + | |
328 | 320 | | |
329 | 321 | | |
330 | 322 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
852 | 854 | | |
853 | 855 | | |
854 | 856 | | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
855 | 871 | | |
856 | 872 | | |
857 | 873 | | |
| |||
872 | 888 | | |
873 | 889 | | |
874 | 890 | | |
| 891 | + | |
875 | 892 | | |
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | 273 | | |
283 | 274 | | |
284 | 275 | | |
| |||
312 | 303 | | |
313 | 304 | | |
314 | 305 | | |
315 | | - | |
| 306 | + | |
316 | 307 | | |
317 | 308 | | |
318 | 309 | | |
| |||
323 | 314 | | |
324 | 315 | | |
325 | 316 | | |
326 | | - | |
| 317 | + | |
327 | 318 | | |
328 | 319 | | |
329 | 320 | | |
| |||
0 commit comments