Home
last modified time | relevance | path

Searched refs:DiffElem (Results 1 – 4 of 4) sorted by relevance

/PHP-Parser/lib/PhpParser/Internal/
H A DDiffer.php33 * @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) {
158 while ($k < $c && $diff[$k]->type === DiffElem::TYPE_ADD) {
[all …]
H A DDiffElem.php8 class DiffElem { class
/PHP-Parser/test/PhpParser/Internal/
H A DDifferTest.php10 case DiffElem::TYPE_KEEP:
13 case DiffElem::TYPE_REMOVE:
16 case DiffElem::TYPE_ADD:
19 case DiffElem::TYPE_REPLACE:
75 new DiffElem(DiffElem::TYPE_KEEP, 'a', 'a'),
76 new DiffElem(DiffElem::TYPE_KEEP, 'b', 'b'),
/PHP-Parser/lib/PhpParser/
H A DPrettyPrinterAbstract.php5 use PhpParser\Internal\DiffElem; alias
821 if ($diffType === DiffElem::TYPE_KEEP || $diffType === DiffElem::TYPE_REPLACE) {
901 } elseif ($diffType === DiffElem::TYPE_ADD) {
944 } elseif ($diffType === DiffElem::TYPE_REMOVE) {

Completed in 12 milliseconds