MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / replacement

Function replacement

api/diffview.ts:230–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228 b = d;
229 },
230 replacement = function diffview_opcodes_replacement(): void {
231 do {
232 table[one[c]][0] = table[one[c]][0] - 1;
233 table[two[d]][1] = table[two[d]][1] - 1;
234 c = c + 1;
235 d = d + 1;
236 } while (c < lena && d < lenb && table[one[c]][1] > 0 && table[two[d]][0] > 0);
237 fix(["replace", a, c, b, d]);
238 a = c - 1;
239 b = d - 1;
240 },
241 replaceUniques = function diffview_opcodes_replaceUniques(): void {
242 do {
243 table[one[c]][0] = table[one[c]][0] - 1;

Callers 1

codeBuildFunction · 0.85

Calls 1

fixFunction · 0.85

Tested by

no test coverage detected