Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Dec 2, 2022

We need the ability to type check declarations when entering using typeCheckASTNodeAtLoc for solver-based cursor info.

This causes more context to be type checked for code completion and breaks some type completion after dot if the base type is not fully qualified because the type checker will mark TypeRepr as invalid. But since we don’t actually need to run the type checker for type member completion, we can just not call typeCheckContextAt for TypeIdentifierWithDot completions.

@ahoppen
Copy link
Member Author

ahoppen commented Dec 2, 2022

@swift-ci Please smoke test

We need the ability to type check declarations when entering using `typeCheckASTNodeAtLoc` for solver-based cursor info.

This causes more context to be type checked for code completion and breaks some type completion after dot if the base type is not fully qualified because the type checker will mark `TypeRepr` as invalid. But since we don’t actually need to run the type checker for type member completion, we can just not call `typeCheckContextAt` for `TypeIdentifierWithDot` completions.
@ahoppen ahoppen changed the title [WIP] Preparation for solver-based cursor info Part 3 [IDE] Allow typeCheckASTNodeAtLoc to type check declarations Dec 3, 2022
@ahoppen ahoppen force-pushed the ahoppen/solver-based-cursor-info-prep-pt-3 branch from d87c3d6 to fe228a4 Compare December 3, 2022 09:20
@ahoppen ahoppen requested review from rintaro and xedin December 3, 2022 09:20
@ahoppen ahoppen marked this pull request as ready for review December 3, 2022 09:20
@ahoppen
Copy link
Member Author

ahoppen commented Dec 3, 2022

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Dec 3, 2022

@swift-ci Please SourceKit stress test

@ahoppen
Copy link
Member Author

ahoppen commented Dec 5, 2022

Stress tester failures are all #57045 and shouldn’t stop merging of this PR.

@ahoppen ahoppen merged commit 2017eed into swiftlang:main Dec 6, 2022
@ahoppen ahoppen deleted the ahoppen/solver-based-cursor-info-prep-pt-3 branch December 6, 2022 08:05
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.

1 participant