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

Function normalizeKinds

src/graph/dead-code.ts:797–801  ·  view source on GitHub ↗
(requested: readonly NodeKind[] | undefined)

Source from the content-addressed store, hash-verified

795}
796
797function normalizeKinds(requested: readonly NodeKind[] | undefined): NodeKind[] {
798 if (!requested || requested.length === 0) return [...DEAD_CODE_KINDS];
799 const kinds = requested.filter((kind) => DEAD_CODE_ALLOWED_KINDS.has(kind));
800 return kinds.length > 0 ? [...new Set(kinds)] : [...DEAD_CODE_KINDS];
801}
802
803/**
804 * The type each candidate is declared in, for the candidates that are members.

Callers 1

buildDeadCodeReportFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected