Skip to content

[CodeCompletion] Teach TypeCheckASTNodeAtLocRequest to check initializers #42163

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Apr 4, 2022

This simplifies the logic in ide::typeCheckContextAt and fixes an issue that prevent code completion from working inside variables that are initialized by calling a closure.

I also considered getting rid of LeaveClosureBodyUnchecked to resolve this issue, but that caused the closure types to not be applied to the AST and thus we couldn’t determine closure actor isolation. 😢

Fixes rdar://90455154 [SR-16012]
Fixes rdar://85600167 [SR-15495]

…zers

This simplifies the logic in `ide::typeCheckContextAt` and fixes an issue that prevent code completion from working inside variables that are initialized by calling a closure.

Fixes rdar://90455154 [SR-16012]
Fixes rdar://85600167 [SR-15495]
@ahoppen ahoppen requested a review from xedin April 4, 2022 12:43
@ahoppen
Copy link
Member Author

ahoppen commented Apr 4, 2022

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Apr 4, 2022

@swift-ci Please SourceKit stress test

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