Automattic\WooCommerce\Vendor\GraphQL\Language
Parser::parseObject
Method of the class: Parser{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->parseObject( $isConst ): ObjectValueNode;
- $isConst(true|false) (required)
- .
Parser::parseObject() Parser::parseObject code WC 11.0.1
private function parseObject(bool $isConst): ObjectValueNode
{
$start = $this->lexer->token;
$this->expect(Token::BRACE_L);
$fields = [];
while (! $this->skip(Token::BRACE_R)) {
$fields[] = $this->parseObjectField($isConst);
}
return new ObjectValueNode([
'fields' => new NodeList($fields),
'loc' => $this->loc($start),
]);
}