-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[5.3][CodeCompletion] Wrap base expression with CodeCompletionExpr #32207
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
[5.3][CodeCompletion] Wrap base expression with CodeCompletionExpr #32207
Conversation
@swift-ci Please Build Toolchain macOS Platform |
@swift-ci Please test |
macOS Toolchain Install command |
For example for: funcName(base.<HERE>) Wrap 'base' with 'CodeCompletionExpr' so that type checker can check 'base' independently without preventing the overload choice of 'funcName'. This increases the chance of successful type checking. rdar://problem/63965160 (cherry picked from commit 3ec250f)
76f75ce
to
b9ad518
Compare
@swift-ci Please Build Toolchain macOS Platform |
@swift-ci Please test |
Build failed |
Build failed |
Testing again to ensure nothing is broken. |
Build failed |
@swift-ci Please test Linux |
@swift-ci Please nominate |
Cherry-pick of #32184 into
release/5.3
CodeCompletionExpr
(e.g.funcName(base.<HERE>)
) so that the base expression can be type checked independently while the surrounding expression can be type checked with a "hole" type variable. This increases the chance of successful type checking, and improves overall completion quality of member completion