What the first `#include` of `file` names.
(graph: CodeGraph, file: string)
| 120 | |
| 121 | /** What the first `#include` of `file` names. */ |
| 122 | function includeTarget(graph: CodeGraph, file: string): string[] { |
| 123 | return graph.getNodesInFile(file).filter((n) => n.kind === 'file') |
| 124 | .flatMap((n) => graph.getOutgoingEdges(n.id)) |
| 125 | .filter((e) => e.kind === 'imports') |
| 126 | .map((e) => graph.getNode(e.target)!.filePath); |
| 127 | } |
| 128 | |
| 129 | /** What a full index of C_BEFORE holds under a compile database naming `dir`, which names the folder it's in. */ |
| 130 | async function fullIndexWithDb(dir: string): Promise<string[]> { |
no test coverage detected