Skip to content

[CodeComplete] Fix several crashes in getOperatorCompletions #17556

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 3 commits into from
Jun 27, 2018

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jun 27, 2018

  • Handle assign expression after typechecking. Previously, AssignExpr was wrongly reused in re-typechecking. We need to unfold/flatten them before re-typechekcing.
  • In getOperatorCompletions(), for each every known operators, temporary expressions are created and typechecked. In this process, typechecker may set the type of the parsed expression. That may cause inaccurate completion results or crash at worst.
  • [CSRanking] Handle EnumElementDecl in IUO parameter checking.

rdar://problem/28188259
rdar://problem/41232519
rdar://problem/41159258

@rintaro rintaro requested a review from benlangmuir June 27, 2018 10:27
@rintaro
Copy link
Member Author

rintaro commented Jun 27, 2018

@swift-ci Please smoke test

rintaro added 2 commits June 27, 2018 19:35
rdar://problem/41232519
rdar://problem/41159258
In getOperatorCompletions(), for each every known operators, temporary
expressions are created and typechecked. In this process, typechecker
may set the type of the parsed expression. That may cause non-accurate
completion results or crash at worst.

rdar://problem/28188259
@rintaro rintaro force-pushed the ide-complete-sequence branch from 9b39ca8 to 52e3109 Compare June 27, 2018 10:35
@rintaro
Copy link
Member Author

rintaro commented Jun 27, 2018

@swift-ci Please smoke test

@rintaro rintaro merged commit 4a29944 into swiftlang:master Jun 27, 2018
@rintaro rintaro deleted the ide-complete-sequence branch July 2, 2018 22:37
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