code: private function clear(Tokens $tokens, $index)
      {
          while (!$tokens[++$index]->equals(';')) {
              if ($this->shouldClearToken($tokens, $index)) {
                  $tokens->clearAt($index);
              }
          }
      }
docs: Clear the return statement located at a given index.
  
  @param Tokens $tokens
  @param int    $index