Home
last modified time | relevance | path

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

/PHP-Parser/test/code/prettyPrinter/expr/
H A DnewVariable.test9 new (x->y);
10 new ((x)::$y);
12 $x instanceof ($y++);
19 new (x->y)();
20 new ((x)::$y)();
22 $x instanceof ($y++);
/PHP-Parser/lib/PhpParser/Internal/
H A DDiffer.php39 return $this->extractDiff($trace, $x, $y, $old, $new);
77 $y = $x - $k;
78 while ($x < $n && $y < $m && ($this->isEqual)($old[$x], $new[$y])) {
80 $y++;
84 if ($x >= $n && $y >= $m) {
85 return [$trace, $x, $y];
102 $k = $x - $y;
113 while ($x > $prevX && $y > $prevY) {
116 $y--;
128 while ($y > $prevY) {
[all …]
/PHP-Parser/test/code/formatPreservation/
H A DlistRemoval.test33 $stmts[0]->params[] = new Node\Param(new Expr\Variable('y'));
40 $y
68 $y;
73 $y;
77 { $y; }
82 { $y; }
86 { $y; }
95 $y;
105 $y;
110 $y;
H A DinsertionOfNullable.test10 &$y
29 $y;
46 function y()
61 $y
70 $y) {
106 array &$y = null
125 $y;
142 function y(): Y
157 $z => $y
166 $y) {
H A DmodifierChange.test38 = 'y',
39 private T2 $y
52 = 'y',
53 T2 $y
H A DanonClasses.test11 $new->args[] = new Expr\Variable('y');
15 ($x, $y)
H A Dindent.test30 $stmts[0]->stmts[] = new Stmt\Expression(new Expr\Variable('y'));
36 @@{"\t"}@@$y;
H A DremovalViaNull.test35 y
88 $y
92 (X $y)
188 (X $y)
H A DlistInsertion.test351 list($x, $y) = $z;
356 list($x, , $y) = $z;
/PHP-Parser/test/code/prettyPrinter/stmt/
H A Dproperty_promotion.test9 protected array $y = [],
18 …public function __construct(public float $x = 0.0, protected array $y = [], private string $z = 'h…
30 public string $y = "123",
43 public string $y = "123",
H A DmultiCatch.test7 $y;
15 $y;
H A Dattributes.test30 $y = #[A11] fn() => 0;
57 $y = #[A11] fn() => 0;
/PHP-Parser/test/code/parser/stmt/
H A DmultiCatch.test7 $y;
37 name: y
H A DnewInInitializer.test8 static $y = new Foo;
69 name: y
H A Dattributes.test30 $y = #[A11] fn() => 0;
275 name: y
/PHP-Parser/test/code/parser/stmt/class/
H A DshortEchoAsIdentifier.test6 x as y?><?= as my_echo;
37 name: y
H A Dproperty_promotion.test8 protected array $y = [],
65 name: y
/PHP-Parser/grammar/
H A DREADME.md4 * `php.y`: PHP 5-8 grammar written in a pseudo language
11 The `.y` file is a normal grammar in `kmyacc` (`yacc`) style, with some transformations
26 * The `--debug` option enables emission of debug symbols and creates the `y.output` file.
H A Dparser.template21 * * the grammar file grammar/php.y
/PHP-Parser/
H A D.editorconfig3 [*.y]
H A D.gitignore5 grammar/y.output
H A DCONTRIBUTING.md24 3. Add support for the new syntax in `grammar/php.y`. Regenerate the parser by running
H A DUPGRADE-5.0.md97 Previously, the `list($x) = $y` destructuring syntax was represented using a `Node\Expr\List_`
98 node, while `[$x] = $y` used a `Node\Expr\Array_` node, the same used for the creation (rather than
107 [$x] = $y;
124 name: y
143 name: y
H A DCHANGELOG.md86 typically used with code blocks, for example `if ($x) { $y; }` will be represented as previously,
/PHP-Parser/test/code/parser/
H A DformattingAttributes.test44 list($x) = $y;
45 [$x] = $y;
280 name: y
300 name: y

Completed in 104 milliseconds