Searched refs:List_ (Results 1 – 12 of 12) sorted by relevance
/PHP-Parser/lib/PhpParser/Node/Expr/ |
H A D | List_.php | 8 class List_ extends Expr { class
|
/PHP-Parser/test/PhpParser/ |
H A D | ParserTestAbstract.php | 186 $this->assertSame($stmts[0]->expr->var->getAttribute('kind'), Expr\List_::KIND_LIST); 187 …$this->assertSame($stmts[0]->expr->var->items[0]->value->getAttribute('kind'), Expr\List_::KIND_LI… 188 $this->assertSame($stmts[1]->expr->var->getAttribute('kind'), Expr\List_::KIND_ARRAY); 189 …$this->assertSame($stmts[1]->expr->var->items[0]->value->getAttribute('kind'), Expr\List_::KIND_AR…
|
/PHP-Parser/lib/PhpParser/ |
H A D | NodeDumper.php | 7 use PhpParser\Node\Expr\List_; alias 128 if ($node instanceof List_) { 258 List_::KIND_LIST => 'KIND_LIST', 259 List_::KIND_ARRAY => 'KIND_ARRAY',
|
H A D | ParserAbstract.php | 978 protected function fixupArrayDestructuring(Array_ $node): Expr\List_ { 980 return new Expr\List_(array_map(function (Node\ArrayItem $item) { 991 }, $node->items), ['kind' => Expr\List_::KIND_ARRAY] + $node->getAttributes()); 994 protected function postprocessList(Expr\List_ $node): void {
|
H A D | PrettyPrinterAbstract.php | 1521 Expr\List_::class . '->items' => ', ',
|
/PHP-Parser/tools/fuzzing/ |
H A D | target.php | 57 if ($node instanceof Expr\List_) {
|
/PHP-Parser/ |
H A D | UPGRADE-5.0.md | 97 Previously, the `list($x) = $y` destructuring syntax was represented using a `Node\Expr\List_` 101 Now, destructuring is always represented using `Node\Expr\List_`. The `kind` attribute with value 102 `Node\Expr\List_::KIND_LIST` or `Node\Expr\List_::KIND_ARRAY` specifies which syntax was actually
|
H A D | CHANGELOG.md | 245 * Destructuring is now always represented using `Expr\List_` nodes, even if it uses `[]` syntax. 969 the list items. If it was keyed, it was wrapped in `ArrayItem`. Now nested `List_` nodes are
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 570 protected function pExpr_List(Expr\List_ $node): string { 572 …$this->phpVersion->supportsShortArrayDestructuring() ? Expr\List_::KIND_ARRAY : Expr\List_::KIND_L… 573 if ($syntax === Expr\List_::KIND_ARRAY) {
|
/PHP-Parser/grammar/ |
H A D | php.y | 1355 { $$ = Expr\List_[$3]; $$->setAttribute('kind', Expr\List_::KIND_LIST);
|
/PHP-Parser/lib/PhpParser/Parser/ |
H A D | Php7.php | 2695 …List_($self->semStack[$stackPos-(4-3)], $self->getAttributes($self->tokenStartStack[$stackPos-(4-1…
|
H A D | Php8.php | 2691 …List_($self->semStack[$stackPos-(4-3)], $self->getAttributes($self->tokenStartStack[$stackPos-(4-1…
|
Completed in 58 milliseconds