generator on all declaration of type

def declalltypes(self):
        """generator on all declaration of type"""
        for f in self.body:
            if (hasattr(f, '_ctype')
                    and f._ctype._storage == Storages.TYPEDEF):
                yield f