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

Function lineWords

ui/src/lib/program-model.ts:475–480  ·  view source on GitHub ↗
(e: OrderEdge)

Source from the content-addressed store, hash-verified

473 * simply goes on.
474 */
475export function lineWords(e: OrderEdge): string {
476 if (e.arm) return e.arm;
477 if (!e.when) return e.runs.length > 0 ? e.runs[e.runs.length - 1]! : '';
478 const text = joinTokens(whenTokens(e.when));
479 return text.length > EDGE_LABEL_MAX ? `${text.slice(0, EDGE_LABEL_MAX - 1)}…` : text;
480}
481
482/** The point's words: the condition once, as the view says conditions, asking. */
483function forkLabel(on: string): string {

Callers 2

shapeFunction · 0.90
buildOrderModelFunction · 0.85

Calls 2

joinTokensFunction · 0.90
whenTokensFunction · 0.70

Tested by 1

shapeFunction · 0.72