Automattic\WooCommerce\Vendor\GraphQL\Language

Parser::parseSelectionprivateWC 1.0

Method of the class: Parser{}

No Hooks.

Returns

SelectionNode&Node.

Usage

// private - for code of main (parent) class only
$result = $this->parseSelection(): SelectionNode;

Parser::parseSelection() code WC 11.0.1

private function parseSelection(): SelectionNode
{
    return $this->peek(Token::SPREAD)
        ? $this->parseFragment()
        : $this->parseField();
}