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

Function has

src/graph/dead-code.ts:1098–1101  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1096 const declared = declaring.get(name);
1097 if (!declared) continue;
1098 const has = (id: string): boolean =>
1099 declared.has(id) ||
1100 opaque.has(id) ||
1101 (inherits.get(id) ?? []).some((ancestor) => declared.has(ancestor));
1102 const contracts = new Set([...declared].flatMap((id) => interfacesOf.get(id) ?? []));
1103 for (const contract of contracts) {
1104 const own = implementers.get(contract);

Callers

nothing calls this directly

Calls 2

hasMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected