Automattic\WooCommerce\Vendor\GraphQL\Language
Parser::parseDirectives
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() 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);
}