@@ -92,19 +92,6 @@ static UIdent getUIDForCodeCompletionKindToReport(CompletionKind kind) {
9292 }
9393}
9494
95- // / The result returned via the Callback of \c swiftCodeCompleteImpl.
96- // / If \c HasResults is \c false, code completion did not fail, but did not
97- // / produce any values either. All other fields of the struct should be ignored
98- // / in that case.
99- struct CodeCompleteImplResult {
100- bool HasResults;
101- swift::ASTContext *Context;
102- const swift::CompilerInvocation *Invocation;
103- swift::ide::CodeCompletionContext *CompletionContext;
104- ArrayRef<RequestedCachedModule> RequestedModules;
105- DeclContext *DC;
106- };
107-
10895static void swiftCodeCompleteImpl (
10996 SwiftLangSupport &Lang, llvm::MemoryBuffer *UnresolvedInputFile,
11097 unsigned Offset, ArrayRef<const char *> Args,
@@ -141,9 +128,10 @@ static void translateCodeCompletionOptions(OptionsDictionary &from,
141128 unsigned &resultOffset,
142129 unsigned &maxResults);
143130
144- void deliverCodeCompleteResults (SourceKit::CodeCompletionConsumer &SKConsumer,
145- const CodeCompletion::Options &CCOpts,
146- CancellableResult<CodeCompleteResult> Result) {
131+ static void
132+ deliverCodeCompleteResults (SourceKit::CodeCompletionConsumer &SKConsumer,
133+ const CodeCompletion::Options &CCOpts,
134+ CancellableResult<CodeCompleteResult> Result) {
147135 switch (Result.getKind ()) {
148136 case CancellableResultKind::Success: {
149137 auto kind = getUIDForCodeCompletionKindToReport (
0 commit comments