Lines Matching refs:y
175 list($trace, $x, $y) = $this->calculateTrace($old, $new);
176 return $this->extractDiff($trace, $x, $y, $old, $new);
194 $y = $x - $k;
195 while ($x < $n && $y < $m && ($this->isEqual)($a[$x], $b[$y])) {
197 $y++;
201 if ($x >= $n && $y >= $m) {
202 return [$trace, $x, $y];
209 private function extractDiff(array $trace, int $x, int $y, array $a, array $b) { argument
213 $k = $x - $y;
224 while ($x > $prevX && $y > $prevY) {
225 $result[] = new DiffElem(DiffElem::TYPE_KEEP, $a[$x-1], $b[$y-1]);
227 $y--;
239 while ($y > $prevY) {
240 $result[] = new DiffElem(DiffElem::TYPE_ADD, null, $b[$y-1]);
241 $y--;