code: def deftypes(self):
      
      for f in self.body:
          if (hasattr(f, '_ctype')
                  and (f._ctype._storage == Storages.TYPEDEF
                      or (f._name == '' and isinstance(f._ctype, ComposedType)))):
              yield f
docs: generator on all definition of type