MCPcopy Create free account
hub / github.com/cloudflare/computer / emit

Function emit

packages/computer/src/tools/fs/edit-diff.ts:280–284  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

278 const trailing = nextIsChange;
279
280 const emit = (line: string) => {
281 output.push(` ${String(oldLineNum).padStart(w, " ")} ${line}`);
282 oldLineNum++;
283 newLineNum++;
284 };
285
286 if (leading && trailing) {
287 if (raw.length <= contextLines * 2) {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected