original_string: public function serializeGenerator()
      {
          if($this->__converter instanceof IListConverter)
          {
              foreach($this->__converter->toGenerator($this) as $index => $row)
              {
                  yield $index => $row;
              }
          }
          else
          {
              foreach($this->toArray() as $index => $row)
              {
                  yield $index => $row;
              }
          }
      }
code: public function serializeGenerator()
      {
          if($this->__converter instanceof IListConverter)
          {
              foreach($this->__converter->toGenerator($this) as $index => $row)
              {
                  yield $index => $row;
              }
          }
          else
          {
              foreach($this->toArray() as $index => $row)
              {
                  yield $index => $row;
              }
          }
      }
code_tokens: public function serializeGenerator ( ) { if ( $ this -> __converter instanceof IListConverter ) { foreach ( $ this -> __converter -> toGenerator ( $ this ) as $ index => $ row ) { yield $ index => $ row ; } } else { foreach ( $ this -> toArray ( ) as $ index => $ row ) { yield $ index => $ row ; } } }
docstring: Serialize via converter as generator
  @return mixed[]
docstring_tokens: Serialize via converter as generator