@@ -1160,7 +1160,7 @@ static void addConditionalCompilationFlags(ASTContext &Ctx,
11601160// / If \p Sink is passed, the pointer of the each result may be replaced with a
11611161// / pointer to the new item allocated in \p Sink.
11621162// / If \p Sink is nullptr, the pointee of each result may be modified in place.
1163- void swift::ide::postProcessResults (
1163+ void swift::ide::postProcessCompletionResults (
11641164 MutableArrayRef<CodeCompletionResult *> results, CompletionKind Kind,
11651165 DeclContext *DC, CodeCompletionResultSink *Sink) {
11661166 for (CodeCompletionResult *&result : results) {
@@ -1314,9 +1314,9 @@ void swift::ide::deliverCompletionResults(
13141314 Lookup.RequestedCachedResults .clear ();
13151315 CompletionContext.typeContextKind = Lookup.typeContextKind ();
13161316
1317- postProcessResults (CompletionContext.getResultSink ().Results ,
1318- CompletionContext.CodeCompletionKind , DC,
1319- /* Sink=*/ nullptr );
1317+ postProcessCompletionResults (CompletionContext.getResultSink ().Results ,
1318+ CompletionContext.CodeCompletionKind , DC,
1319+ /* Sink=*/ nullptr );
13201320
13211321 Consumer.handleResultsAndModules (CompletionContext, RequestedModules, DC);
13221322}
@@ -1350,9 +1350,8 @@ bool CodeCompletionCallbacksImpl::trySolverCompletion(bool MaybeFuncBody) {
13501350 addKeywords (CompletionContext.getResultSink (), MaybeFuncBody);
13511351
13521352 Expr *CheckedBase = CodeCompleteTokenExpr->getBase ();
1353- deliverDotExprResults (Lookup.getResults (), CheckedBase, CurDeclContext,
1354- DotLoc, isInsideObjCSelector (), CompletionContext,
1355- Consumer);
1353+ Lookup.deliverResults (CheckedBase, CurDeclContext, DotLoc,
1354+ isInsideObjCSelector (), CompletionContext, Consumer);
13561355 return true ;
13571356 }
13581357 case CompletionKind::UnresolvedMember: {
@@ -1368,9 +1367,7 @@ bool CodeCompletionCallbacksImpl::trySolverCompletion(bool MaybeFuncBody) {
13681367 Lookup.fallbackTypeCheck (CurDeclContext);
13691368
13701369 addKeywords (CompletionContext.getResultSink (), MaybeFuncBody);
1371- deliverUnresolvedMemberResults (Lookup.getExprResults (),
1372- Lookup.getEnumPatternTypes (), CurDeclContext,
1373- DotLoc, CompletionContext, Consumer);
1370+ Lookup.deliverResults (CurDeclContext, DotLoc, CompletionContext, Consumer);
13741371 return true ;
13751372 }
13761373 case CompletionKind::KeyPathExprSwift: {
@@ -1384,8 +1381,7 @@ bool CodeCompletionCallbacksImpl::trySolverCompletion(bool MaybeFuncBody) {
13841381 Context.CompletionCallback , &Lookup);
13851382 typeCheckContextAt (CurDeclContext, CompletionLoc);
13861383
1387- deliverKeyPathResults (Lookup.getResults (), CurDeclContext, DotLoc,
1388- CompletionContext, Consumer);
1384+ Lookup.deliverResults (CurDeclContext, DotLoc, CompletionContext, Consumer);
13891385 return true ;
13901386 }
13911387 default :
0 commit comments