mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add doc comments
Rename test
This commit is contained in:
@@ -1499,7 +1499,9 @@ ModuleDecl::ReverseFullNameIterator::ReverseFullNameIterator(
|
||||
|
||||
StringRef ModuleDecl::ReverseFullNameIterator::operator*() const {
|
||||
assert(current && "all name components exhausted");
|
||||
|
||||
// Return the module's real (binary) name, which can be different from
|
||||
// the name if module aliasing was used (-module-alias flag). The real
|
||||
// name is used for serialization and loading.
|
||||
if (auto *swiftModule = current.dyn_cast<const ModuleDecl *>())
|
||||
return swiftModule->getRealName().str();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user