Skip to content

[CodeCompletion] Implement context type analysis at subscript position #20066

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 1 commit into from
Oct 30, 2018

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Oct 26, 2018

This improves completion for index part of subscript expression.

rdar://problem/38920581

@rintaro rintaro requested a review from benlangmuir October 26, 2018 08:52
@rintaro
Copy link
Member Author

rintaro commented Oct 27, 2018

@swift-ci Please smoke test

@benlangmuir
Copy link
Contributor

Why does the subscript case do a qualified lookup while the function case doesn't?

@rintaro
Copy link
Member Author

rintaro commented Oct 29, 2018

As for free function case, overloaded candidates are usually preserved as OverloadSetRefExpr. As for method case, I'm implementing qualified lookup version too in #20013 .

@benlangmuir
Copy link
Contributor

Okay makes sense. I commented in that PR that we should share the implementation. Otherwise LGTM.

@rintaro rintaro force-pushed the ide-completion-subscript branch from 42efc3f to fc60c93 Compare October 30, 2018 01:57
This improves completion for index part of subscript expression.

rdar://problem/38920581
@rintaro rintaro force-pushed the ide-completion-subscript branch from fc60c93 to 74356d6 Compare October 30, 2018 01:58
@rintaro
Copy link
Member Author

rintaro commented Oct 30, 2018

@swift-ci Please smoke test

@rintaro rintaro merged commit d94d925 into swiftlang:master Oct 30, 2018
@rintaro rintaro deleted the ide-completion-subscript branch October 30, 2018 04:15
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