mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -189,6 +189,11 @@ bool CompilerInstance::setUpASTContextIfNeeded() {
|
||||
Diagnostics));
|
||||
registerTypeCheckerRequestFunctions(Context->evaluator);
|
||||
|
||||
// Migrator and indexing need some IDE requests.
|
||||
if (Invocation.getMigratorOptions().shouldRunMigrator() ||
|
||||
!Invocation.getFrontendOptions().IndexStorePath.empty()) {
|
||||
registerIDERequestFunctions(Context->evaluator);
|
||||
}
|
||||
if (setUpModuleLoaders())
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user