MCPcopy Index your code
hub / github.com/midrender/revideo / flush

Function flush

packages/2d/src/lib/code/CodeDiffer.ts:46–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 let after = '';
45 let lastAdded = false;
46 const flush = () => {
47 if (before !== '' || after !== '') {
48 fragments.push({
49 before,
50 after,
51 });
52 before = '';
53 after = '';
54 }
55 };
56
57 for (const line of diff.lines) {
58 if (line.aIndex === -1) {

Callers 1

defaultDifferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected