Home
last modified time | relevance | path

Searched refs:num (Results 1 – 14 of 14) sorted by relevance

/PHP-Parser/lib/PhpParser/Node/Scalar/
H A DString_.php137 * @param int $num Code point
141 private static function codePointToUtf8(int $num): string { argument
142 if ($num <= 0x7F) {
143 return chr($num);
145 if ($num <= 0x7FF) {
146 return chr(($num >> 6) + 0xC0) . chr(($num & 0x3F) + 0x80);
148 if ($num <= 0xFFFF) {
149 … return chr(($num >> 12) + 0xE0) . chr((($num >> 6) & 0x3F) + 0x80) . chr(($num & 0x3F) + 0x80);
151 if ($num <= 0x1FFFFF) {
152 return chr(($num >> 18) + 0xF0) . chr((($num >> 12) & 0x3F) + 0x80)
[all …]
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DBreak_.php9 public ?Node\Expr $num; variable in PhpParser\\Node\\Stmt\\Break_
17 public function __construct(?Node\Expr $num = null, array $attributes = []) { argument
19 $this->num = $num;
H A DContinue_.php9 public ?Node\Expr $num; variable in PhpParser\\Node\\Stmt\\Continue_
17 public function __construct(?Node\Expr $num = null, array $attributes = []) { argument
19 $this->num = $num;
/PHP-Parser/test/code/parser/stmt/
H A DcontrolFlow.test21 num: null
24 num: Scalar_Int(
29 num: null
32 num: Scalar_Int(
H A Dswitch.test33 num: null
/PHP-Parser/lib/PhpParser/Lexer/TokenEmulator/
H A DExplicitOctalEmulator.php37 $num = octdec($str);
38 return is_float($num) ? \T_DNUMBER : \T_LNUMBER;
/PHP-Parser/grammar/
H A DphpyLang.php133 function assertArgs($num, $args, $name) { argument
134 if ($num != count($args)) {
/PHP-Parser/test/code/formatPreservation/
H A DremovalViaNull.test112 $stmts[9]->num = null;
113 $stmts[10]->num = null;
H A DinsertionOfNullable.test87 $stmts[7]->num = new Scalar\LNumber(2);
88 $stmts[8]->num = new Scalar\LNumber(2);
/PHP-Parser/test/PhpParser/
H A DNodeTraverserTest.php428 $num = new Node\Scalar\Int_(42);
429 $expr = new Node\Stmt\Expression($num);
436 ['enterNode', $num, 'foobar'],
439 ['leaveNode', $num, 'foobar'],
445 ['leaveNode', $num, [new Node\Scalar\Float_(42.0)]],
454 ['enterNode', $num, new Node\Stmt\Return_()],
/PHP-Parser/lib/PhpParser/
H A DConstExprEvaluator.php67 set_error_handler(function ($num, $str, $file, $line) {
68 throw new \ErrorException($str, 0, $num, $file, $line);
H A DParserAbstract.php763 $num = +$str;
764 if (!is_int($num)) {
768 return new Int_($num, $attributes);
/PHP-Parser/test/code/parser/errorHandling/
H A Drecovery.test491 num: null
494 num: Scalar_Int(
499 num: null
502 num: Scalar_Int(
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php967 return 'break' . ($node->num !== null ? ' ' . $this->p($node->num) : '') . ';';
971 return 'continue' . ($node->num !== null ? ' ' . $this->p($node->num) : '') . ';';

Completed in 39 milliseconds