MCPcopy Create free account
hub / github.com/Noumena-Network/code / recordVisibleCellAtIndexResult

Function recordVisibleCellAtIndexResult

src/ink/logUpdateRenderStats.ts:298–310  ·  view source on GitHub ↗
(
  kind: 'spacer' | 'empty' | 'fg-only-space-same-style' | 'visible',
)

Source from the content-addressed store, hash-verified

296}
297
298export function recordVisibleCellAtIndexResult(
299 kind: 'spacer' | 'empty' | 'fg-only-space-same-style' | 'visible',
300): void {
301 if (kind === 'spacer') {
302 logUpdateRenderStats.totalSpacerSkips += 1
303 } else if (kind === 'empty') {
304 logUpdateRenderStats.totalEmptySkips += 1
305 } else if (kind === 'fg-only-space-same-style') {
306 logUpdateRenderStats.totalFgOnlySpaceSameStyleSkips += 1
307 } else {
308 logUpdateRenderStats.totalVisibleReturns += 1
309 }
310}
311
312export function recordMoveCursorStats(
313 kind:

Callers 1

visibleCellAtIndexIntoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected