(qualifiedName: string)
| 240 | }); |
| 241 | |
| 242 | function nodeId(qualifiedName: string): string { |
| 243 | const found = cg.getNodesInFiles(Object.keys(files)).filter((n) => n.qualifiedName === qualifiedName); |
| 244 | if (found.length !== 1) throw new Error(`${found.length} nodes named ${qualifiedName}`); |
| 245 | return found[0]!.id; |
| 246 | } |
| 247 | |
| 248 | /** The qualified names of what links to `qualifiedName` with an edge of `kind`, one per edge. */ |
| 249 | function linkedFrom(qualifiedName: string, kind: 'references' | 'calls'): string[] { |
no test coverage detected