Extends canImport to check for submodule availability

This commit is contained in:
ApolloZhu
2021-07-05 22:13:37 -04:00
committed by Apollo Zhu
parent d1bb98b11e
commit 683d469fcd
24 changed files with 294 additions and 51 deletions

View File

@@ -168,7 +168,7 @@ public:
///
/// Note that even if this check succeeds, errors may still occur if the
/// module is loaded in full.
virtual bool canImportModule(ImportPath::Element named,
virtual bool canImportModule(ImportPath::Module named,
llvm::VersionTuple version,
bool underlyingVersion) override;
@@ -287,7 +287,7 @@ class MemoryBufferSerializedModuleLoader : public SerializedModuleLoaderBase {
public:
virtual ~MemoryBufferSerializedModuleLoader();
bool canImportModule(ImportPath::Element named, llvm::VersionTuple version,
bool canImportModule(ImportPath::Module named, llvm::VersionTuple version,
bool underlyingVersion) override;
ModuleDecl *
loadModule(SourceLoc importLoc,