mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove unused TypeCheckers
This commit is contained in:
@@ -852,12 +852,12 @@ void CompilerInstance::parseAndCheckTypesUpTo(
|
||||
}) && "some files have not yet had their imports resolved");
|
||||
MainModule->setHasResolvedImports();
|
||||
|
||||
// If the limiting AST stage is name binding, we're done.
|
||||
if (limitStage <= SourceFile::NameBound) {
|
||||
return;
|
||||
}
|
||||
|
||||
forEachFileToTypeCheck([&](SourceFile &SF) {
|
||||
if (limitStage == SourceFile::NameBound) {
|
||||
bindExtensions(SF);
|
||||
return;
|
||||
}
|
||||
|
||||
performTypeChecking(SF, PersistentState->getTopLevelContext());
|
||||
|
||||
if (!Context->hadError() && Invocation.getFrontendOptions().PCMacro) {
|
||||
@@ -874,9 +874,16 @@ void CompilerInstance::parseAndCheckTypesUpTo(
|
||||
});
|
||||
|
||||
if (Invocation.isCodeCompletion()) {
|
||||
assert(limitStage == SourceFile::NameBound);
|
||||
performCodeCompletionSecondPass(*PersistentState.get(),
|
||||
*Invocation.getCodeCompletionFactory());
|
||||
}
|
||||
|
||||
// If the limiting AST stage is name binding, we're done.
|
||||
if (limitStage <= SourceFile::NameBound) {
|
||||
return;
|
||||
}
|
||||
|
||||
finishTypeChecking();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user