mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintSystem] Change missingArgument callback to produce an index of synthesized argument
In diagnostic mode allow argument matcher to synthesize new arguments, which makes it much easier to diagnose problems related to missing arguments.
This commit is contained in:
@@ -36,7 +36,10 @@ MatchCallArgumentListener::~MatchCallArgumentListener() { }
|
||||
|
||||
void MatchCallArgumentListener::extraArgument(unsigned argIdx) { }
|
||||
|
||||
void MatchCallArgumentListener::missingArgument(unsigned paramIdx) { }
|
||||
Optional<unsigned>
|
||||
MatchCallArgumentListener::missingArgument(unsigned paramIdx) {
|
||||
return None;
|
||||
}
|
||||
|
||||
bool MatchCallArgumentListener::missingLabel(unsigned paramIdx) { return true; }
|
||||
bool MatchCallArgumentListener::extraneousLabel(unsigned paramIdx) {
|
||||
|
||||
Reference in New Issue
Block a user