src/TokenStream.php
public function skipUntil(int $type): void
    {
        while (!$this->current->typeEquals($type) && !$this->current->typeEquals(Token::T_EOI)) {
            $this->next();
        }
    }
public function skipUntil(int $type): void
    {
        while (!$this->current->typeEquals($type) && !$this->current->typeEquals(Token::T_EOI)) {
            $this->next();
        }
    }
public function skipUntil ( int $ type ) : void { while ( ! $ this -> current -> typeEquals ( $ type ) && ! $ this -> current -> typeEquals ( Token :: T_EOI ) ) { $ this -> next ( ) ; } }
Skips tokens until it sees a token with the given value.

@param int $type
Skips tokens until it sees a token with the given value .