mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -338,7 +338,7 @@ static bool canSynthesizeCodingKey(DerivedConformance &derived) {
|
||||
}
|
||||
}
|
||||
|
||||
auto inherited = enumDecl->getInherited();
|
||||
auto inherited = enumDecl->getInherited().getEntries();
|
||||
if (!inherited.empty() && inherited.front().wasValidated() &&
|
||||
inherited.front().isError())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user