resources/grammar/expression/literal/const.pp2
/**
* --------------------------------------------------------------------------
* GraphQL Enum Values
* --------------------------------------------------------------------------
*
* Enum values are represented as unquoted names (ex. MOBILE_WEB). It is
* recommended that Enum values be “all caps”. Enum values are only used
* in contexts where the precise enumeration type is known. Therefore it’s
* not necessary to supply an enumeration type name in the literal.
*
* @see https://facebook.github.io/graphql/June2018/#EnumValue
*/
ConstLiteral -> {
return new Expr\Literal\ConstLiteralNode($children[0]);
}
: Identifier()
;