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

Method callerCount

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

Source from the content-addressed store, hash-verified

4803 const isTestPath = (p: string) => /(^|\/)(tests?|specs?|__tests__|testdata|mocks?|fixtures?)\//i.test(p) || /\.(test|spec)\.[a-z]+$/i.test(p);
4804 const bodyLines = (n: Node) => Math.max(0, (n.endLine ?? n.startLine) - n.startLine);
4805 const callerCount = (n: Node) => { try { return cg.getCallers(n.id).length; } catch { return 0; } };
4806 const tokens = exploreQueryTokens(matchQuery);
4807 // PascalCase tokens in the query are type/file disambiguators — when the
4808 // agent writes "DataRequest task validate", the `task`/`validate` it wants

Callers

nothing calls this directly

Calls 1

getCallersMethod · 0.45

Tested by

no test coverage detected