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

Function add

ui/src/lib/steps-model.ts:568–570  ·  view source on GitHub ↗
(id: string, stub: StepStub)

Source from the content-addressed store, hash-verified

566 const nodeById = new Map(layout.nodes.map((n) => [n.id, n]));
567 const pitch = NODE_HEIGHT + layerGap;
568 const add = (id: string, stub: StepStub): void => {
569 stubs.set(id, [...(stubs.get(id) ?? []), stub]);
570 };
571 for (const edge of layout.edges) {
572 const from = nodeById.get(edge.source);
573 const to = nodeById.get(edge.target);

Callers 1

packStubsFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected