public function PHP_Token_Stream::seek

Seek to an absolute position.

Parameters

integer $position:

Throws

OutOfBoundsException

File

drupal/core/vendor/phpunit/php-token-stream/PHP/Token/Stream.php, line 560

Class

PHP_Token_Stream
A stream of PHP tokens.

Code

public function seek($position) {
  $this->position = $position;
  if (!$this
    ->valid()) {
    throw new OutOfBoundsException('Invalid seek position');
  }
}