mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Remove performCompletionLikeOperation
All users of `performCodeCompletionLikeOperation` have been migrated to dedicated methods on `CompletionInstance`.
This commit is contained in:
@@ -1069,26 +1069,6 @@ void SwiftLangSupport::performWithParamsToCompletionLikeOperation(
|
||||
CancellableResult<CompletionLikeOperationParams>::success(Params));
|
||||
}
|
||||
|
||||
void SwiftLangSupport::performCompletionLikeOperation(
|
||||
llvm::MemoryBuffer *UnresolvedInputFile, unsigned Offset,
|
||||
ArrayRef<const char *> Args,
|
||||
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FileSystem,
|
||||
llvm::function_ref<void(CancellableResult<CompletionInstanceResult>)>
|
||||
Callback) {
|
||||
performWithParamsToCompletionLikeOperation(
|
||||
UnresolvedInputFile, Offset, Args, FileSystem,
|
||||
[&](CancellableResult<CompletionLikeOperationParams> ParamsResult) {
|
||||
ParamsResult.mapAsync<CompletionInstanceResult>(
|
||||
[&](auto &CIParams, auto DeliverTransformed) {
|
||||
getCompletionInstance()->performOperation(
|
||||
CIParams.Invocation, Args, FileSystem,
|
||||
CIParams.completionBuffer, Offset, CIParams.DiagC,
|
||||
DeliverTransformed);
|
||||
},
|
||||
Callback);
|
||||
});
|
||||
}
|
||||
|
||||
CloseClangModuleFiles::~CloseClangModuleFiles() {
|
||||
clang::Preprocessor &PP = loader.getClangPreprocessor();
|
||||
clang::ModuleMap &ModMap = PP.getHeaderSearchInfo().getModuleMap();
|
||||
|
||||
Reference in New Issue
Block a user