Merge pull request #58999 from ahoppen/pr/cache-function-asyncness

[CodeCompletion] Cache 'async'-ness of free functions
This commit is contained in:
Alex Hoppen
2022-08-01 10:15:23 +02:00
committed by GitHub
21 changed files with 319 additions and 261 deletions

View File

@@ -1369,7 +1369,8 @@ void swift::ide::deliverCompletionResults(
/*Sink=*/nullptr);
Consumer.handleResultsAndModules(CompletionContext, RequestedModules,
Lookup.getExpectedTypeContext(), DC);
Lookup.getExpectedTypeContext(), DC,
Lookup.canCurrDeclContextHandleAsync());
}
bool CodeCompletionCallbacksImpl::trySolverCompletion(bool MaybeFuncBody) {