mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Use clearer param name in getPublicModuleName
Use onlyIfImported instead of mustBeVisible.
This commit is contained in:
@@ -1922,9 +1922,9 @@ ImportedModule::removeDuplicates(SmallVectorImpl<ImportedModule> &imports) {
|
||||
imports.erase(last, imports.end());
|
||||
}
|
||||
|
||||
Identifier ModuleDecl::getPublicModuleName(bool mustBeVisible) const {
|
||||
Identifier ModuleDecl::getPublicModuleName(bool onlyIfImported) const {
|
||||
if (!PublicModuleName.empty()) {
|
||||
if (!mustBeVisible)
|
||||
if (!onlyIfImported)
|
||||
return PublicModuleName;
|
||||
|
||||
bool publicModuleIsImported =
|
||||
|
||||
Reference in New Issue
Block a user