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

Method keep

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

Source from the content-addressed store, hash-verified

4818 const { hiddenIds } = this.classExpressions()!;
4819 const hidden = (n: Node): boolean => hiddenIds.has(n.id);
4820 const keep = (nodes: Node[]): Node[] => (nodes.some(hidden) ? nodes.filter((n) => !hidden(n)) : nodes);
4821 const byKind = new Map<Node['kind'], Node[]>();
4822 const getMethodMatches = base.getMethodMatches;
4823 const iterateNodesByKind = base.iterateNodesByKind;

Callers

nothing calls this directly

Calls 1

hiddenFunction · 0.70

Tested by

no test coverage detected