Commit Graph

4 Commits

Author SHA1 Message Date
Rintaro Ishizaki
619fbe1a16 [CodeCompletion] Don't perform completion at declaration name position
If there's expected signature after the code completion.

For example:
  func <HERE>(arg: Int) {}

This is clearly modifying the function name. We should not perform any
completion including override completion.

rdar://problem/58378950
2020-04-23 23:12:44 -07:00
fischertony
86d9d7a6b5 Fix override completions when a valid introducer is present but the override keyword is not. 2019-02-16 16:02:22 +03:00
Rintaro Ishizaki
70fba3f38d [CodeCompletion] Don't suggest keywords after decl introducer
If any decl introducers (e.g. 'func', 'let', 'typealias', etc.) are
included in parsed keywords, don't emit any keywords in completion.
2018-08-17 19:54:31 +09:00
Rintaro Ishizaki
7c4aaef4f5 [CodeCompletion] Disable completion for declaration name position (#16898)
Code completion should not suggest anything when declaring a new name.

rdar://problem/29392238
2018-05-30 12:29:58 -07:00