mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] Use existing logic to print a hierarchical module name
No intended functionality change.
This commit is contained in:
@@ -1200,11 +1200,12 @@ ModuleDecl::ReverseFullNameIterator::operator++() {
|
||||
}
|
||||
|
||||
void
|
||||
ModuleDecl::ReverseFullNameIterator::printForward(raw_ostream &out) const {
|
||||
ModuleDecl::ReverseFullNameIterator::printForward(raw_ostream &out,
|
||||
StringRef delim) const {
|
||||
SmallVector<StringRef, 8> elements(*this, {});
|
||||
swift::interleave(swift::reversed(elements),
|
||||
[&out](StringRef next) { out << next; },
|
||||
[&out] { out << '.'; });
|
||||
[&out, delim] { out << delim; });
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user