Lines Matching refs:DiffElem
33 * @return DiffElem[] Diff (edit script)
51 * @return DiffElem[] Diff (edit script), including replace operations
96 * @return DiffElem[]
114 $result[] = new DiffElem(DiffElem::TYPE_KEEP, $old[$x - 1], $new[$y - 1]);
124 $result[] = new DiffElem(DiffElem::TYPE_REMOVE, $old[$x - 1], null);
129 $result[] = new DiffElem(DiffElem::TYPE_ADD, null, $new[$y - 1]);
139 * @param DiffElem[] $diff
140 * @return DiffElem[]
147 if ($diffType !== DiffElem::TYPE_REMOVE) {
153 while ($j < $c && $diff[$j]->type === DiffElem::TYPE_REMOVE) {
158 while ($k < $c && $diff[$k]->type === DiffElem::TYPE_ADD) {
165 $newDiff[] = new DiffElem(
166 DiffElem::TYPE_REPLACE, $diff[$i + $n]->old, $diff[$j + $n]->new