File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -3362,21 +3362,15 @@ class ArgumentMatcher : public MatchCallArgumentListener {
3362
3362
return false ;
3363
3363
3364
3364
auto nominalDecl = instanceTy->getAnyNominal ();
3365
- if (!nominalDecl)
3365
+ if (!(nominalDecl &&
3366
+ nominalDecl->getAttrs ().hasAttribute <PropertyWrapperAttr>()))
3366
3367
return false ;
3367
3368
3368
- if (!nominalDecl->getAttrs ().hasAttribute <PropertyWrapperAttr>())
3369
- return false ;
3370
-
3371
- auto parent = CandidateInfo.CS .getParentExpr (FnExpr);
3372
- if (!parent)
3373
- return false ;
3374
-
3375
- auto CE = dyn_cast<CallExpr>(parent);
3376
- if (!CE)
3377
- return false ;
3369
+ if (auto *parentExpr = CandidateInfo.CS .getParentExpr (FnExpr)) {
3370
+ return parentExpr->isImplicit () && isa<CallExpr>(parentExpr);
3371
+ }
3378
3372
3379
- return CE-> isImplicit () ;
3373
+ return false ;
3380
3374
}
3381
3375
3382
3376
bool missingLabel (unsigned paramIdx) override {
You can’t perform that action at this time.
0 commit comments