File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -395,21 +395,15 @@ ResolvedLocator constraints::resolveLocatorToDecl(
395
395
continue ;
396
396
}
397
397
398
- if (auto constructor = dyn_cast<ConstructorRefCallExpr >(anchor)) {
399
- anchor = constructor ->getFn ();
398
+ if (auto selfApply = dyn_cast<SelfApplyExpr >(anchor)) {
399
+ anchor = selfApply ->getFn ();
400
400
continue ;
401
401
}
402
402
403
403
if (auto dotSyntax = dyn_cast<DotSyntaxBaseIgnoredExpr>(anchor)) {
404
404
anchor = dotSyntax->getRHS ();
405
405
continue ;
406
406
}
407
-
408
- if (auto dotSyntax = dyn_cast<DotSyntaxCallExpr>(anchor)) {
409
- anchor = dotSyntax->getFn ();
410
- continue ;
411
- }
412
-
413
407
break ;
414
408
} while (true );
415
409
@@ -1506,9 +1500,7 @@ void CalleeCandidateInfo::collectCalleeCandidates(Expr *fn) {
1506
1500
// If we have a type for that, capture it so that we can calculate a
1507
1501
// substituted type, which resolves many generic arguments.
1508
1502
Type baseType;
1509
-
1510
- // TODO: What about ConstructorRefCallExpr?
1511
- if (isa<DotSyntaxCallExpr>(AE) &&
1503
+ if (isa<SelfApplyExpr>(AE) &&
1512
1504
!isUnresolvedOrTypeVarType (AE->getArg ()->getType ()))
1513
1505
baseType = AE->getArg ()->getType ()->getLValueOrInOutObjectType ();
1514
1506
You can’t perform that action at this time.
0 commit comments