Skip to content

Commit 8113d1f

Browse files
committed
IDE: Remove bogus associated type superclass field from ModuleAPIDiff
1 parent b94cd94 commit 8113d1f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tools/swift-ide-test/ModuleAPIDiff.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ struct TypealiasDecl {
394394

395395
struct AssociatedTypeDecl {
396396
Identifier Name;
397-
Optional<TypeName> Superclass;
398397
Optional<TypeName> DefaultDefinition;
399398
DeclAttributes Attributes;
400399
};
@@ -603,7 +602,6 @@ template <> struct MappingTraits<::swift::sma::TypealiasDecl> {
603602
template <> struct MappingTraits<::swift::sma::AssociatedTypeDecl> {
604603
static void mapping(IO &io, ::swift::sma::AssociatedTypeDecl &ATD) {
605604
io.mapRequired("Name", ATD.Name);
606-
io.mapOptional("Superclass", ATD.Superclass);
607605
io.mapOptional("DefaultDefinition", ATD.DefaultDefinition);
608606
io.mapOptional("Attributes", ATD.Attributes,
609607
::swift::sma::DeclAttributes());
@@ -844,7 +842,6 @@ class SMAModelGenerator : public DeclVisitor<SMAModelGenerator> {
844842
void visitAssociatedTypeDecl(AssociatedTypeDecl *ATD) {
845843
auto ResultATD = std::make_shared<sma::AssociatedTypeDecl>();
846844
ResultATD->Name = convertToIdentifier(ATD->getName());
847-
ResultATD->Superclass = convertToOptionalTypeName(ATD->getSuperclass());
848845
ResultATD->DefaultDefinition =
849846
convertToOptionalTypeName(ATD->getDefaultDefinitionType());
850847
// FIXME

0 commit comments

Comments
 (0)