Searched refs:LNumber (Results 1 – 13 of 13) sorted by relevance
9 class LNumber extends Int_ { class
82 class_alias(Int_::class, LNumber::class);
28 $stmts[0]->expr->expr->arms[0]->conds[] = new Scalar\LNumber(3);69 $stmts[0]->expr->expr->arms[0]->conds = [new Scalar\LNumber(1)];
87 $stmts[7]->num = new Scalar\LNumber(2);88 $stmts[8]->num = new Scalar\LNumber(2);
55 $stmts[0]->stmts[0]->expr = new Scalar\LNumber(1);
285 array_unshift($stmts[0]->expr->expr->items, new Expr\ArrayItem(new Scalar\LNumber(42)));286 $stmts[0]->expr->expr->items[] = new Expr\ArrayItem(new Scalar\LNumber(24));303 $stmts[0]->expr->expr->items[] = new Expr\ArrayItem(new Scalar\LNumber(24));
27 $this->assertTrue($node instanceof Scalar\LNumber);54 $node = new Node\Scalar\LNumber(1);60 $node = new Stmt\DeclareDeclare('strict_types', new Scalar\LNumber(1));
71 `new LNumber()` should be replaced by `new LNumber(0)`.
292 * Added `rawValue` attribute to `LNumber`, `DNumber` and `String_` nodes, which stores the unparsed937 * In `"$foo[0]"` the `0` is now parsed as an `LNumber` rather than `String`. (#325)1124 * Added `kind` attribute to `Scalar\LNumber` to distinguish between decimal, binary, octal and1150 * The internal (but public) method `Scalar\LNumber::parse()` has been removed. A non-internal1151 `LNumber::fromString()` method has been added instead.1235 * The constructor for `Scalar` nodes no longer has a default value. E.g. `new LNumber()` should now1236 be written as `new LNumber(0)`.
121 path: lib/PhpParser/Node/Scalar/LNumber.php
280 * `Node\Scalar\LNumber` is now `Node\Scalar\Int_`.
107 if ($node instanceof Node\Scalar\LNumber) {
187 (`PhpParser\Node\Scalar\String_`), `0` (`PhpParser\Node\Scalar\LNumber`) or magic constants
Completed in 17 milliseconds