Automattic\WooCommerce\Vendor\GraphQL\Language

Parser::parseObjectFieldprivateWC 1.0

Method of the class: Parser{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Parser::parseObjectField() code WC 11.0.1

private function parseObjectField(bool $isConst): ObjectFieldNode
{
    $start = $this->lexer->token;
    $name = $this->parseName();

    $this->expect(Token::COLON);

    return new ObjectFieldNode([
        'name' => $name,
        'value' => $this->parseValueLiteral($isConst),
        'loc' => $this->loc($start),
    ]);
}