Skip to content

[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

Merged
merged 6 commits into from
Feb 14, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jul 7, 2022

With this change, we are no longer passing LeaveClosureBodiesUnchecked for solver-based code completion. The only remaining user of LeaveClosureBodiesUnchecked 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.

@ahoppen ahoppen changed the title [CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion [WIP][CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion Jul 7, 2022
@ahoppen ahoppen force-pushed the pr/no-leaveclosurebodiesunchecked branch 2 times, most recently from 3479aef to dd946d9 Compare September 7, 2022 14:09
@ahoppen ahoppen changed the title [WIP][CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion [WIP3 ][CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion Sep 7, 2022
@ahoppen ahoppen changed the title [WIP3 ][CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion [WIP 3][CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion Sep 7, 2022
@ahoppen ahoppen force-pushed the pr/no-leaveclosurebodiesunchecked branch 2 times, most recently from 88314e4 to 96200eb Compare September 9, 2022 09:17
@ahoppen ahoppen force-pushed the pr/no-leaveclosurebodiesunchecked branch from 96200eb to bff75cd Compare January 4, 2023 15:40
@ahoppen ahoppen changed the title [WIP 3][CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion [CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion 🚥 #59992, #62833 Jan 4, 2023
@ahoppen ahoppen changed the title [CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion 🚥 #59992, #62833 [CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion 🚥 #59992 Feb 2, 2023
@ahoppen ahoppen force-pushed the pr/no-leaveclosurebodiesunchecked branch 2 times, most recently from 58c32b4 to a803925 Compare February 6, 2023 18:50
@ahoppen ahoppen changed the title [CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion 🚥 #59992 [CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion Feb 6, 2023
@ahoppen ahoppen marked this pull request as ready for review February 6, 2023 18:53
@ahoppen
Copy link
Member Author

ahoppen commented Feb 6, 2023

@swift-ci Please SourceKit stress test

@ahoppen
Copy link
Member Author

ahoppen commented Feb 6, 2023

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Feb 6, 2023

@swift-ci Please SourceKit stress test

@ahoppen
Copy link
Member Author

ahoppen commented Feb 6, 2023

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Feb 6, 2023

@swift-ci Please SourceKit stress test

@ahoppen
Copy link
Member Author

ahoppen commented Feb 6, 2023

@swift-ci Please smoke test macOS

@ahoppen
Copy link
Member Author

ahoppen commented Feb 9, 2023

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Feb 9, 2023

@swift-ci Please SourceKit stress test

@ahoppen ahoppen changed the title [CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion [CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion 🚥 #63566 Feb 10, 2023
@ahoppen
Copy link
Member Author

ahoppen commented Feb 10, 2023

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Feb 10, 2023

@swift-ci Please SourceKit stress test

Copy link
Contributor

@xedin xedin left a 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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: whitespace.

@xedin
Copy link
Contributor

xedin commented Feb 11, 2023

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.

@ahoppen ahoppen force-pushed the pr/no-leaveclosurebodiesunchecked branch from d7a1a2d to 5d97795 Compare February 12, 2023 19:23
@ahoppen
Copy link
Member Author

ahoppen commented Feb 12, 2023

@swift-ci Please SourceKit stress test

@ahoppen ahoppen changed the title [CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion 🚥 #63566 [CodeCompletion] Eliminate LeaveClosureBodiesUnchecked for solver-based code completion Feb 14, 2023
@ahoppen ahoppen force-pushed the pr/no-leaveclosurebodiesunchecked branch from 5d97795 to 754e9d7 Compare February 14, 2023 08:41
@ahoppen
Copy link
Member Author

ahoppen commented Feb 14, 2023

@swift-ci Please smoke test

@ahoppen ahoppen merged commit ab42032 into swiftlang:main Feb 14, 2023
@ahoppen ahoppen deleted the pr/no-leaveclosurebodiesunchecked branch February 14, 2023 14:50
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.

2 participants