code: def _add_to_obj(self, rec_curr, typedef_curr, line):
          
          if rec_curr is not None:
              self._add_to_ref(rec_curr, line)
          else:
              add_to_typedef(typedef_curr, line)
docs: Add information on line to GOTerm or Typedef.