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

Function formOf

src/ui-server/api/program.ts:360–371  ·  view source on GitHub ↗
(g: BranchGuard)

Source from the content-addressed store, hash-verified

358}
359
360function formOf(g: BranchGuard): 'if' | 'switch' | 'ternary' | 'try' {
361 switch (g.form) {
362 case 'case':
363 return 'switch';
364 case 'ternary':
365 return 'ternary';
366 case 'catch':
367 return 'try';
368 default:
369 return 'if';
370 }
371}
372
373/**
374 * How each arm ends, decided after its body is known: an arm whose last item

Callers 1

openScopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected