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

Fix #35 - Support nonescaping closure parameters #69

Merged
merged 13 commits into from
Jan 1, 2024

Conversation

dafurman
Copy link
Contributor

@dafurman dafurman commented Nov 23, 2023

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

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (43b9cfe) 96.53% compared to head (0185f33) 96.68%.
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@Matejkob Matejkob linked an issue Nov 30, 2023 that may be closed by this pull request
Copy link
Owner

@Matejkob Matejkob left a 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!

# Conflicts:
#	Sources/SpyableMacro/Factories/ClosureFactory.swift
#	Tests/SpyableMacroTests/Factories/UT_ClosureFactory.swift
@Matejkob
Copy link
Owner

My last changes resulted in new conflicts in this PR. Here is PR to your fork that solves those conflicts: dafurman#1

dafurman and others added 5 commits December 31, 2023 11:48
…swift

Co-authored-by: Mateusz Bąk <bakmatthew@icloud.com>
…swift

Co-authored-by: Mateusz Bąk <bakmatthew@icloud.com>
…tax+Extensions.swift

Co-authored-by: Mateusz Bąk <bakmatthew@icloud.com>
Copy link
Owner

@Matejkob Matejkob left a 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! 🙌

@Matejkob Matejkob merged commit 6fd5ae6 into Matejkob:main Jan 1, 2024
4 checks passed
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.

Support func foo(nonescapingClosure: () -> Void)
2 participants