Home
last modified time | relevance | path

Searched refs:Array_ (Results 1 – 19 of 19) sorted by relevance

/PHP-Parser/lib/PhpParser/Node/Expr/Cast/
H A DArray_.php7 class Array_ extends Cast { class
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DArray_.php8 class Array_ extends Expr { class
/PHP-Parser/lib/PhpParser/
H A DNodeDumper.php5 use PhpParser\Node\Expr\Array_; alias
124 if ($node instanceof Array_) {
251 Array_::KIND_LONG => 'KIND_LONG',
252 Array_::KIND_SHORT => 'KIND_SHORT',
H A DConstExprEvaluator.php114 if ($expr instanceof Expr\Array_) {
151 private function evaluateArray(Expr\Array_ $expr): array {
H A DBuilderHelpers.php269 return new Expr\Array_($items);
H A DPrettyPrinterAbstract.php50 Cast\Array_::class => [ 10, -1, -1],
1152 || $node instanceof Expr\Array_);
1186 || $node instanceof Expr\Array_
1386 Cast\Int_::class, Cast\Double::class, Cast\String_::class, Cast\Array_::class,
1515 Expr\Array_::class . '->items' => ', ',
H A DParserAbstract.php12 use PhpParser\Node\Expr\Array_; alias
976 protected function fixupArrayDestructuring(Array_ $node): Expr\List_ {
983 if ($item->value instanceof Array_) {
/PHP-Parser/test/PhpParser/
H A DNodeDumperTest.php41 new Node\Expr\Array_([
H A DParserTestAbstract.php142 ['[]', ['kind' => Expr\Array_::KIND_SHORT]],
143 ['array()', ['kind' => Expr\Array_::KIND_LONG]],
H A DBuilderHelpersTest.php189 new Expr\Array_([
H A DPrettyPrinterTest.php83 $expr = new Expr\Array_([
/PHP-Parser/test/PhpParser/Builder/
H A DClassConstTest.php196 new Expr\Array_([
204 new Expr\Array_([
H A DPropertyTest.php206 new Expr\Array_([
214 new Expr\Array_([
H A DParamTest.php61 new Expr\Array_([
69 new Expr\Array_([
/PHP-Parser/grammar/
H A Dphp.y1077 | T_ARRAY_CAST expr { $$ = Expr\Cast\Array_ [$2]; }
1225 { $attrs = attributes(); $attrs['kind'] = Expr\Array_::KIND_SHORT;
1226 $$ = new Expr\Array_($2, $attrs); }
1231 { $attrs = attributes(); $attrs['kind'] = Expr\Array_::KIND_LONG;
1232 $$ = new Expr\Array_($3, $attrs);
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php504 …protected function pExpr_Cast_Array(Cast\Array_ $node, int $precedence, int $lhsPrecedence): strin…
505 … return $this->pPrefixOp(Cast\Array_::class, '(array) ', $node->expr, $precedence, $lhsPrecedence);
594 protected function pExpr_Array(Expr\Array_ $node): string {
596 $this->shortArraySyntax ? Expr\Array_::KIND_SHORT : Expr\Array_::KIND_LONG);
597 if ($syntax === Expr\Array_::KIND_SHORT) {
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php2377 …$self->semValue = new Expr\Cast\Array_($self->semStack[$stackPos-(2-2)], $self->getAttributes($sel…
2565 …Stack[$stackPos-(3-1)], $self->tokenEndStack[$stackPos]); $attrs['kind'] = Expr\Array_::KIND_SHORT;
2566 $self->semValue = new Expr\Array_($self->semStack[$stackPos-(3-2)], $attrs);
2569 …tStack[$stackPos-(4-1)], $self->tokenEndStack[$stackPos]); $attrs['kind'] = Expr\Array_::KIND_LONG;
2570 $self->semValue = new Expr\Array_($self->semStack[$stackPos-(4-3)], $attrs);
H A DPhp8.php2379 …$self->semValue = new Expr\Cast\Array_($self->semStack[$stackPos-(2-2)], $self->getAttributes($sel…
2567 …Stack[$stackPos-(3-1)], $self->tokenEndStack[$stackPos]); $attrs['kind'] = Expr\Array_::KIND_SHORT;
2568 $self->semValue = new Expr\Array_($self->semStack[$stackPos-(3-2)], $attrs);
2571 …tStack[$stackPos-(4-1)], $self->tokenEndStack[$stackPos]); $attrs['kind'] = Expr\Array_::KIND_LONG;
2572 $self->semValue = new Expr\Array_($self->semStack[$stackPos-(4-3)], $attrs);
/PHP-Parser/
H A DUPGRADE-5.0.md98 node, while `[$x] = $y` used a `Node\Expr\Array_` node, the same used for the creation (rather than

Completed in 52 milliseconds