Home
last modified time | relevance | path

Searched refs:List_ (Results 1 – 12 of 12) sorted by relevance

/PHP-Parser/lib/PhpParser/Node/Expr/
H A DList_.php8 class List_ extends Expr { class
/PHP-Parser/test/PhpParser/
H A DParserTestAbstract.php186 $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 DNodeDumper.php7 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 DParserAbstract.php978 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 DPrettyPrinterAbstract.php1521 Expr\List_::class . '->items' => ', ',
/PHP-Parser/tools/fuzzing/
H A Dtarget.php57 if ($node instanceof Expr\List_) {
/PHP-Parser/
H A DUPGRADE-5.0.md97 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 DCHANGELOG.md245 * 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 DStandard.php570 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 Dphp.y1355 { $$ = Expr\List_[$3]; $$->setAttribute('kind', Expr\List_::KIND_LIST);
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php2695List_($self->semStack[$stackPos-(4-3)], $self->getAttributes($self->tokenStartStack[$stackPos-(4-1…
H A DPhp8.php2691List_($self->semStack[$stackPos-(4-3)], $self->getAttributes($self->tokenStartStack[$stackPos-(4-1…

Completed in 83 milliseconds