mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Dependency Scanning] Model main module as separate dependency kind: SwiftSource
These kinds of modules differ from `SwiftTextual` modules in that they do not have an interface and have source-files. It is cleaner to enforce this distinction with types, instead of checking for interface optionality everywhere.
This commit is contained in:
@@ -1662,7 +1662,11 @@ Optional<ModuleDependencies> ASTContext::getModuleDependencies(
|
||||
if (!isUnderlyingClangModule) {
|
||||
if (auto found = cache.findDependencies(
|
||||
moduleName,
|
||||
{ModuleDependenciesKind::SwiftTextual, searchPathSet}))
|
||||
{ModuleDependenciesKind::SwiftSource, searchPathSet}))
|
||||
return found;
|
||||
if (auto found = cache.findDependencies(
|
||||
moduleName,
|
||||
{ModuleDependenciesKind::SwiftInterface, searchPathSet}))
|
||||
return found;
|
||||
if (auto found = cache.findDependencies(
|
||||
moduleName, {ModuleDependenciesKind::SwiftBinary, searchPathSet}))
|
||||
|
||||
Reference in New Issue
Block a user