Names of the source nodes of the given edges, sorted.
(cg: CodeGraph, edges: Edge[])
| 46 | |
| 47 | /** Names of the source nodes of the given edges, sorted. */ |
| 48 | function sourceNames(cg: CodeGraph, edges: Edge[]): string[] { |
| 49 | const names: string[] = []; |
| 50 | for (const e of edges) { |
| 51 | const n = cg.getNode(e.source); |
| 52 | if (n) names.push(n.name); |
| 53 | } |
| 54 | return names.sort(); |
| 55 | } |
| 56 | |
| 57 | describe('Function-as-value capture (#756)', () => { |
| 58 | let tmpDir: string | undefined; |
no test coverage detected