Automattic\WooCommerce\Vendor\GraphQL\Language

Parser::parseArgumentsDefinitionprivateWC 1.0

Method of the class: Parser{}

No Hooks.

Returns

NodeList<InputValueDefinitionNode>.

Usage

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

Parser::parseArgumentsDefinition() code WC 11.1.1

private function parseArgumentsDefinition(): NodeList
{
    return $this->peek(Token::PAREN_L)
        ? $this->many(
            Token::PAREN_L,
            fn (): InputValueDefinitionNode => $this->parseInputValueDefinition(),
            Token::PAREN_R
        )
        : new NodeList([]);
}