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

Function at

__tests__/ui-steps-program.test.ts:25–28  ·  view source on GitHub ↗

A site at the next line, reaching a step.

(step: string, guards: BranchGuard[] = [], extra: Partial<ProgramSite> = {})

Source from the content-addressed store, hash-verified

23
24/** A site at the next line, reaching a step. */
25function at(step: string, guards: BranchGuard[] = [], extra: Partial<ProgramSite> = {}): ProgramSite {
26 const line = nextLine++;
27 return { step, link: `l:${step}`, at: { line, column: 0, end: { line, column: 40 } }, guards, ...extra };
28}
29
30/** A loop the site is written inside. */
31function loop(text: string, kind: SiteLoop['kind'] = 'each', branch = `l:${text}`): SiteLoop {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected