Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Parser

TokenStream::getPeekpublicWC 1.0

Returns peeked token.

Method of the class: TokenStream{}

No Hooks.

Returns

null. Nothing (null).

Usage

$TokenStream = new TokenStream();
$TokenStream->getPeek(): Token;

TokenStream::getPeek() code WC 10.4.3

public function getPeek(): Token
{
    if (!$this->peeking) {
        $this->peeked = $this->getNext();
        $this->peeking = true;
    }

    return $this->peeked;
}