Automattic\WooCommerce\Vendor\GraphQL\Language

Parser::parseDirectivesprivateWC 1.0

Method of the class: Parser{}

No Hooks.

Returns

NodeList<DirectiveNode>.

Usage

// private - for code of main (parent) class only
$result = $this->parseDirectives( $isConst ): NodeList;
$isConst(true|false) (required)
.

Parser::parseDirectives() code WC 11.1.1

private function parseDirectives(bool $isConst): NodeList
{
    $directives = [];
    while ($this->peek(Token::AT)) {
        $directives[] = $this->parseDirective($isConst);
    }

    return new NodeList($directives);
}