Skip to content

Commit bbec1eb

Browse files
committed
[SourceKit] Enable ASTContext caching in other completion-like requests
TypeContextInfo and ConformingMethodList rdar://problem/64782333
1 parent af52886 commit bbec1eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/SourceKit/lib/SwiftLang/SwiftConformingMethodList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void SwiftLangSupport::getConformingMethodList(
176176

177177
if (!swiftConformingMethodListImpl(*this, UnresolvedInputFile, Offset, Args,
178178
ExpectedTypeNames, Consumer, fileSystem,
179-
/*EnableASTCaching=*/false, error)) {
179+
/*EnableASTCaching=*/true, error)) {
180180
SKConsumer.failed(error);
181181
}
182182
}

tools/SourceKit/lib/SwiftLang/SwiftTypeContextInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void SwiftLangSupport::getExpressionContextInfo(
151151
} Consumer(SKConsumer);
152152

153153
if (!swiftTypeContextInfoImpl(*this, UnresolvedInputFile, Offset, Consumer,
154-
Args, fileSystem, /*EnableASTCaching=*/false,
154+
Args, fileSystem, /*EnableASTCaching=*/true,
155155
error)) {
156156
SKConsumer.failed(error);
157157
}

0 commit comments

Comments
 (0)