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

Function relationWhens

ui/src/lib/symbol-model.ts:88–95  ·  view source on GitHub ↗
(relation: WireRelation)

Source from the content-addressed store, hash-verified

86
87/** The distinct branch conditions across a relation's edges, at most three. */
88export function relationWhens(relation: WireRelation): string[] {
89 const out: string[] = [];
90 for (const edge of relation.edges) {
91 if (edge.when && !out.includes(edge.when)) out.push(edge.when);
92 if (out.length === 3) break;
93 }
94 return out;
95}
96
97/** The synthesizer that produced this relation's edge, when one did. */
98export function synthesizedBy(relation: WireRelation): string | null {

Callers 2

buildCalleeRailFunction · 0.85
buildCallerRailFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected