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

Function isHookShaped

src/graph/dead-code.ts:1016–1017  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

1014): Set<string> {
1015 const dropped = new Set<string>();
1016 const isHookShaped = (node: Node): boolean =>
1017 HOOK_KINDS.includes(node.kind) && BY_NAME_DISPATCH_LANGUAGES.has(node.language);
1018 const methods = nodes.filter(
1019 (node) => isHookShaped(node) && containers.get(node.id)?.kind === 'class'
1020 );

Callers 1

byNameHookCandidatesFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected