Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Parser
TokenStream::getNext
Returns next token.
Method of the class: TokenStream{}
No Hooks.
Returns
null. Nothing (null).
Usage
$TokenStream = new TokenStream(); $TokenStream->getNext(): Token;
TokenStream::getNext() TokenStream::getNext code WC 10.4.3
public function getNext(): Token
{
if ($this->peeking) {
$this->peeking = false;
$this->used[] = $this->peeked;
return $this->peeked;
}
if (!isset($this->tokens[$this->cursor])) {
throw new InternalErrorException('Unexpected token stream end.');
}
return $this->tokens[$this->cursor++];
}