Skip to content

[5.7-04182022][CodeCompletion] Report type relations when completing inside result builders #42492

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Apr 20, 2022

Cherry-pick #42210 to release/5.7


This requires navigating the constraint system solution to retrieve the argument type of the buildBlock call. The comments in the code should describe what I’m doing.

rdar://83846531

ahoppen added 3 commits April 20, 2022 21:10
…completion

We record fixes while solving normal expressions for code completion and we should do the same when solving result builders if we are reporting the solutions to completion callbacks.
Helped me while debugging and might help others as well.
…builders

This requires navigating the constraint system solution to retrieve the argument type of the `buildBlock` call. The comments in the code should describe what I’m doing well enough.

rdar://83846531
@ahoppen ahoppen requested a review from airspeedswift April 20, 2022 19:12
@ahoppen ahoppen requested a review from a team as a code owner April 20, 2022 19:12
@ahoppen
Copy link
Member Author

ahoppen commented Apr 20, 2022

@swift-ci Please test

@ahoppen ahoppen merged commit 2c1a952 into swiftlang:release/5.7-04182022 Apr 22, 2022
@ahoppen ahoppen deleted the pr-5.7-04182022/result-builder-type-relations-solver-based branch April 22, 2022 06:04
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