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

Method containerOf

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

Source from the content-addressed store, hash-verified

4044 const MAX_NOTES = 3;
4045 const rel = (p: string) => p.replace(/\\/g, '/');
4046 const containerOf = (m: Node): Node | null => {
4047 try { const ce = cg.getIncomingEdges(m.id).find((e) => e.kind === 'contains'); return ce ? cg.getNode(ce.source) : null; }
4048 catch { return null; }
4049 };
4050 // A supertype dispatches only a member it (or an ancestor) declares. Without
4051 // this, any name shared by enough subclasses read as dispatch through their
4052 // common base: on vscode the query word `extension`, a getter on unrelated

Callers

nothing calls this directly

Calls 2

getNodeMethod · 0.80
getIncomingEdgesMethod · 0.65

Tested by

no test coverage detected