mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[completion] Update CodeCompletionConsumer::handleResults()
Receive 'CodeCompletionContext' so that consumers can get more information from it.
This commit is contained in:
committed by
Rintaro Ishizaki
parent
c8e2dc10fa
commit
d6eec880cb
@@ -97,7 +97,8 @@ struct SwiftCodeCompletionConsumer
|
||||
}
|
||||
void clearContext() { swiftContext = SwiftCompletionInfo(); }
|
||||
|
||||
void handleResults(MutableArrayRef<CodeCompletionResult *> Results) override {
|
||||
void handleResults(CodeCompletionContext &context) override {
|
||||
MutableArrayRef<CodeCompletionResult *> Results = context.takeResults();
|
||||
assert(swiftContext.swiftASTContext);
|
||||
handleResultsImpl(Results, swiftContext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user