mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] DocInfo: Update the UIdent for synthesized extensions to respect the synthesized targets instead of the original extended types.
This commit is contained in:
@@ -300,7 +300,11 @@ static bool initDocEntityInfo(const Decl *D, const Decl *SynthesizedTarget,
|
||||
return false;
|
||||
}
|
||||
|
||||
Info.Kind = SwiftLangSupport::getUIDForDecl(D, IsRef);
|
||||
if (IsSynthesizedExtension)
|
||||
Info.Kind = SwiftLangSupport::getUIDForExtensionOfDecl(SynthesizedTarget);
|
||||
else
|
||||
Info.Kind = SwiftLangSupport::getUIDForDecl(D, IsRef);
|
||||
|
||||
if (Info.Kind.isInvalid())
|
||||
return true;
|
||||
if (const ValueDecl *VD = dyn_cast<ValueDecl>(D)) {
|
||||
|
||||
Reference in New Issue
Block a user