mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Unify approach to printing declaration names (#9320)
Printing a declaration's name using `<<` and `getBaseName()` is be independent of the return type of `getBaseName()` which will change in the future from `Identifier` to `DeclBaseName`
This commit is contained in:
@@ -149,8 +149,9 @@ bool swift::emitReferenceDependencies(DiagnosticEngine &diags,
|
||||
return true;
|
||||
}
|
||||
|
||||
auto escape = [](Identifier name) -> std::string {
|
||||
return llvm::yaml::escape(name.str());
|
||||
auto escape = [](DeclBaseName name) -> std::string {
|
||||
// TODO: Handle special names
|
||||
return llvm::yaml::escape(name.getIdentifier().str());
|
||||
};
|
||||
|
||||
out << "### Swift dependencies file v0 ###\n";
|
||||
|
||||
Reference in New Issue
Block a user