-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion #59944
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
[CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion #59944
Conversation
3479aef
to
dd946d9
Compare
88314e4
to
96200eb
Compare
96200eb
to
bff75cd
Compare
58c32b4
to
a803925
Compare
@swift-ci Please SourceKit stress test |
@swift-ci Please smoke test |
@swift-ci Please SourceKit stress test |
@swift-ci Please smoke test |
@swift-ci Please SourceKit stress test |
@swift-ci Please smoke test macOS |
e643091
to
7e64abb
Compare
@swift-ci Please smoke test |
@swift-ci Please SourceKit stress test |
7e64abb
to
d7a1a2d
Compare
@swift-ci Please smoke test |
@swift-ci Please SourceKit stress test |
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.
Looks reasonable to me!
@@ -1175,6 +1175,7 @@ Parser::parseExprPostfixSuffix(ParserResult<Expr> Result, bool isExprBasic, | |||
// [.foo(), <HERE> .bar()] | |||
// '.bar()' is probably not a part of the inserting element. Moreover, | |||
// having suffixes doesn't help type inference in any way. | |||
|
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.
Nit: whitespace.
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
@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
@swift-ci Please smoke test |
With this change, we are no longer passing
LeaveClosureBodiesUnchecked
for solver-based code completion. The only remaining user ofLeaveClosureBodiesUnchecked
are the legacy AST-based completions which I’m working to migrate to solver-based in the following PRs:After that, we can remove
LeaveClosureBodiesUnchecked
.