Automattic\WooCommerce\Vendor\GraphQL\Language

Parser::parseStringLiteral │ private │ WC 1.0

Method of the class: Parser{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Parser::parseStringLiteral() code WC 11.1.2

private function parseStringLiteral(): StringValueNode
{
    $token = $this->lexer->token;
    $this->lexer->advance();

    return new StringValueNode([
        'value' => $token->value,
        'block' => $token->kind === Token::BLOCK_STRING,
        'loc' => $this->loc($token),
    ]);
}