Add an external module dependency test

This commit is contained in:
Artem Chikin
2020-07-21 10:31:57 -07:00
parent b5af62f93f
commit b85f547b13
5 changed files with 156 additions and 51 deletions

View File

@@ -230,6 +230,16 @@ public:
fileDependencies));
}
/// Describe an external dependency swift module.
static ModuleDependencies forExternalSwiftModuleStub(
const std::string &compiledModulePath,
const std::string &moduleDocPath,
const std::string &sourceInfoPath) {
return ModuleDependencies(
std::make_unique<ExternalSwiftModuleDependencyStorage>(
compiledModulePath, moduleDocPath, sourceInfoPath));
}
/// Retrieve the path to the compiled module.
const std::string getCompiledModulePath() const {
return storage->compiledModulePath;