(code: string, qualifiedName: string, kind = 'calls')
| 74 | `; |
| 75 | |
| 76 | function refsFrom(code: string, qualifiedName: string, kind = 'calls'): string[] { |
| 77 | const result = extractFromSource('Unit1.pas', code); |
| 78 | const from = result.nodes.find((n) => n.qualifiedName === qualifiedName); |
| 79 | return result.unresolvedReferences |
| 80 | .filter((r) => r.referenceKind === kind && r.fromNodeId === from?.id) |
| 81 | .map((r) => `${r.referenceName}:${r.line}`) |
| 82 | .sort(); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * The outer methods of chains through members and calls, which resolution |
no test coverage detected