mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Load cross-import overlays
This commit is contained in:
@@ -1772,6 +1772,11 @@ bool SourceFile::isImportedImplementationOnly(const ModuleDecl *module) const {
|
||||
return !imports.isImportedBy(module, getParentModule());
|
||||
}
|
||||
|
||||
bool SourceFile::shouldCrossImport() const {
|
||||
return Kind != SourceFileKind::SIL && Kind != SourceFileKind::Interface &&
|
||||
getASTContext().LangOpts.EnableCrossImportOverlays;
|
||||
}
|
||||
|
||||
void ModuleDecl::clearLookupCache() {
|
||||
getASTContext().getImportCache().clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user