Searched refs:num (Results 1 – 14 of 14) sorted by relevance
/PHP-Parser/lib/PhpParser/Node/Scalar/ |
H A D | String_.php | 137 * @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 D | Break_.php | 9 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 D | Continue_.php | 9 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 D | controlFlow.test | 21 num: null 24 num: Scalar_Int( 29 num: null 32 num: Scalar_Int(
|
H A D | switch.test | 33 num: null
|
/PHP-Parser/lib/PhpParser/Lexer/TokenEmulator/ |
H A D | ExplicitOctalEmulator.php | 37 $num = octdec($str); 38 return is_float($num) ? \T_DNUMBER : \T_LNUMBER;
|
/PHP-Parser/grammar/ |
H A D | phpyLang.php | 133 function assertArgs($num, $args, $name) { argument 134 if ($num != count($args)) {
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | removalViaNull.test | 112 $stmts[9]->num = null; 113 $stmts[10]->num = null;
|
H A D | insertionOfNullable.test | 87 $stmts[7]->num = new Scalar\LNumber(2); 88 $stmts[8]->num = new Scalar\LNumber(2);
|
/PHP-Parser/test/PhpParser/ |
H A D | NodeTraverserTest.php | 428 $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 D | ConstExprEvaluator.php | 67 set_error_handler(function ($num, $str, $file, $line) { 68 throw new \ErrorException($str, 0, $num, $file, $line);
|
H A D | ParserAbstract.php | 761 $num = +$str; 762 if (!is_int($num)) { 766 return new Int_($num, $attributes);
|
/PHP-Parser/test/code/parser/errorHandling/ |
H A D | recovery.test | 491 num: null 494 num: Scalar_Int( 499 num: null 502 num: Scalar_Int(
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 967 return 'break' . ($node->num !== null ? ' ' . $this->p($node->num) : '') . ';'; 971 return 'continue' . ($node->num !== null ? ' ' . $this->p($node->num) : '') . ';';
|
Completed in 32 milliseconds