Revert "Only add targetFallback if target is not in defined in current product"

This was an accidental addition of a non-reviewed change.

This reverts commit f63db9159b.
This commit is contained in:
Daniel Grumberg
2022-11-07 13:33:59 +00:00
parent f63db9159b
commit 39dbfa72aa
11 changed files with 75 additions and 80 deletions

View File

@@ -559,10 +559,7 @@ void SymbolGraphSerializer::serializeRelationship(RelationshipKind Kind,
Object Relationship;
Relationship["source"] = Source.USR;
Relationship["target"] = Target.USR;
// Emit a fallback if the target is not a symbol that will be part of this
// symbol graph.
if (API.getSymbolForUSR(Target.USR) == nullptr)
Relationship["targetFallback"] = Target.Name;
Relationship["targetFallback"] = Target.Name;
Relationship["kind"] = getRelationshipString(Kind);
Relationships.emplace_back(std::move(Relationship));