/PHP-Parser/test/code/prettyPrinter/expr/ |
H A D | operators.test | 5 $a ** $b; 33 $a * $b; 34 $a / $b; 35 $a % $b; 36 $a + $b; 37 $a - $b; 38 $a . $b; 41 $a < $b; 43 $a > $b; 51 $a & $b; [all …]
|
H A D | variables.test | 8 $a->b; 9 $a->b(); 10 $a->b($c); 11 $a->$b(); 14 $$a->b; 15 $a[$b]; 16 $a[$b](); 17 $$a[$b]; 19 $a::$b; 20 $a::b(); [all …]
|
H A D | parentheses.test | 30 ++$a + $b; 31 $a + $b++; 48 -(--$a)**$b; 49 +(++$a)**$b; 51 !$a = $b; 52 ++$a ** $b; 53 $a ** $b++; 83 ++$a + $b; 84 $a + $b++; 99 !$a = $b; [all …]
|
H A D | yield.test | 9 yield $a => $b; 11 $a = yield $b; 12 $a = yield $b => $c; 14 $a = yield from $b; 15 (yield $a) + $b; 17 [yield $a => $b]; 34 yield $a => $b; 36 $a = yield $b; 40 (yield $a) + $b; 61 yield $a => $b; [all …]
|
H A D | nullsafe.test | 5 $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 D | uvs.test | 7 A::$b::$c; 8 $A::$b[$c](); 9 $A::{$b[$c]}(); 10 A::$$b[$c](); 11 ($a->b)(); 12 (A::$b)(); 13 ('a' . 'b')::X; 21 A::$b::$c; 22 $A::$b[$c](); 25 ($a->b)(); [all …]
|
H A D | arrayDestructuring.test | 5 [$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 D | list.test | 6 list($a) = $b; 7 list($a, $b, $c) = $d; 8 list(, $a) = $b; 9 list(, , $a, , $b) = $c; 10 list(list($a)) = $b; 11 list(, list(, list(, $a), $b)) = $c; 14 list($a) = $b; 15 list($a, $b, $c) = $d; 16 list(, $a) = $b; 17 list(, , $a, , $b) = $c; [all …]
|
H A D | literals.test | 47 b'; 48 'a\'b'; 49 'a\b'; 57 "a'b"; 58 "a\b"; 60 "a$b"; 61 "$a$b"; 78 b'; 80 b'; 127 b'; [all …]
|
H A D | arrow_function.test | 11 fn($a, $b) => $a and $b; 12 fn($a, $b) => $a && $b; 20 fn($a, $b) => $a and $b; 21 fn($a, $b) => $a && $b;
|
/PHP-Parser/test/code/parser/expr/ |
H A D | comparison.test | 4 $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; 14 $a instanceof $b; [all …]
|
H A D | math.test | 11 $a & $b; 12 $a | $b; 13 $a ^ $b; 14 $a . $b; 15 $a / $b; 16 $a - $b; 17 $a % $b; 18 $a * $b; 19 $a + $b; 20 $a << $b; [all …]
|
H A D | assign.test | 5 $a = $b; 8 $a &= $b; 9 $a |= $b; 10 $a ^= $b; 11 $a .= $b; 12 $a /= $b; 13 $a -= $b; 14 $a %= $b; 15 $a *= $b; 16 $a += $b; [all …]
|
H A D | logic.test | 6 $a && $b; 7 $a || $b; 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; 21 $a = $b or $c; 30 name: b [all …]
|
H A D | nullsafe.test | 5 $a?->b; 6 $a?->b($c); 7 new $a?->b; 8 "{$a?->b}"; 9 "$a?->b"; 18 name: b 28 name: b 49 name: b 64 name: b 78 name: b
|
H A D | ternaryAndCoalesce.test | 6 $a ? $b : $c; 10 $a ? $b : $c ? $d : $e; 11 $a ? $b : ($c ? $d : $e); 14 $a ?? $b; 15 $a ?? $b ?? $c; 16 $a ?? $b ? $c : $d; 17 $a && $b ?? $c; 26 name: b 54 name: b 77 name: b [all …]
|
H A D | alternative_array_syntax.test | 5 $a{'b'}; 6 $a{'b'}(); 7 $a->b{'c'}; 8 $a->b(){'c'}; 9 A::$b{'c'}; 13 new $a->b{'c'}(); 152 $a{'b'}; 153 $a{'b'}(); 154 $a->b{'c'}; 155 $a->b(){'c'}; [all …]
|
/PHP-Parser/test/code/parser/expr/uvs/ |
H A D | staticProperty.test | 4 A::$b; 5 $A::$b; 6 'A'::$b; 7 ('A' . '')::$b; 8 'A'[0]::$b; 9 A::$$b; 11 A::$A::$b; 20 name: b 30 name: b 40 name: b [all …]
|
/PHP-Parser/test/code/parser/expr/fetchAndCall/ |
H A D | staticCall.test | 6 A::b(); 7 A::{'b'}(); 8 A::$b(); 9 A::$b['c'](); 10 A::$b['c']['d'](); 13 A::b()['c']; 16 static::b(); 17 $a::b(); 18 ${'a'}::b(); 19 $a['b']::c(); [all …]
|
H A D | objectAccess.test | 6 $a->b; 7 $a->b['c']; 10 $a->b(); 11 $a->{'b'}(); 12 $a->$b(); 13 $a->$b['c'](); 16 $a->b()['c']; 25 name: b 53 name: b 68 value: b [all …]
|
H A D | simpleArrayAccess.test | 5 $a['b']; 6 $a['b']['c']; 7 $a[] = $b; 8 ${$a}['b']; 17 value: b 28 value: b 45 name: b 57 value: b
|
H A D | newDeref.test | 5 (new A)->b; 6 (new A)->b(); 7 (new A)['b']; 8 (new A)['b']['c']; 21 name: b 35 name: b 51 value: b 66 value: b
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | fixup.test | 4 $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; 29 $a + $b + $c; 30 ($a = $b) ? $a = $b : ($a = $b); 33 !$a = $b; [all …]
|
H A D | namedArgs.test | 5 a: $b, 12 $b, 17 $b, 24 a: $b, 30 $b, 38 $b,
|
/PHP-Parser/lib/PhpParser/ |
H A D | Modifiers.php | 53 public static function verifyClassModifier(int $a, int $b): void { argument 54 assert(self::isValidModifier($b)); 55 if (($a & $b) != 0) { 57 'Multiple ' . self::toString($b) . ' modifiers are not allowed'); 60 if ($a & 48 && $b & 48) { 68 public static function verifyModifier(int $a, int $b): void { argument 69 assert(self::isValidModifier($b)); 70 if (($a & Modifiers::VISIBILITY_MASK && $b & Modifiers::VISIBILITY_MASK) || 76 if (($a & $b) != 0) { 78 'Multiple ' . self::toString($b) . ' modifiers are not allowed'); [all …]
|