What a full index of C_BEFORE holds under a compile database naming `dir`, which names the folder it's in.
(dir: string)
| 154 | |
| 155 | /** What a full index of C_BEFORE holds under a compile database naming `dir`, which names the folder it's in. */ |
| 156 | async function fullIndexWithDb(dir: string): Promise<string[]> { |
| 157 | const root = tempRoot(); |
| 158 | write(root, { ...C_BEFORE, 'compile_commands.json': compileDb(root, dir) }); |
| 159 | return stateOf(root, await index(root)); |
| 160 | } |
| 161 | |
| 162 | /** Index `before`, write `after` over it, sync; return the graph and what a full index of the final tree holds. */ |
| 163 | async function syncEdit(before: Files, after: Files): Promise<{ root: string; graph: CodeGraph; full: string[] }> { |