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

Function changes

src/resolution/parameter-flow.ts:648–651  ·  view source on GitHub ↗
(a: (typeof answers)[number])

Source from the content-addressed store, hash-verified

646 const drops = (flow: TypedFlow, site: FlowSite, target: FlowMethod | null): boolean =>
647 target === null && site.edgeId !== undefined && !site.viaFlow && adapter.answersItself(flow.value, site.method);
648 const changes = (a: (typeof answers)[number]): boolean => a.flow.sites.some((site, i) => {
649 const target = a.targets[i]!;
650 return site.viaFlow || drops(a.flow, site, target) || (target !== null && target.id !== site.targetId);
651 });
652 const rests = new Set(answers.filter(changes).flatMap((a) => [...a.flow.through]));
653 const written = sync ? sync.record.written : rests.size > 0 ? await adapter.written(rests, files) : new Map() as FlowWritten;
654 if ([...rests].some((name) => sync && !written.has(name))) return null;

Callers

nothing calls this directly

Calls 1

dropsFunction · 0.85

Tested by

no test coverage detected