mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
fix symbol graph bug where enabling extension block format caused inheritsFrom relationships of extended symbols to be emitted in extension graphs (#61951)
This commit is contained in:
@@ -377,7 +377,7 @@ void SymbolGraph::recordConformanceSynthesizedMemberRelationships(Symbol S) {
|
||||
|
||||
void
|
||||
SymbolGraph::recordInheritanceRelationships(Symbol S) {
|
||||
const auto VD = S.getSymbolDecl();
|
||||
const auto VD = S.getLocalSymbolDecl();
|
||||
if (const auto *NTD = dyn_cast<NominalTypeDecl>(VD)) {
|
||||
for (const auto &InheritanceLoc : NTD->getInherited()) {
|
||||
auto Ty = InheritanceLoc.getType();
|
||||
@@ -390,7 +390,7 @@ SymbolGraph::recordInheritanceRelationships(Symbol S) {
|
||||
continue;
|
||||
}
|
||||
|
||||
recordEdge(Symbol(this, VD, nullptr),
|
||||
recordEdge(Symbol(this, NTD, nullptr),
|
||||
Symbol(this, InheritedTypeDecl, nullptr),
|
||||
RelationshipKind::InheritsFrom());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user