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

Method getTopCallingFiles

src/index.ts:2597–2601  ·  view source on GitHub ↗

* The graph's executable roots — files that run something at module level (a * CLI, a worker entry, a script), ranked by calls x the number of other files * they reach. A statement at the top level of a file is recorded as an edge * out of the *file* node, which is what makes these visible

(
    limit: number
  )

Source from the content-addressed store, hash-verified

2595 * out of the *file* node, which is what makes these visible at all.
2596 */
2597 getTopCallingFiles(
2598 limit: number
2599 ): Array<{ nodeId: string; filePath: string; calls: number; reaches: number; score: number }> {
2600 return this.queries.getTopCallingFiles(limit);
2601 }
2602
2603 /**
2604 * How many other files depend on each of the given files, counted through

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected