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

Method containerOf

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

Source from the content-addressed store, hash-verified

4026 const MAX_NOTES = 3;
4027 const rel = (p: string) => p.replace(/\\/g, '/');
4028 const containerOf = (m: Node): Node | null => {
4029 try { const ce = cg.getIncomingEdges(m.id).find((e) => e.kind === 'contains'); return ce ? cg.getNode(ce.source) : null; }
4030 catch { return null; }
4031 };
4032 // A supertype dispatches only a member it (or an ancestor) declares. Without
4033 // this, any name shared by enough subclasses read as dispatch through their
4034 // 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