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

Function cliDefinition

src/bin/codegraph.ts:425–431  ·  view source on GitHub ↗

Attribute a group's edges to every overload of this definition.

(group: Node[])

Source from the content-addressed store, hash-verified

423
424/** Attribute a group's edges to every overload of this definition. */
425function cliDefinition(group: Node[]) {
426 const head = group[0]!;
427 return {
428 definition: { ...cliNode(head), id: head.id, qualifiedName: head.qualifiedName, language: head.language },
429 roots: group.map((node) => node.id),
430 };
431}
432
433type IndexResult = {
434 success: boolean;

Callers 1

mainFunction · 0.85

Calls 2

cliNodeFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected