MCPcopy Index your code
hub / github.com/codeaashu/claude-code / txn

Method txn

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}
774

Callers 3

renderMethod · 0.95
renderFrameSliceFunction · 0.80
moveCursorToFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected