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

Function cliDefinition

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

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

Callers 1

mainFunction · 0.85

Calls 2

cliNodeFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected