Skip to content

[code-completion] Filter out non-postfix results from inner operators #11695

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

benlangmuir
Copy link
Contributor

  • Explanation: We are allowing through non-postfix completions when collecting operator completions in a way that can result in non-sensical compound completions like "fooUIColor".
  • Scope: Affects code-completion of inner operators on the new code-completion path (codecomplete.open).
  • Radar: rdar://problem/34145229
  • Risk: Low; just throws out these non-postfix results.
  • Testing: Regression tests added.

With broken code you can end up with non-postfix completions when
searching for inner operators, which you never want because you end up
creating compound results like "fooUIColor".

rdar://problem/34145229
@benlangmuir benlangmuir requested a review from nkcsgexi August 30, 2017 21:53
Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@benlangmuir
Copy link
Contributor Author

@swift-ci please test

@benlangmuir benlangmuir merged commit 9ce791a into swiftlang:swift-4.0-branch Aug 31, 2017
@benlangmuir benlangmuir deleted the cc-filter-non-postfix-4.0 branch August 31, 2017 00:35
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