AST: ProtocolConformanceRef::getTypeWitnessByName() should be an instance method

This commit is contained in:
Slava Pestov
2019-05-14 18:26:24 -04:00
parent d93695f999
commit 6e3609dc22
7 changed files with 29 additions and 37 deletions

View File

@@ -135,10 +135,7 @@ public:
return llvm::hash_value(conformance.Union.getOpaqueValue());
}
static Type
getTypeWitnessByName(Type type,
ProtocolConformanceRef conformance,
Identifier name);
Type getTypeWitnessByName(Type type, Identifier name) const;
/// Determine whether this conformance is canonical.
bool isCanonical() const;