What the first `#include` of `file` names.
(graph: CodeGraph, file: string)
| 121 | |
| 122 | /** What the first `#include` of `file` names. */ |
| 123 | function includeTarget(graph: CodeGraph, file: string): string[] { |
| 124 | return graph.getNodesInFile(file).filter((n) => n.kind === 'file') |
| 125 | .flatMap((n) => graph.getOutgoingEdges(n.id)) |
| 126 | .filter((e) => e.kind === 'imports') |
| 127 | .map((e) => graph.getNode(e.target)!.filePath); |
| 128 | } |
| 129 | |
| 130 | /** A site whose server serves public/, with a file of the same name at the project root. */ |
| 131 | const PHP_SITE: Files = { |
no test coverage detected