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

Function cliDefinition

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

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

Callers 1

mainFunction · 0.85

Calls 2

cliNodeFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected