-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Allow implicit self in escaping closures when self usage is unlikely to cause cycle #23934
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
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
1555a1f
WIP implementation
Jumhyn 43dd857
Cleanup implementation
Jumhyn 1d3c2d6
Install backedge rather than storing array reference
Jumhyn adf6589
Add diagnostics
Jumhyn 4804725
Add missing parameter to ResultFinderForTypeContext constructor
Jumhyn 509036a
Fix tests for correct fix-it language
Jumhyn 18b31c7
Change to solution without backedge, change lookup behavior
Jumhyn 3b35891
Improve diagnostics for weak captures and captures under different names
Jumhyn df5f6a1
Remove ghosts of implementations past
Jumhyn 6c657fb
Address review comments
Jumhyn 7406101
Merge remote-tracking branch 'origin/master' into implicit-self-capture
Jumhyn 638a621
Reorder member variable initialization
Jumhyn 05d79f8
Fix typos
Jumhyn 84f6131
Exclude value types from explicit self requirements
Jumhyn a5d7da0
Merge remote-tracking branch 'origin/master' into implicit-self-capture
Jumhyn a7e7d19
Add tests
Jumhyn 9eb87a5
Add implementation for AST lookup
Jumhyn 898f6c2
Add tests
Jumhyn 93be3a9
Begin addressing review comments
Jumhyn fa77977
Re-enable AST scope lookup
Jumhyn 6ccc6d0
Merge remote-tracking branch 'origin/master' into implicit-self-capture
Jumhyn 84363aa
Add fixme
Jumhyn 89dd842
Pull fix-its into a separate function
Jumhyn 2a27245
Remove capturedSelfContext tracking from type property initializers
Jumhyn c897186
Add const specifiers to arguments
Jumhyn f8856f8
Address review comments
Jumhyn 48f63f4
Fix string literals
Jumhyn 9a72c14
Refactor implicit self diagnostics
Jumhyn 2806afb
Add comment
Jumhyn 2905610
Remove trailing whitespace
Jumhyn 7246603
Add tests for capture list across multiple lines
Jumhyn d191ac2
Add additional test
Jumhyn b9f9589
Fix typo
Jumhyn 20cb90e
Remove use of ?: to fix linux build
Jumhyn ddd1ce8
Remove second use of ?:
Jumhyn 0b07312
Merge remote-tracking branch 'origin/master' into implicit-self-capture
Jumhyn 558c942
Rework logic for finding nested self contexts
Jumhyn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.