Automattic\WooCommerce\Vendor\GraphQL\Language
Parser::parseArguments
Method of the class: Parser{}
No Hooks.
Returns
NodeList<ArgumentNode>.
Usage
// private - for code of main (parent) class only $result = $this->parseArguments( $isConst ): NodeList;
- $isConst(true|false) (required)
- .
Parser::parseArguments() Parser::parseArguments code WC 11.0.1
private function parseArguments(bool $isConst): NodeList
{
$parseFn = $isConst
? fn (): ArgumentNode => $this->parseConstArgument()
: fn (): ArgumentNode => $this->parseArgument();
return $this->peek(Token::PAREN_L)
? $this->many(Token::PAREN_L, $parseFn, Token::PAREN_R)
: new NodeList([]);
}