mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
don't emit navigator name if it's the same as subHeading
This commit is contained in:
@@ -594,17 +594,9 @@ void
|
||||
SymbolGraph::serializeNavigatorDeclarationFragments(StringRef Key,
|
||||
const Symbol &S,
|
||||
llvm::json::OStream &OS) {
|
||||
DeclarationFragmentPrinter Printer(this, OS, Key);
|
||||
|
||||
if (const auto *TD = dyn_cast<GenericTypeDecl>(S.getSymbolDecl())) {
|
||||
DeclarationFragmentPrinter Printer(this, OS, Key);
|
||||
Printer.printAbridgedType(TD, /*PrintKeyword=*/false);
|
||||
} else {
|
||||
auto Options = getSubHeadingDeclarationFragmentsPrintOptions();
|
||||
if (S.getBaseType()) {
|
||||
Options.setBaseType(S.getBaseType());
|
||||
Options.PrintAsMember = true;
|
||||
}
|
||||
S.getSymbolDecl()->print(Printer, Options);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user