forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Code completion] Teach code completion to use declarations for postf…
…ix completions. Code completion had the ability to use declarations to provide better code completion results for postfix completions, e.g., calls to functions/methods, but it wasn't trying to get these declarations from anywhere. Now, get these declarations from the solution to the constraint system. The impetus for this is to use default-argument information from the declaration rather than the type, but plumbing this information through also means that we get proper "rethrows" annotations, covered by <rdar://problem/21010193>, and more specific completions in a number of other places. Fixes <rdar://problem/21010193>.
- Loading branch information
1 parent
51f19ea
commit e2632c1
Showing
14 changed files
with
299 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.