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

Function armWord

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

The word on a line out of a decision's point — the same one the tree's arms say.

(fork: Extract<WireItem, { kind: 'fork' }>, arm: WireArm)

Source from the content-addressed store, hash-verified

241
242/** The word on a line out of a decision's point — the same one the tree's arms say. */
243function armWord(fork: Extract<WireItem, { kind: 'fork' }>, arm: WireArm): string {
244 return armWords({ on: fork.on, arm: arm.when, form: fork.form, not: arm.not });
245}
246
247/**
248 * The row each step sits on: the longest run of "and then" from the anchor to

Callers 1

flowFunction · 0.85

Calls 1

armWordsFunction · 0.90

Tested by

no test coverage detected