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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user