A guard, with the fields the fold reads: which decision, which arm, how the arm leaves.
(text: string, opts: Partial<BranchGuard> = {})
| 18 | |
| 19 | /** A guard, with the fields the fold reads: which decision, which arm, how the arm leaves. */ |
| 20 | function g(text: string, opts: Partial<BranchGuard> = {}): BranchGuard { |
| 21 | return { text, negated: false, form: 'if', line: 1, branch: `b:${text}`, ...opts }; |
| 22 | } |
| 23 | |
| 24 | /** A site at the next line, reaching a step. */ |
| 25 | function at(step: string, guards: BranchGuard[] = [], extra: Partial<ProgramSite> = {}): ProgramSite { |
no outgoing calls
no test coverage detected