mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Introduce abstraction for extension/type decl inheritance clauses.
Wrap the `InheritedEntry` array available on both `ExtensionDecl` and `TypeDecl` in a new `InheritedTypes` class. This class will provide shared conveniences for working with inherited type clauses. NFC.
This commit is contained in:
@@ -8621,7 +8621,7 @@ GenericSignature ClangImporter::Implementation::buildGenericSignature(
|
||||
SmallVector<Requirement, 2> requirements;
|
||||
for (auto param : *genericParams) {
|
||||
Type paramType = param->getDeclaredInterfaceType();
|
||||
for (const auto &inherited : param->getInherited()) {
|
||||
for (const auto &inherited : param->getInherited().getEntries()) {
|
||||
Type inheritedType = inherited.getType();
|
||||
if (inheritedType->isAnyObject()) {
|
||||
requirements.push_back(
|
||||
|
||||
Reference in New Issue
Block a user