MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / txn

Method txn

restored-src/src/ink/log-update.ts:765–772  ·  view source on GitHub ↗
(fn: (prev: Point) => [patches: Diff, next: Delta])

Source from the content-addressed store, hash-verified

763 }
764
765 txn(fn: (prev: Point) => [patches: Diff, next: Delta]): void {
766 const [patches, next] = fn(this.cursor)
767 for (const patch of patches) {
768 this.diff.push(patch)
769 }
770 this.cursor.x += next.dx
771 this.cursor.y += next.dy
772 }
773}

Callers 3

renderMethod · 0.95
renderFrameSliceFunction · 0.45
moveCursorToFunction · 0.45

Calls 2

fnFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected