private static function seekToNextType(ArrayIterator $tokenIterator, $type)
    {
        while ($tokenIterator->valid()) {
            if (self::isTokenType($tokenIterator->current(), $type)) {
                return;
            }
            $tokenIterator->next();
        }
    }
private static function seekToNextType(ArrayIterator $tokenIterator, $type)
    {
        while ($tokenIterator->valid()) {
            if (self::isTokenType($tokenIterator->current(), $type)) {
                return;
            }
            $tokenIterator->next();
        }
    }
private static function seekToNextType ( ArrayIterator $ tokenIterator , $ type ) { while ( $ tokenIterator -> valid ( ) ) { if ( self :: isTokenType ( $ tokenIterator -> current ( ) , $ type ) ) { return ; } $ tokenIterator -> next ( ) ; } }
Seeks ahead using the iterator until the next token matching the type

@param ArrayIterator $tokenIterator the token iterator to seek
@param array $type the type of the token seek to
Seeks ahead using the iterator until the next token matching the type