Skip to content

[5.1][CodeCompletion] Call argument completion for implicit member expression #24824

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 May 16, 2019

(Cherry-pick of #24805 to swift-5.1-branch reviewed by @benlangmuir)

rdar://problem/50696432

rintaro added 4 commits May 15, 2019 20:24
…ession

At argument part of implict member expression, we need context type
analysis to complete arguments.

rdar://problem/50696432
(cherry picked from commit 14d2f7c)

Conflicts:
	lib/IDE/ExprContextAnalysis.cpp
rdar://problem/50696432
(cherry picked from commit 5b5d342)
For example:
  let x: MyClass = .create(<#COMPLETE#>)

This expression ends up with:
  (call_expr
    (dot_syntax_self_apply_expr
      (decl_ref_expr decl='C.create(_:arg1)'
      (type_expr type=MyClass))))
So we need to look through 'DotSyntaxSelfApplyExpr' to get the decl.

(cherry picked from commit 557505d)
Static methods, implicit member.

(cherry picked from commit e9e5134)
@rintaro
Copy link
Member Author

rintaro commented May 16, 2019

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 4243b73

@rintaro
Copy link
Member Author

rintaro commented May 16, 2019

@swift-ci Please test Linux

@rintaro rintaro merged commit e996d5e into swiftlang:swift-5.1-branch May 16, 2019
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