Skip to content

[CodeComplete] Strip out try and optional eval expo in operator completion #18209

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 2 commits into from
Jul 25, 2018

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jul 25, 2018

foldSequence() may hoist these expression up by mutating their sub expression. When completing operators, this behavior ruins reusability of operand. Since these expression doesn't affect completion, we can strip them out.

rdar://problem/42452085

Also, this PR contains follow-up fix for f577578. The same treatment for ternary expression (IfExpr). Plus, fix a regression where infix operator were disappeared from results when leading sequence contains AssignExpr.

rintaro added 2 commits July 25, 2018 13:58
…lation

foldSequence() may hoist these expression up by mutating their sub
expression. When completing operators, this behavior ruins reusability
of operand. Since these expression doesn't affect completion, we can
strip them out.

rdar://problem/42452085
Follow-up to f577578. The same
treatment for ternary expression (IfExpr). Plus, fix a regression
introduced in f577578 where infix operators were disappeard from
results.
@rintaro rintaro requested a review from benlangmuir July 25, 2018 05:02
@benlangmuir
Copy link
Contributor

@swift-ci please smoke test

@rintaro
Copy link
Member Author

rintaro commented Jul 25, 2018

@swift-ci Please smoke test OS X

@rintaro
Copy link
Member Author

rintaro commented Jul 25, 2018

@swift-ci Please smoke test OS X platform

@rintaro rintaro merged commit 0547f1b into swiftlang:master Jul 25, 2018
@rintaro rintaro deleted the ide-compilation-rdar42452085 branch July 25, 2018 22:52
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