def is_member_of_enumerated_subtypes_tree(self):
return (self.has_enumerated_subtypes() or<EOL>(self.parent_type and<EOL>self.parent_type.has_enumerated_subtypes()))<EOL>
Whether this struct enumerates subtypes or is a struct that is
enumerated by its parent type. Because such structs are serialized
and deserialized differently, use this method to detect these.