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

Method findDeadCode

src/index.ts:3238–3240  ·  view source on GitHub ↗

* Find unreferenced symbols — the RAW candidate set. * * Non-exported symbols of the given kinds with no incoming edge but * `contains`. That is a fact, not a claim: on this engine's own index it * returns ~2 500 symbols, of which about 20 are actually unreachable. The * rest are over

(kinds?: Node['kind'][])

Source from the content-addressed store, hash-verified

3236 * @returns Array of unreferenced nodes
3237 */
3238 findDeadCode(kinds?: Node['kind'][]): Node[] {
3239 return this.graphManager.findDeadCode(kinds);
3240 }
3241
3242 /**
3243 * Get complexity metrics for a node

Callers 1

graph.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected