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

Function targets

__tests__/dart-primary-constructors.test.ts:263–268  ·  view source on GitHub ↗
(file: string, from: string, kind: string)

Source from the content-addressed store, hash-verified

261 return found!;
262 };
263 const targets = (file: string, from: string, kind: string): string[] =>
264 [...new Set(graph
265 .getOutgoingEdgesFrom([node(file, from).id])
266 .filter((e) => e.kind === kind)
267 .map((e) => graph.getNode(e.target)!.qualifiedName))]
268 .sort();
269
270 // No class is named `const`, and each is found by its own name.
271 expect(graph.getNodesInFile('lib/forms.dart').filter((n) => n.name === 'const')).toEqual([]);

Calls 4

mapMethod · 0.80
getNodeMethod · 0.80
nodeFunction · 0.70
getOutgoingEdgesFromMethod · 0.45

Tested by

no test coverage detected