Automattic\WooCommerce\Vendor\GraphQL\Language
Parser::parseStringLiteral
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() 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),
]);
}