Commit Graph

9 Commits

Author SHA1 Message Date
Pavel Yaskevich
c219af099e [Diagnostics] NFC: Rename OverloadCandidate::getUncurried{Function}Type -> OverloadCandidate::get{Function}Type 2018-10-19 14:56:06 -07:00
Pavel Yaskevich
a0085e1f29 [Diagnostics] NFC: Rename UncurriedCandidate -> OverloadCandidate 2018-10-19 13:37:05 -07:00
Pavel Yaskevich
1265f2e81e [Diagnostics] Replace curry level with a boolean flag
Since arbitrary currying is no longer allowed `level` could
be replaced with the boolean flag which identifies if curried
`self` should be skipped or not.
2018-10-18 15:14:13 -07:00
Slava Pestov
f9d77069ae Sema: Move decomposeArgType() to CSDiag and simplify it
As usual, CSDiag is a graveyard for old crap because I'm expecting
it will be gutted over time.
2018-09-10 17:22:31 -07:00
Ding Ye
c4c730f8d1 [Sema] Diagnostic: improve diagnostics for ApplyExpr.
When diagnosing ApplyExpr, the existing implementation
tries to resolve the function subexpression independently
in the first place, without considering the argument
information. As a result, such resolved function type
may not produce the best diagnostic message.
This patch adds condideration of the number of arguments
to decide the better function subexpression for diagnostic
purpose.

Resolves: SR-7918, SR-7786, SR-7440, SR-7295, SR-5154.
2018-07-11 15:26:55 +10:00
Pavel Yaskevich
3c64680a91 [Diagnostics] Switch CalleeCandidateInfo to use FunctionType::getParams() 2018-04-26 17:33:08 -07:00
Pavel Yaskevich
57ad592844 [Sema] Switch computeDefaultMap to use AnyFunctionType::getParams() 2018-04-26 17:33:08 -07:00
Sho Ikeda
3c399de5bd [gardening][Sema] Replace typedef with using 2018-04-03 22:12:48 +09:00
gregomni
774dbdfa87 Some cleanup of CSDiag by splitting off the CalleeCandidateInfo class and
declaring a few formerly static methods that both files now need in a new
CSDiag.h.
2017-10-11 13:03:48 -07:00