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

Function withArgs

src/ui-server/api/steps.ts:457–460  ·  view source on GitHub ↗
(site: WireStepSite, caller: Node, at: { line?: number; column?: number })

Source from the content-addressed store, hash-verified

455 const loopsAt = (caller: Node, site: { line?: number; column?: number }) => reader.loops(caller, site);
456 const argsAt = (caller: Node, site: { line?: number; column?: number }) => reader.args(caller, site);
457 const withArgs = async (site: WireStepSite, caller: Node, at: { line?: number; column?: number }): Promise<WireStepSite> => {
458 const args = await argsAt(caller, at);
459 return args === null ? site : { ...site, args };
460 };
461 /** The call as written at a site, and what it passes — one read for both. */
462 const callAt = (caller: Node, site: { line?: number; column?: number; callee?: string }) => calls.callSite(caller, site);
463 /** A hop's position with its call's span and enclosing call, read from the tree; the bare position when unreadable. */

Callers 1

buildStepsFunction · 0.85

Calls 1

argsAtFunction · 0.70

Tested by

no test coverage detected