Searched refs:Array_ (Results 1 – 19 of 19) sorted by relevance
/PHP-Parser/lib/PhpParser/Node/Expr/Cast/ |
H A D | Array_.php | 7 class Array_ extends Cast { class
|
/PHP-Parser/lib/PhpParser/Node/Expr/ |
H A D | Array_.php | 8 class Array_ extends Expr { class
|
/PHP-Parser/lib/PhpParser/ |
H A D | NodeDumper.php | 5 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 D | ConstExprEvaluator.php | 114 if ($expr instanceof Expr\Array_) { 151 private function evaluateArray(Expr\Array_ $expr): array {
|
H A D | BuilderHelpers.php | 269 return new Expr\Array_($items);
|
H A D | PrettyPrinterAbstract.php | 50 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 D | ParserAbstract.php | 12 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 D | NodeDumperTest.php | 41 new Node\Expr\Array_([
|
H A D | ParserTestAbstract.php | 142 ['[]', ['kind' => Expr\Array_::KIND_SHORT]], 143 ['array()', ['kind' => Expr\Array_::KIND_LONG]],
|
H A D | BuilderHelpersTest.php | 189 new Expr\Array_([
|
H A D | PrettyPrinterTest.php | 83 $expr = new Expr\Array_([
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | ClassConstTest.php | 196 new Expr\Array_([ 204 new Expr\Array_([
|
H A D | PropertyTest.php | 206 new Expr\Array_([ 214 new Expr\Array_([
|
H A D | ParamTest.php | 61 new Expr\Array_([ 69 new Expr\Array_([
|
/PHP-Parser/grammar/ |
H A D | php.y | 1077 | 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 D | Standard.php | 504 …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 D | Php7.php | 2377 …$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 D | Php8.php | 2379 …$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 D | UPGRADE-5.0.md | 98 node, while `[$x] = $y` used a `Node\Expr\Array_` node, the same used for the creation (rather than
|
Completed in 73 milliseconds