mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
IDE+Evaluator: refactor the implementation of two common IDE utilities to the evaluator model
These APIs are 'canDeclProvideDefaultImplementationFor' and 'collectAllOverriddenDecls'.
This commit is contained in:
@@ -274,6 +274,8 @@ void SwiftLangSupport::indexSource(StringRef InputFile,
|
||||
if (IsModuleIndexing) {
|
||||
if (CI.setup(Invocation))
|
||||
return;
|
||||
// Indexing needs IDE requests
|
||||
registerIDERequestFunctions(CI.getASTContext().evaluator);
|
||||
bool IsClangModule = (FileExt == ".pcm");
|
||||
if (IsClangModule) {
|
||||
IdxConsumer.failed("Clang module files are not supported");
|
||||
@@ -292,7 +294,8 @@ void SwiftLangSupport::indexSource(StringRef InputFile,
|
||||
|
||||
if (CI.setup(Invocation))
|
||||
return;
|
||||
|
||||
// Indexing needs IDE requests
|
||||
registerIDERequestFunctions(CI.getASTContext().evaluator);
|
||||
trace::TracedOperation TracedOp(trace::OperationKind::IndexSource);
|
||||
if (TracedOp.enabled()) {
|
||||
trace::SwiftInvocation SwiftArgs;
|
||||
|
||||
Reference in New Issue
Block a user