Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 41) sorted by relevance

12

/PHP-Parser/test/code/prettyPrinter/expr/
H A Darrow_function.test6 fn($x = 42) => $x;
7 fn(&$x) => $x;
8 fn&($x) => $x;
9 static fn($x, ...$rest) => $rest;
10 fn(): int => $x;
15 fn($x = 42) => $x;
16 fn(&$x) => $x;
17 fn&($x) => $x;
18 static fn($x, ...$rest) => $rest;
19 fn(): int => $x;
H A DnewVariable.test5 new (x);
8 new (x[0]);
9 new (x->y);
10 new ((x)::$y);
11 $x instanceof ('a' . 'b');
12 $x instanceof ($y++);
15 new (x)();
18 new (x[0])();
19 new (x->y)();
20 new ((x)::$y)();
[all …]
H A Duvs.test15 (A)::$x;
16 (A)::x();
29 (A)::$x;
30 (A)::x();
H A Dthrow.test4 test(throw $x);
7 test(throw $x);
H A Dyield.test22 match ($x) {
47 match ($x) {
74 match ($x) {
100 match ($x) {
/PHP-Parser/lib/PhpParser/Internal/
H A DDiffer.php72 $x = $v[$k + 1];
74 $x = $v[$k - 1] + 1;
77 $y = $x - $k;
78 while ($x < $n && $y < $m && ($this->isEqual)($old[$x], $new[$y])) {
79 $x++;
83 $v[$k] = $x;
84 if ($x >= $n && $y >= $m) {
102 $k = $x - $y;
115 $x--;
123 while ($x > $prevX) {
[all …]
/PHP-Parser/test/code/parser/expr/
H A DlistReferences.test5 list(&$v) = $x;
6 list('k' => &$v) = $x;
7 [&$v] = $x;
8 ['k' => &$v] = $x;
26 name: x
47 name: x
66 name: x
87 name: x
H A Darrow_function.test5 fn($x = 42) => $x;
6 static fn(&$x) => $x;
7 fn&($x) => $x;
8 fn($x, ...$rest) => $rest;
9 fn(): int => $x;
58 name: x
67 name: x
86 name: x
93 name: x
119 name: x
[all …]
H A DvarVarPos.test4 $$$x;
12 name: x
H A DexprInList.test6 list(($a), ((($b)))) = $x;
8 list(1 + 1) = $x;
34 name: x
61 name: x
H A Dthrow.test4 test(throw $x);
18 name: x
H A DlistWithKeys.test6 list('a' => list($b => $c), 'd' => $e) = $x;
79 name: x
/PHP-Parser/test/code/prettyPrinter/stmt/
H A Dattributes.test9 A4(x: 1),
29 $x = #[A10] function() {};
33 #[A1, A2, A3(0), A4(x: 1)]
55 $x = #[A10] function () {
H A Dproperty_promotion.test8 public float $x = 0.0,
18 …public function __construct(public float $x = 0.0, protected array $y = [], private string $z = 'h…
28 public int $x,
41 public int $x,
H A DmultiCatch.test5 $x;
13 $x;
/PHP-Parser/test/code/parser/
H A DformattingAttributes.test17 "foo\nbar{$x}";
19 `foo\nbar{$x}`;
36 foo\nbar{$x}baz
39 foo\nbar{$x}baz
44 list($x) = $y;
45 [$x] = $y;
130 name: x
156 name: x
217 name: x
238 name: x
[all …]
/PHP-Parser/test/code/formatPreservation/
H A DinsertionOfNullable.test9 $x,
26 $x
50 $x
59 $x
89 $stmts[9]->expr = new Expr\Variable('x');
105 int $x,
122 $x
135 return $x
146 $x = 42.0
155 $x
H A DlistRemoval.test32 $stmts[0]->params[] = new Node\Param(new Expr\Variable('x'));
39 $x,
67 { $x; }
76 $x;
85 $x;
91 $x;
94 { $x; }
100 { $x; }
104 $x;
H A DremovalViaNull.test26 $prop = 'x'
32 x
76 ($x)
86 $x
145 x
178 ($x)
184 $x
H A DmodifierChange.test37 public T1 $x
42 = 'x',
51 private T1 $x
56 = 'x',
H A DanonClasses.test5 ($x)
15 ($x, $y)
H A DinlineHtml.test116 <?php $x;
122 <?php $x;
/PHP-Parser/test/code/parser/stmt/
H A DmultiCatch.test5 $x;
17 name: x
/PHP-Parser/test/code/parser/stmt/class/
H A DshortEchoAsIdentifier.test6 x as y?><?= as my_echo;
33 name: x
/PHP-Parser/test/code/parser/expr/uvs/
H A DindirectCall.test9 (function($x) { return $x; })('id')('var_dump')(8);
10 ($f = function($x = null) use (&$f) {
11 return $x ?: $f;
211 name: x
222 name: x
285 name: x
307 name: x

Completed in 31 milliseconds

12