code: def type(self, name: str):
          
          for f in self.body:
              if (hasattr(f, '_ctype')
                      and f._ctype._storage == Storages.TYPEDEF
                      and f._name == name):
                  return f
docs: return the first complete definition of type 'name