Automattic\WooCommerce\Vendor\GraphQL\Language
Lexer::assertValidBlockStringCharacterCode
Method of the class: Lexer{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->assertValidBlockStringCharacterCode( $code, $position ): void;
- $code(int) (required)
- .
- $position(int) (required)
- .
Lexer::assertValidBlockStringCharacterCode() Lexer::assertValidBlockStringCharacterCode code WC 11.0.1
private function assertValidBlockStringCharacterCode(int $code, int $position): void
{
// SourceCharacter
if ($code < 0x0020 && $code !== 0x0009 && $code !== 0x000A && $code !== 0x000D) {
$char = Utils::printCharCode($code);
throw new SyntaxError($this->source, $position, "Invalid character within String: {$char}");
}
}