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

Function defined

src/resolution/cpp-supertypes.ts:404–404  ·  view source on GitHub ↗
(nodes: Node[])

Source from the content-addressed store, hash-verified

402 const all = context.getNodesByQualifiedName(name).filter((n) => isCFamily(n) && TYPE_KINDS.has(n.kind));
403 if (all.length <= 1) return all[0];
404 const defined = (nodes: Node[]): Node[] => nodes.filter((n) => n.kind !== 'type_alias');
405 const seen = all.filter(visible);
406 const own = seen.filter((n) => n.filePath === site.file);
407 // (Several in the file: the `#if` arms of one type, or the partial

Callers 1

declarationNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected