-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix #35 - Support nonescaping closure parameters #69
Fix #35 - Support nonescaping closure parameters #69
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #69 +/- ##
==========================================
+ Coverage 96.53% 96.68% +0.14%
==========================================
Files 16 17 +1
Lines 664 693 +29
==========================================
+ Hits 641 670 +29
Misses 23 23 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your contribution! I apologize for the delay in getting this review to you. I plan to allocate more time to this project in the future.
I've left a few inline comments, but they are minor. Overall, your changes look really good to me! Thanks once again for your contribution!
Sources/SpyableMacro/Extensions/FunctionParameters+Extensions.swift
Outdated
Show resolved
Hide resolved
Sources/SpyableMacro/Extensions/FunctionParameters+Extensions.swift
Outdated
Show resolved
Hide resolved
Tests/SpyableMacroTests/Extensions/UT_FunctionParameterListSyntax+Extensions.swift
Outdated
Show resolved
Hide resolved
# Conflicts: # Sources/SpyableMacro/Factories/ClosureFactory.swift # Tests/SpyableMacroTests/Factories/UT_ClosureFactory.swift
My last changes resulted in new conflicts in this PR. Here is PR to your fork that solves those conflicts: dafurman#1 |
Resolves conflicts
…swift Co-authored-by: Mateusz Bąk <[email protected]>
…swift Co-authored-by: Mateusz Bąk <[email protected]>
…tax+Extensions.swift Co-authored-by: Mateusz Bąk <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on these changes! I've reviewed the updates and everything looks solid and well-implemented. I appreciate the attention to detail you've included. Thanks! 🙌
See #35 for a description of the issue that this PR solves.
I also added support for parameters using autoclosure, as I noticed that attempting to use it would lead to a compilation issue:
![Screenshot 2023-11-23 at 12 13 08 PM](https://private-user-images.githubusercontent.com/10556242/285300601-74571b4c-07ee-498c-bb8c-9523bc411ed1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODUwMTEsIm5iZiI6MTczOTY4NDcxMSwicGF0aCI6Ii8xMDU1NjI0Mi8yODUzMDA2MDEtNzQ1NzFiNGMtMDdlZS00OThjLWJiOGMtOTUyM2JjNDExZWQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA1NDUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFlODJjMDkxMDMxZDY5MzNjZmQzZDY2YTEyNWMwODUzYTQ3NjU3ZTdkMTU3MTg3YzdjOTk4NjEyZWViYWI2ODYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.6VSa48Az5wExP36UTle_5wcig_X21eIY-lJWGaDC4TE)