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

Function node

__tests__/cpp-base-class-lookup.test.ts:371–376  ·  view source on GitHub ↗
(qualifiedName: string, file: string)

Source from the content-addressed store, hash-verified

369});
370
371function node(qualifiedName: string, file: string): Node {
372 const name = qualifiedName.split('::').pop()!;
373 const found = cg.getNodesByName(name).filter((n) => n.qualifiedName === qualifiedName && n.filePath === file && n.kind !== 'import');
374 expect(found, `${qualifiedName} in ${file}`).toHaveLength(1);
375 return found[0]!;
376}
377
378/** The supertypes of a class, as `kind qualifiedName (file) resolvedBy`. */
379function supertypes(qualifiedName: string, file: string): string[] {

Callers 5

supertypesFunction · 0.70
unresolvedFunction · 0.70
overridesFunction · 0.70
ancestorsFunction · 0.70

Calls 1

getNodesByNameMethod · 0.65

Tested by

no test coverage detected