[CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion#59944
Merged
ahoppen merged 6 commits intoswiftlang:mainfrom Feb 14, 2023
Merged
Conversation
3479aef to
dd946d9
Compare
88314e4 to
96200eb
Compare
96200eb to
bff75cd
Compare
58c32b4 to
a803925
Compare
Member
Author
|
@swift-ci Please SourceKit stress test |
Member
Author
|
@swift-ci Please smoke test |
Member
Author
|
@swift-ci Please SourceKit stress test |
Member
Author
|
@swift-ci Please smoke test |
Member
Author
|
@swift-ci Please SourceKit stress test |
Member
Author
|
@swift-ci Please smoke test macOS |
e643091 to
7e64abb
Compare
Member
Author
|
@swift-ci Please smoke test |
Member
Author
|
@swift-ci Please SourceKit stress test |
7e64abb to
d7a1a2d
Compare
Member
Author
|
@swift-ci Please smoke test |
Member
Author
|
@swift-ci Please SourceKit stress test |
Contributor
|
FYI, I reverted by other CSGen PR because it caused a couple of source compatibility issues. I think we need to simplify decl type before analyzing it. |
d7a1a2d to
5d97795
Compare
Member
Author
|
@swift-ci Please SourceKit stress test |
…n application target whose result is not unused This happens if the code completion expression initializes a variable in a multi-statement closure that doesn’t have LeaveClosureBodiesUnchecked set.
…sed code completion
…ode completion token
5d97795 to
754e9d7
Compare
Member
Author
|
@swift-ci Please smoke test |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
With this change, we are no longer passing
LeaveClosureBodiesUncheckedfor solver-based code completion. The only remaining user ofLeaveClosureBodiesUncheckedare the legacy AST-based completions which I’m working to migrate to solver-based in the following PRs:After that, we can remove
LeaveClosureBodiesUnchecked.