public function PHP_Token_Stream::seek in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-token-stream/src/Token/Stream.php \PHP_Token_Stream::seek()
Seek to an absolute position.
Parameters
integer $position:
Throws
OutOfBoundsException
File
- vendor/
phpunit/ php-token-stream/ src/ Token/ Stream.php, line 581
Class
- PHP_Token_Stream
- A stream of PHP tokens.
Code
public function seek($position) {
$this->position = $position;
if (!$this
->valid()) {
throw new OutOfBoundsException(sprintf('No token at position "%s"', $this->position));
}
}