(files: Files)
| 38 | } |
| 39 | |
| 40 | async function index(files: Files): Promise<CodeGraph> { |
| 41 | root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-php-web-root-')); |
| 42 | write(root, files); |
| 43 | cg = await CodeGraph.init(root, { index: true }); |
| 44 | return cg; |
| 45 | } |
| 46 | |
| 47 | /** The files anything in `file` imports (the file, or its namespace), sorted. */ |
| 48 | function importsOf(graph: CodeGraph, file: string): string[] { |
no test coverage detected