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

Function sources

__tests__/dart-const-constructors.test.ts:215–220  ·  view source on GitHub ↗
(to: Node)

Source from the content-addressed store, hash-verified

213 .map((e) => graph.getNode(e.target)!.qualifiedName))]
214 .sort();
215 const sources = (to: Node): string[] =>
216 [...new Set(graph
217 .getIncomingEdgesTo([to.id])
218 .filter((e) => e.kind !== 'contains')
219 .map((e) => `${e.kind} ${graph.getNode(e.source)!.qualifiedName}`))]
220 .sort();
221
222 // Named `const` constructors and redirecting factories are methods named
223 // by the constructor, returning their class; the unnamed ones stay

Callers 1

Calls 3

mapMethod · 0.80
getNodeMethod · 0.80
getIncomingEdgesToMethod · 0.45

Tested by

no test coverage detected