Skip to content

[5.0][CodeCompletion] Analyze the parent of initializer #22732

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

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Feb 20, 2019

  • Explanation: Implicit member completion in initializer for decl member position stopped working in 5.0 because mechanism for implicit member completion has been changed between 4.2 and 5.0. For Initializer decl context, type context analyzer should look into its parent context because that might constrain initializer's type. By this change context type analysis now takes pattern binding type annotation into account.
  • Scope: Affects code completion in Initializer context.
  • Issue: rdar://problem/48208253
  • Risk: Very Low.
  • Testing: Added regression test cases.
  • Reviewer: Ben Langmuir (@benlangmuir)

For `Initializer` decl context, type context analyzer should look into
its parent context because that might constrain initializer's type.

rdar://problem/48208253
(swift-5.0-version of commit fd9b6a1)
@rintaro rintaro requested a review from a team as a code owner February 20, 2019 01:22
@rintaro
Copy link
Member Author

rintaro commented Feb 20, 2019

@swift-ci Please test

@rintaro rintaro changed the title [CodeCompletion] Analyze the parent of initializer [5.0][CodeCompletion] Analyze the parent of initializer Feb 20, 2019
@rintaro
Copy link
Member Author

rintaro commented Feb 20, 2019

@swift-ci Please nominate

@akyrtzi akyrtzi merged commit 1745316 into swiftlang:swift-5.0-branch Feb 20, 2019
@rintaro rintaro deleted the 5.0-ide-completion-declmemberinit-rdar48208253 branch February 20, 2019 18:25
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