mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CSOptimizer] Don't attempt to optimize calls with code completion token(s) in argument position
This commit is contained in:
@@ -112,6 +112,10 @@ static void determineBestChoicesInContext(
|
||||
auto argFuncType =
|
||||
applicableFn.get()->getFirstType()->getAs<FunctionType>();
|
||||
|
||||
auto argumentList = cs.getArgumentList(applicableFn.get()->getLocator());
|
||||
if (!argumentList || cs.containsIDEInspectionTarget(argumentList))
|
||||
return;
|
||||
|
||||
SmallVector<SmallVector<std::pair<Type, /*fromLiteral=*/bool>, 2>, 2>
|
||||
candidateArgumentTypes;
|
||||
candidateArgumentTypes.resize(argFuncType->getNumParams());
|
||||
|
||||
Reference in New Issue
Block a user