MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / containerOf

Method containerOf

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

Source from the content-addressed store, hash-verified

2188 const MAX_NOTES = 3;
2189 const rel = (p: string) => p.replace(/\\/g, '/');
2190 const containerOf = (m: Node): Node | null => {
2191 try { const ce = cg.getIncomingEdges(m.id).find((e) => e.kind === 'contains'); return ce ? cg.getNode(ce.source) : null; }
2192 catch { return null; }
2193 };
2194 const notes: string[] = [];
2195 const seenSuper = new Set<string>();
2196 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