Add doc comments

Rename test
This commit is contained in:
elsh
2021-10-12 14:38:34 -07:00
parent 96fb3d6112
commit adf33e0bb9
6 changed files with 16 additions and 4 deletions

View File

@@ -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();