src/TokenStream.php
public function reset(): self
    {
        $this->position = 0;
        $this->current = isset($this->tokens[$this->position]) ? $this->tokens[$this->position] : self::$eoi;
        return $this;
    }
public function reset(): self
    {
        $this->position = 0;
        $this->current = isset($this->tokens[$this->position]) ? $this->tokens[$this->position] : self::$eoi;
        return $this;
    }
public function reset ( ) : self { $ this -> position = 0 ; $ this -> current = isset ( $ this -> tokens [ $ this -> position ] ) ? $ this -> tokens [ $ this -> position ] : self :: $ eoi ; return $ this ; }
Resets the stream.

@return self
Resets the stream .