mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Pass 'EnableASTCaching' flag as an argument
so that it is associated with a specific completion.
This commit is contained in:
@@ -32,9 +32,9 @@ static bool swiftConformingMethodListImpl(
|
||||
ArrayRef<const char *> ExpectedTypeNames,
|
||||
ide::ConformingMethodListConsumer &Consumer,
|
||||
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FileSystem,
|
||||
std::string &Error) {
|
||||
bool EnableASTCaching, std::string &Error) {
|
||||
return Lang.performCompletionLikeOperation(
|
||||
UnresolvedInputFile, Offset, Args, FileSystem, Error,
|
||||
UnresolvedInputFile, Offset, Args, FileSystem, EnableASTCaching, Error,
|
||||
[&](CompilerInstance &CI) {
|
||||
// Create a factory for code completion callbacks that will feed the
|
||||
// Consumer.
|
||||
@@ -176,7 +176,7 @@ void SwiftLangSupport::getConformingMethodList(
|
||||
|
||||
if (!swiftConformingMethodListImpl(*this, UnresolvedInputFile, Offset, Args,
|
||||
ExpectedTypeNames, Consumer, fileSystem,
|
||||
error)) {
|
||||
/*EnableASTCaching=*/false, error)) {
|
||||
SKConsumer.failed(error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user