mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[api-digester] Include USRs in conformances
SDK conformance nodes include only protocol `name` and `printedName`, both are demangled. USR field of the protocol type is added, to be able to uniquely identify conformances.
This commit is contained in:
@@ -499,11 +499,13 @@ public:
|
||||
/// The SDKNode part of the conformance node is constructed using the protocol
|
||||
/// in the conformance, thus getName() will give us the name of the protocol.
|
||||
class SDKNodeConformance: public SDKNode {
|
||||
StringRef Usr;
|
||||
SDKNodeDeclType *TypeDecl;
|
||||
friend class SDKNodeDeclType;
|
||||
bool IsABIPlaceholder;
|
||||
public:
|
||||
SDKNodeConformance(SDKNodeInitInfo Info);
|
||||
StringRef getUsr() const { return Usr; }
|
||||
ArrayRef<SDKNode*> getTypeWitnesses() const { return Children; }
|
||||
SDKNodeDeclType *getNominalTypeDecl() const { return TypeDecl; }
|
||||
bool isABIPlaceholder() const { return IsABIPlaceholder; }
|
||||
|
||||
Reference in New Issue
Block a user