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

Function node

__tests__/pascal-helpers.test.ts:422–427  ·  view source on GitHub ↗
(qualifiedName: string)

Source from the content-addressed store, hash-verified

420 });
421
422 function node(qualifiedName: string) {
423 const found = ['class', 'method', 'function', 'type_alias'].flatMap((k) => cg!.getNodesByKind(k as never))
424 .filter((n) => n.qualifiedName === qualifiedName);
425 expect(found, qualifiedName).toHaveLength(1);
426 return found[0]!;
427 }
428
429 /** What the calls and references on the line marked `// marker` in `file` reach, as `kind Owner::Name`. */
430 function reached(file: string, marker: string): string[] {

Callers 2

edgesFunction · 0.70

Calls 1

getNodesByKindMethod · 0.65

Tested by

no test coverage detected