Automattic\WooCommerce\Vendor\GraphQL\Language
Parser::parseSelectionSet
Method of the class: Parser{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->parseSelectionSet(): SelectionSetNode;
Parser::parseSelectionSet() Parser::parseSelectionSet code WC 11.0.1
private function parseSelectionSet(): SelectionSetNode
{
$start = $this->lexer->token;
return new SelectionSetNode(
[
'selections' => $this->many(
Token::BRACE_L,
fn (): SelectionNode => $this->parseSelection(),
Token::BRACE_R
),
'loc' => $this->loc($start),
]
);
}