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

Function armKey

src/ui-server/api/program.ts:356–358  ·  view source on GitHub ↗

`!` and the condition — the arm, not the decision: an `if` and its `else` differ here and nowhere else.

(g: BranchGuard)

Source from the content-addressed store, hash-verified

354
355/** `!` and the condition — the arm, not the decision: an `if` and its `else` differ here and nowhere else. */
356function armKey(g: BranchGuard): string {
357 return `${g.negated ? '!' : ''}${g.text}`;
358}
359
360function formOf(g: BranchGuard): 'if' | 'switch' | 'ternary' | 'try' {
361 switch (g.form) {

Callers 3

blockForFunction · 0.85
sameScopeFunction · 0.85
openScopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected