File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1563,6 +1563,15 @@ InheritedEntry::InheritedEntry(const TypeLoc &typeLoc)
15631563 }
15641564}
15651565
1566+ InheritedTypes::InheritedTypes (const TypeDecl *typeDecl) : Decl(typeDecl) {
1567+ Entries = typeDecl->Inherited ;
1568+ }
1569+
1570+ InheritedTypes::InheritedTypes (const ExtensionDecl *extensionDecl)
1571+ : Decl(extensionDecl) {
1572+ Entries = extensionDecl->Inherited ;
1573+ }
1574+
15661575InheritedTypes::InheritedTypes (
15671576 llvm::PointerUnion<const TypeDecl *, const ExtensionDecl *> decl)
15681577 : Decl(decl) {
@@ -1641,15 +1650,6 @@ SourceRange InheritedTypes::getRemovalRange(unsigned i) const {
16411650 return SourceRange (afterPriorLoc, afterMyEndLoc);
16421651}
16431652
1644- InheritedTypes::InheritedTypes (const TypeDecl *typeDecl) : Decl(typeDecl) {
1645- Entries = typeDecl->Inherited ;
1646- }
1647-
1648- InheritedTypes::InheritedTypes (const ExtensionDecl *extensionDecl)
1649- : Decl(extensionDecl) {
1650- Entries = extensionDecl->Inherited ;
1651- }
1652-
16531653Type InheritedTypes::getResolvedType (unsigned i,
16541654 TypeResolutionStage stage) const {
16551655 ASTContext &ctx = Decl.is <const ExtensionDecl *>()
You can’t perform that action at this time.
0 commit comments