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

Method getUnreferencedNodes

src/index.ts:2453–2458  ·  view source on GitHub ↗

* Symbols nothing in the index points at, by kind — the candidate set the * dead code report (`src/graph/dead-code.ts`) applies its exclusions to. * * Every edge kind except `contains` counts as a reference, so a method is * not "reached" by the class that holds it. An unreferenced symbo

(
    kinds: readonly Node['kind'][],
    limit: number
  )

Source from the content-addressed store, hash-verified

2451 * yet a dead one: see {@link buildDeadCodeReport}.
2452 */
2453 getUnreferencedNodes(
2454 kinds: readonly Node['kind'][],
2455 limit: number
2456 ): Array<{ node: Node; generated: boolean }> {
2457 return this.queries.getUnreferencedNodes(kinds, limit);
2458 }
2459
2460 /**
2461 * Which of the given names are carried by more than one symbol, at least one

Calls

no outgoing calls

Tested by

no test coverage detected