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

[Plugin] [5/9] Split ProcessIfWorkletFunction into two functions and improve type checks #4215

Merged
merged 15 commits into from
Apr 3, 2023

Conversation

tjzel
Copy link
Contributor

@tjzel tjzel commented Mar 14, 2023

Summary

Previously ProcessIfWorkletFunction was doing both a check if the passed Node was a function and processed it. Now it is separated into two functions that allows some better control flow and type checking.
Direct follow-up to #4214.

Test plan

Type check on plugin is enough.

@tjzel tjzel changed the title [Plugin] Changes to ProcessIfWorkletFunction for better logic. [Plugin] [5/9] Changes to ProcessIfWorkletFunction for better logic. Mar 14, 2023
@tjzel tjzel changed the title [Plugin] [5/9] Changes to ProcessIfWorkletFunction for better logic. [Plugin] [5/9] Split ProcessIfWorkletFunction into two functions and improve type checks Apr 3, 2023
@tjzel tjzel marked this pull request as ready for review April 3, 2023 08:10
@tjzel tjzel added this pull request to the merge queue Apr 3, 2023
Merged via the queue into main with commit 2d3016b Apr 3, 2023
@tjzel tjzel deleted the @tjzel/plugin-process-if-worklet-function-changes branch April 3, 2023 08:28
tjzel added a commit that referenced this pull request Apr 3, 2023
…tinguished functions (#4216)

## Summary

Previously `ProcessForCalleesWorklets` was one big function that was
workletizing everything it should (objectHooks and workletizable
functions arguments) in its body. Now it's split.
Direct follow-up to #4215.

## Test plan
Type checking and yarn jest.
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
…improve type checks (software-mansion#4215)

## Summary

Previously ProcessIfWorkletFunction was doing both a check if the passed
Node was a function and processed it. Now it is separated into two
functions that allows some better control flow and type checking.
Direct follow-up to software-mansion#4214.

## Test plan
Type check on plugin is enough.
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
…tinguished functions (software-mansion#4216)

## Summary

Previously `ProcessForCalleesWorklets` was one big function that was
workletizing everything it should (objectHooks and workletizable
functions arguments) in its body. Now it's split.
Direct follow-up to software-mansion#4215.

## Test plan
Type checking and yarn jest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants