File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed
branches/master-next/lib/Sema Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3
- refs/heads/master-next: 4203c2f9f3fd592c2c927b65d99fbcff46d7f237
3
+ refs/heads/master-next: b15ef15a60c74f37bdf9098aa5fd79eb9ce575b8
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
6
6
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07
Original file line number Diff line number Diff line change @@ -2211,7 +2211,7 @@ class ArgumentMatcher : public MatchCallArgumentListener {
2211
2211
Diagnosed = true ;
2212
2212
}
2213
2213
2214
- void missingArgument (unsigned missingParamIdx) override {
2214
+ Optional< unsigned > missingArgument (unsigned missingParamIdx) override {
2215
2215
auto ¶m = Parameters[missingParamIdx];
2216
2216
Identifier name = param.getLabel ();
2217
2217
@@ -2341,6 +2341,7 @@ class ArgumentMatcher : public MatchCallArgumentListener {
2341
2341
candidate.getDecl ()->getFullName ());
2342
2342
2343
2343
Diagnosed = true ;
2344
+ return None;
2344
2345
}
2345
2346
2346
2347
bool isPropertyWrapperImplicitInit () {
Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ MatchCallArgumentListener::~MatchCallArgumentListener() { }
36
36
37
37
void MatchCallArgumentListener::extraArgument (unsigned argIdx) { }
38
38
39
- void MatchCallArgumentListener::missingArgument (unsigned paramIdx) { }
39
+ Optional<unsigned >
40
+ MatchCallArgumentListener::missingArgument (unsigned paramIdx) {
41
+ return None;
42
+ }
40
43
41
44
bool MatchCallArgumentListener::missingLabel (unsigned paramIdx) { return true ; }
42
45
bool MatchCallArgumentListener::extraneousLabel (unsigned paramIdx) {
Original file line number Diff line number Diff line change @@ -284,8 +284,9 @@ CalleeCandidateInfo::ClosenessResultTy CalleeCandidateInfo::evaluateCloseness(
284
284
void extraArgument (unsigned argIdx) override {
285
285
result = CC_ArgumentCountMismatch;
286
286
}
287
- void missingArgument (unsigned paramIdx) override {
287
+ Optional< unsigned > missingArgument (unsigned paramIdx) override {
288
288
result = CC_ArgumentCountMismatch;
289
+ return None;
289
290
}
290
291
bool missingLabel (unsigned paramIdx) override {
291
292
result = CC_ArgumentLabelMismatch;
Original file line number Diff line number Diff line change @@ -3858,7 +3858,7 @@ class MatchCallArgumentListener {
3858
3858
// / indices.
3859
3859
// /
3860
3860
// / \param paramIdx The index of the parameter that is missing an argument.
3861
- virtual void missingArgument (unsigned paramIdx);
3861
+ virtual Optional< unsigned > missingArgument (unsigned paramIdx);
3862
3862
3863
3863
// / Indicate that there was no label given when one was expected by parameter.
3864
3864
// /
You can’t perform that action at this time.
0 commit comments