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

Method containerOf

src/mcp/tools.ts:2939–2942  ·  view source on GitHub ↗
(m: Node)

Source from the content-addressed store, hash-verified

2937 const MAX_NOTES = 3;
2938 const rel = (p: string) => p.replace(/\\/g, '/');
2939 const containerOf = (m: Node): Node | null => {
2940 try { const ce = cg.getIncomingEdges(m.id).find((e) => e.kind === 'contains'); return ce ? cg.getNode(ce.source) : null; }
2941 catch { return null; }
2942 };
2943 const notes: string[] = [];
2944 const seenSuper = new Set<string>();
2945 for (const { token, family } of candidates) {

Callers

nothing calls this directly

Calls 2

getNodeMethod · 0.80
getIncomingEdgesMethod · 0.45

Tested by

no test coverage detected