Sema: Use clearer param name in getPublicModuleName

Use onlyIfImported instead of mustBeVisible.
This commit is contained in:
Alexis Laferrière
2024-09-05 12:45:13 -07:00
parent 0be1dcc09d
commit c60fea3aac
4 changed files with 7 additions and 7 deletions

View File

@@ -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 =