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

Method containerOf

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

Source from the content-addressed store, hash-verified

2230 const MAX_NOTES = 3;
2231 const rel = (p: string) => p.replace(/\\/g, '/');
2232 const containerOf = (m: Node): Node | null => {
2233 try { const ce = cg.getIncomingEdges(m.id).find((e) => e.kind === 'contains'); return ce ? cg.getNode(ce.source) : null; }
2234 catch { return null; }
2235 };
2236 const notes: string[] = [];
2237 const seenSuper = new Set<string>();
2238 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