Commit Graph

55 Commits

Author SHA1 Message Date
Xi Ge
8d67a4ad12 [CodeComplete] Propagate type relation descriptor to the first argument, or the only argument, of call exprs.
rdar://22688827

Swift SVN r31928
2015-09-14 19:43:36 +00:00
Xi Ge
7b90c4f9e8 [test] Add several tests suggested by Argyrios.
Swift SVN r31855
2015-09-10 17:46:24 +00:00
Xi Ge
65ce0a36b8 [CodeComplete] Add type relation descriptor to member access syntax. rdar://22629291
By analyzing the context of a member access expression, we can prioritize the member
completion results by the expected type. As the initial step, we support call arguments
as context.

Swift SVN r31837
2015-09-10 00:28:14 +00:00
Xi Ge
afb46aa8e0 [CodeComplete] When completing call args, not consider those overloads that are unlikely to be selected.
rdar://22528276

Swift SVN r31613
2015-09-01 22:54:19 +00:00
Xi Ge
ef3b45871b [CodeComplete] Complete arguments of call expressions.
When users invoke code completion at an argument position, we suggest argument names,
if required however not specified, or a list of argument values. These values are annotated
with their type relation to the expected argument types, so that
Xcode can prioritize those values that apply over those that do not.
This also fixes: rdar://21727063

Swift SVN r31505
2015-08-26 22:01:25 +00:00