Skip to content

[CodeCompletion] Context type analysis for default argument initializer #24987

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

rintaro
Copy link
Member

@rintaro rintaro commented May 22, 2019

This enables implicit member expression completion at default argument initializer position. e.g.

func foo(val: MyEnum = .<HERE>) {

rdar://problem/51037538

@rintaro
Copy link
Member Author

rintaro commented May 22, 2019

@swift-ci Please smoke test

@rintaro rintaro requested a review from benlangmuir May 22, 2019 19:50
@rintaro
Copy link
Member Author

rintaro commented May 22, 2019

It seems this doesn't work at default argument for enum element. e.g.

enum MyEnum {
  case something(thing: Something = .<HERE>)
}

I will rethink.

@rintaro
Copy link
Member Author

rintaro commented Jun 17, 2019

@swift-ci Please smoke test

@rintaro rintaro force-pushed the ide-completion-defaultinit-rdar51037538 branch from 3050609 to f94a6c0 Compare June 17, 2019 22:04
@rintaro
Copy link
Member Author

rintaro commented Jun 17, 2019

@swift-ci Please smoke test

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