Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 158) sorted by relevance

1234567

/PHP-Parser/test/code/prettyPrinter/expr/
H A Doperators.test5 $a ** $b;
7 ++$a;
8 --$a;
9 $a++;
10 $a--;
12 @$a;
13 ~$a;
14 -$a;
15 +$a;
17 (int) $a;
[all …]
H A Dvariables.test5 $a;
6 $$a;
7 ${$a};
8 $a->b;
9 $a->b();
14 $$a->b;
18 $a::B;
28 a();
38 global $a, $$a;
40 $a;
[all …]
H A Dyield.test8 yield $a;
9 yield $a => $b;
10 $a = yield;
11 $a = yield $b;
13 yield from $a;
25 yield -$a;
27 yield * $a;
33 yield $a;
35 $a = yield;
50 yield -$a;
[all …]
H A Dparentheses.test30 ++$a + $b;
31 $a + $b++;
44 -(-$a);
45 +(+$a);
46 -(--$a);
47 +(++$a);
51 !$a = $b;
93 -(-$a);
94 +(+$a);
95 -(--$a);
[all …]
H A Dliterals.test45 'a';
46 'a
49 'a\b';
50 'a\\';
55 "a";
59 "$a";
65 "a$a[b]c";
125 'a';
126 'a
134 "a";
[all …]
H A Dnullsafe.test5 $a?->b;
6 $a?->b($c);
7 $a?->b?->c;
9 $a?->b($c)();
10 new $a?->b;
11 "{$a?->b}";
12 "$a?->b";
14 $a?->b;
15 $a?->b($c);
16 $a?->b?->c;
[all …]
H A Dlist.test5 list() = $a;
6 list($a) = $b;
7 list($a, $b, $c) = $d;
8 list(, $a) = $b;
9 list(, , $a, , $b) = $c;
10 list(list($a)) = $b;
13 list() = $a;
14 list($a) = $b;
15 list($a, $b, $c) = $d;
16 list(, $a) = $b;
[all …]
H A DarrayDestructuring.test5 [$a, $b] = [$c, $d];
6 [, $a, , , $b, ,] = $foo;
7 [, [[$a]], $b] = $bar;
8 ['a' => $b, 'b' => $a] = $baz;
10 [$a, $b] = [$c, $d];
11 [, $a, , , $b, ] = $foo;
12 [, [[$a]], $b] = $bar;
13 ['a' => $b, 'b' => $a] = $baz;
H A Dcall.test5 f($a);
6 f(&$a);
7 f(...$a);
8 f($a, &$b, ...$c);
10 f($a);
11 f(&$a);
12 f(...$a);
13 f($a, &$b, ...$c);
H A Darrow_function.test5 fn($a) => $a;
11 fn($a, $b) => $a and $b;
12 fn($a, $b) => $a && $b;
14 fn($a) => $a;
20 fn($a, $b) => $a and $b;
21 fn($a, $b) => $a && $b;
H A Dintrinsics.test5 isset($a, $a[$b]);
6 empty($a);
8 unset($a, $a[$b]);
18 isset($a, $a[$b]);
19 empty($a);
21 unset($a, $a[$b]);
H A DanonymousClass.test7 new class($a) extends A {
8 private $a;
9 public function __construct($a) {
10 $this->a = $a;
21 new class($a) extends A
23 private $a;
24 public function __construct($a)
26 $this->a = $a;
/PHP-Parser/test/code/formatPreservation/
H A Darrow_function.test4 fn($a)
6 $a;
11 fn($a)
17 $a
18 ) => $a;
24 $a, $b
29 $a
32 $a;
41 fn($a)
98 fn&($a): int => $a;
[all …]
H A Dfixup.test4 $a ** $b * $c;
5 $a + $b * $c;
6 $a * $b + $c;
7 $a ? $b : $c;
8 ($a ** $b) * $c;
9 ( $a ** $b ) * $c;
10 !$a = $b;
30 ($a = $b) ? $a = $b : ($a = $b);
33 !$a = $b;
71 $a ();
[all …]
/PHP-Parser/test/code/prettyPrinter/stmt/
H A Dfunction_signatures.test8 function f2($a, $b);
9 function f3(&$a);
10 function f4(A\B $a);
11 function f4(array $a);
13 function f6(&$a);
14 function f7(...$a);
15 function f8(&...$a);
16 function f9(A &$a);
18 function f11(A &$a);
29 function f3(&$a);
[all …]
H A Dglobal_static_variables.test5 global $a, $$a, ${$a[$a]};
6 static $a, $b;
7 static $a = 'foo', $b = 'bar';
9 global $a, ${$a}, ${$a[$a]};
10 static $a, $b;
11 static $a = 'foo', $b = 'bar';
/PHP-Parser/test/code/parser/expr/
H A Dcast.test4 (array) $a;
5 (bool) $a;
6 (boolean) $a;
7 (real) $a;
8 (double) $a;
9 (float) $a;
10 (int) $a;
11 (integer) $a;
12 (object) $a;
13 (string) $a;
[all …]
H A Dmath.test6 ~$a;
7 +$a;
8 -$a;
11 $a & $b;
12 $a | $b;
13 $a ^ $b;
14 $a . $b;
15 $a / $b;
16 $a - $b;
17 $a % $b;
[all …]
H A Dcomparison.test4 $a < $b;
5 $a <= $b;
6 $a > $b;
7 $a >= $b;
8 $a == $b;
9 $a === $b;
10 $a != $b;
11 $a !== $b;
12 $a <=> $b;
13 $a instanceof B;
[all …]
H A Dassign.test5 $a = $b;
8 $a &= $b;
9 $a |= $b;
10 $a ^= $b;
11 $a .= $b;
12 $a /= $b;
13 $a -= $b;
34 ++$a;
35 $a++;
36 --$a;
[all …]
H A Dlogic.test6 $a && $b;
7 $a || $b;
8 !$a;
9 !!$a;
12 $a and $b;
13 $a or $b;
14 $a xor $b;
17 $a && $b || $c && $d;
18 $a && ($b || $c) && $d;
20 $a = $b || $c;
[all …]
H A Dvariable.test5 $a;
6 ${'a'};
8 $$a;
9 $$$a;
10 $$a['b'];
15 name: a
21 value: a
39 name: a
47 name: a
56 name: a
/PHP-Parser/test/code/parser/expr/fetchAndCall/
H A DfuncCall.test6 a();
7 $a();
8 ${'a'}();
9 $$a();
10 $$$a();
11 $a['b']();
12 $a->b['c']();
15 a()['b'];
21 name: a
33 name: a
[all …]
H A DobjectAccess.test6 $a->b;
7 $a->b['c'];
10 $a->b();
11 $a->{'b'}();
12 $a->$b();
13 $a->$b['c']();
16 $a->b()['c'];
22 name: a
50 name: a
65 name: a
[all …]
/PHP-Parser/test/code/parser/scalar/
H A DencapsedNegVarOffset.test4 "$a[-0]";
5 "$a[-1]";
6 "$a[-0x0]";
7 "$a[-00]";
8 "$a[@@{ -PHP_INT_MAX - 1 }@@]";
16 name: a
30 name: a
44 name: a
58 name: a
72 name: a

Completed in 23 milliseconds

1234567