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

Function commonTokens

ui/src/lib/conditions.ts:149–151  ·  view source on GitHub ↗
(common: readonly string[])

Source from the content-addressed store, hash-verified

147
148/** The clauses every scenario shares, led by WHEN. */
149export function commonTokens(common: readonly string[]): WordToken[] {
150 return common.length === 0 ? [] : [KW('WHEN'), ...joinWith(common.map(clauseTokens), 'AND')];
151}
152
153export interface ScenarioRows<T> {
154 /** The clauses every site shares, in chain order — said once. */

Callers

nothing calls this directly

Calls 3

KWFunction · 0.85
joinWithFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected