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

Function relation

__tests__/ui-filecode-model.test.ts:64–76  ·  view source on GitHub ↗
(target: WireNodeRef, lines: number[], over: Partial<WireRelation> = {})

Source from the content-addressed store, hash-verified

62}
63
64function relation(target: WireNodeRef, lines: number[], over: Partial<WireRelation> = {}): WireRelation {
65 return {
66 node: target,
67 edgeKinds: ['calls'],
68 edges: lines.map((line) => ({ kind: 'calls', line, col: 4 })),
69 edgeCount: lines.length,
70 lines,
71 confidence: null,
72 uncertain: false,
73 synthesized: false,
74 ...over,
75 } as WireRelation;
76}
77
78function call(ownerId: string, ownerLine: number, rel: WireRelation): WireFileCall {
79 return { ownerId, ownerLine, relation: rel };

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected