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

Method keep

src/resolution/index.ts:4591–4591  ·  view source on GitHub ↗
(nodes: Node[])

Source from the content-addressed store, hash-verified

4589 const { hiddenIds } = this.classExpressions()!;
4590 const hidden = (n: Node): boolean => hiddenIds.has(n.id);
4591 const keep = (nodes: Node[]): Node[] => (nodes.some(hidden) ? nodes.filter((n) => !hidden(n)) : nodes);
4592 const byKind = new Map<Node['kind'], Node[]>();
4593 const getMethodMatches = base.getMethodMatches;
4594 const iterateNodesByKind = base.iterateNodesByKind;

Callers

nothing calls this directly

Calls 1

hiddenFunction · 0.70

Tested by

no test coverage detected