(qualifiedName: string)
| 160 | }); |
| 161 | |
| 162 | function nodeId(qualifiedName: string): string { |
| 163 | const found = cg.getNodesInFiles(Object.keys(files)).filter((n) => n.qualifiedName === qualifiedName); |
| 164 | if (found.length !== 1) throw new Error(`${found.length} nodes named ${qualifiedName}`); |
| 165 | return found[0]!.id; |
| 166 | } |
| 167 | |
| 168 | /** The qualified names of what links to `qualifiedName` with an edge of `kind`. */ |
| 169 | function linkedFrom(qualifiedName: string, kind: 'references' | 'calls'): string[] { |
no test coverage detected