diff --git a/src/index.ts b/src/index.ts index 217be12..6a39882 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2041,7 +2041,17 @@ export class CodeGraph { } /** - * Find dead code (unreferenced symbols) + * 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 overrides, framework registrations, mis-resolved twins and + * references the extractor never recorded. + * + * For a list anybody should act on, use `buildDeadCodeReport` from + * `src/graph/dead-code.ts`, which applies the exclusions and counts every one + * of them. This method is kept as-is because it is a published API. * * @param kinds - Node kinds to check (default: functions, methods, classes) * @returns Array of unreferenced nodes