(target: WireNodeRef, lines: number[], over: Partial<WireRelation> = {})
| 62 | } |
| 63 | |
| 64 | function 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 | |
| 78 | function call(ownerId: string, ownerLine: number, rel: WireRelation): WireFileCall { |
| 79 | return { ownerId, ownerLine, relation: rel }; |
no test coverage detected