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

Function cliDefinition

src/bin/codegraph.ts:445–451  ·  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

443
444/** Attribute a group's edges to every overload of this definition. */
445function cliDefinition(group: Node[]) {
446 const head = group[0]!;
447 return {
448 definition: { ...cliNode(head), id: head.id, qualifiedName: head.qualifiedName, language: head.language },
449 roots: group.map((node) => node.id),
450 };
451}
452
453type IndexResult = {
454 success: boolean;

Callers 1

mainFunction · 0.85

Calls 2

cliNodeFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected