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

Function canonEdge

scripts/kernel-parity.mjs:143–150  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

141}
142
143function canonEdge(e) {
144 const out = { source: e.source, target: e.target, kind: e.kind };
145 if (e.line !== undefined) out.line = e.line;
146 if (e.column !== undefined) out.column = e.column;
147 if (e.provenance !== undefined) out.provenance = e.provenance;
148 if (e.metadata !== undefined) out.metadata = e.metadata;
149 return JSON.stringify(out);
150}
151
152function canonRef(r) {
153 // FULL object — a field only one path sets is a parity bug (the vitest

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected