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

Function admit

src/ui-server/api/node.ts:252–253  ·  view source on GitHub ↗
(child: Node | undefined)

Source from the content-addressed store, hash-verified

250 // again — and a member listed twice is a repeated key the viewer cannot draw.
251 const seen = new Set<string>([focal.id]);
252 const admit = (child: Node | undefined): child is Node =>
253 !!child && child.kind !== 'file' && !seen.has(child.id) && !!seen.add(child.id);
254 const direct: Array<{ node: Node; parentId: string; depth: number }> = [];
255 for (const edge of containsOut) {
256 const child = endpoints.get(edge.target);

Callers 1

buildMembersFunction · 0.85

Calls 2

hasMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected