Automattic\WooCommerce\Vendor\GraphQL\Language

Parser::parseEnumValueDefinitionprivateWC 1.0

Method of the class: Parser{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Parser::parseEnumValueDefinition() code WC 11.0.1

private function parseEnumValueDefinition(): EnumValueDefinitionNode
{
    $start = $this->lexer->token;
    $description = $this->parseDescription();
    $name = $this->parseName();
    $directives = $this->parseDirectives(true);

    return new EnumValueDefinitionNode([
        'name' => $name,
        'directives' => $directives,
        'loc' => $this->loc($start),
        'description' => $description,
    ]);
}