The routines that call a method, by name, once each.
(qualifiedName: string)
| 55 | |
| 56 | /** The routines that call a method, by name, once each. */ |
| 57 | function callerNamesOf(qualifiedName: string): string[] { |
| 58 | const target = graph!.getNodesByKind('method').find((n) => n.qualifiedName === qualifiedName); |
| 59 | if (!target) return []; |
| 60 | return [...new Set(graph!.getIncomingEdges(target.id).filter((e) => e.kind === 'calls') |
| 61 | .map((e) => graph!.getNode(e.source)?.name).filter((n): n is string => !!n))].sort(); |
| 62 | } |
| 63 | |
| 64 | describe('Pascal reference boundaries (#2550)', () => { |
| 65 | it('keeps calls to overloaded methods on their declared receiver', async () => { |
no test coverage detected