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

Function into

__tests__/require-default.test.ts:176–181  ·  view source on GitHub ↗
(target: { id: string }, kinds: Edge['kind'][])

Source from the content-addressed store, hash-verified

174
175/** The edges into `target`, as `kind source-file resolvedBy`. */
176const into = (target: { id: string }, kinds: Edge['kind'][]) =>
177 cg
178 .getIncomingEdges(target.id)
179 .filter((e) => kinds.includes(e.kind))
180 .map((e) => `${e.kind} ${cg.getNode(e.source)!.filePath} ${(e.metadata as { resolvedBy?: string }).resolvedBy}`)
181 .sort();
182
183/** The call and instantiation edges out of a file's nodes, as `kind target-file:target-name`. */
184const outOf = (file: string) =>

Callers 1

Calls 3

mapMethod · 0.80
getNodeMethod · 0.80
getIncomingEdgesMethod · 0.65

Tested by

no test coverage detected