MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / forkLabel

Function forkLabel

ui/src/lib/program-model.ts:483–487  ·  view source on GitHub ↗

The point's words: the condition once, as the view says conditions, asking.

(on: string)

Source from the content-addressed store, hash-verified

481
482/** The point's words: the condition once, as the view says conditions, asking. */
483function forkLabel(on: string): string {
484 const text = whenWords(on);
485 if (!text) return '?';
486 return text.length > EDGE_LABEL_MAX ? `${text.slice(0, EDGE_LABEL_MAX - 1)}…?` : `${text}?`;
487}

Callers 1

buildOrderModelFunction · 0.85

Calls 1

whenWordsFunction · 0.90

Tested by

no test coverage detected