@@ -894,7 +894,7 @@ bool CompletionLookup::hasInterestingDefaultValue(const ParamDecl *param) {
894
894
}
895
895
}
896
896
897
- bool CompletionLookup::addItemWithoutDefaultArgs (
897
+ bool CompletionLookup::shouldAddItemWithoutDefaultArgs (
898
898
const AbstractFunctionDecl *func) {
899
899
if (!func || !Sink.addCallWithNoDefaultArgs )
900
900
return false ;
@@ -1189,7 +1189,7 @@ void CompletionLookup::addFunctionCallPattern(
1189
1189
if (isImplicitlyCurriedInstanceMethod) {
1190
1190
addPattern ({AFD->getImplicitSelfDecl ()}, /* includeDefaultArgs=*/ true );
1191
1191
} else {
1192
- if (addItemWithoutDefaultArgs (AFD))
1192
+ if (shouldAddItemWithoutDefaultArgs (AFD))
1193
1193
addPattern (AFD->getParameters ()->getArray (),
1194
1194
/* includeDefaultArgs=*/ false );
1195
1195
addPattern (AFD->getParameters ()->getArray (),
@@ -1385,7 +1385,7 @@ void CompletionLookup::addMethodCall(const FuncDecl *FD,
1385
1385
if (trivialTrailingClosure)
1386
1386
addMethodImpl (/* includeDefaultArgs=*/ false ,
1387
1387
/* trivialTrailingClosure=*/ true );
1388
- if (addItemWithoutDefaultArgs (FD))
1388
+ if (shouldAddItemWithoutDefaultArgs (FD))
1389
1389
addMethodImpl (/* includeDefaultArgs=*/ false );
1390
1390
addMethodImpl (/* includeDefaultArgs=*/ true );
1391
1391
}
@@ -1475,7 +1475,7 @@ void CompletionLookup::addConstructorCall(const ConstructorDecl *CD,
1475
1475
}
1476
1476
};
1477
1477
1478
- if (ConstructorType && addItemWithoutDefaultArgs (CD))
1478
+ if (ConstructorType && shouldAddItemWithoutDefaultArgs (CD))
1479
1479
addConstructorImpl (/* includeDefaultArgs=*/ false );
1480
1480
addConstructorImpl ();
1481
1481
}
0 commit comments