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

Method declaresShape

src/mcp/tools.ts:4873–4875  ·  view source on GitHub ↗
(n: Node)

Source from the content-addressed store, hash-verified

4871 const fileNodes = cg.getNodesInFile(fp);
4872 const interfaces = fileNodes.filter((n) => n.kind === 'interface');
4873 const declaresShape = (n: Node) =>
4874 (n.kind === 'property' || n.kind === 'method') &&
4875 interfaces.some((i) => n.startLine >= i.startLine && n.endLine <= i.endLine);
4876 for (const n of fileNodes) if (!declaresShape(n)) names.add(n.name.toLowerCase());
4877 } catch { /* unreadable file entry — treat as uncorroborated */ }
4878 fileNameSets.set(fp, names);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected