code: def _resolve_name(self, name):
          
          res = [name]
          while True:
              orig_names = self._search("types", name)
              if orig_names is not None:
                  name = orig_names[-1]
                  # pop off the typedefd name
                  res.pop()
                  # add back on the original names
                  res += orig_names
              else:
                  break
  
          return res
docs: TODO: Docstring for _resolve_names.
  
          :name: TODO
          :returns: TODO