MCPcopy Create free account
hub / github.com/bigcode-project/jupytercoder / skipRemoveSuperset

Function skipRemoveSuperset

src/diff.js:1459–1470  ·  view source on GitHub ↗
(state, removeChanges, delta)

Source from the content-addressed store, hash-verified

1457 }
1458
1459 function skipRemoveSuperset(state, removeChanges, delta) {
1460 for (var i = 0; i < delta; i++) {
1461 var changeContent = removeChanges[removeChanges.length - delta + i].substr(1);
1462
1463 if (state.lines[state.index + i] !== ' ' + changeContent) {
1464 return false;
1465 }
1466 }
1467
1468 state.index += delta;
1469 return true;
1470 }
1471
1472 function calcOldNewLineCount(lines) {
1473 var oldLines = 0;

Callers 1

mutualChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected