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

Method containerOf

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

Source from the content-addressed store, hash-verified

2302 const MAX_NOTES = 3;
2303 const rel = (p: string) => p.replace(/\\/g, '/');
2304 const containerOf = (m: Node): Node | null => {
2305 try { const ce = cg.getIncomingEdges(m.id).find((e) => e.kind === 'contains'); return ce ? cg.getNode(ce.source) : null; }
2306 catch { return null; }
2307 };
2308 const notes: string[] = [];
2309 const seenSuper = new Set<string>();
2310 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