A site that folds into a helper.
(fn: string, guards: BranchGuard[] = [], extra: Partial<ProgramSite> = {})
| 34 | |
| 35 | /** A site that folds into a helper. */ |
| 36 | function into(fn: string, guards: BranchGuard[] = [], extra: Partial<ProgramSite> = {}): ProgramSite { |
| 37 | const line = nextLine++; |
| 38 | return { into: fn, at: { line, column: 0, end: { line, column: 40 } }, guards, ...extra }; |
| 39 | } |
| 40 | |
| 41 | function program(sites: Record<string, ProgramSite[]>, replies: string[] = [], into: Record<string, string> = {}) { |
| 42 | nextLine = 1; |
no outgoing calls
no test coverage detected