(filePath: string, err: unknown)
| 1375 | }; |
| 1376 | |
| 1377 | const recordParseFailure = (filePath: string, err: unknown): void => { |
| 1378 | processed++; |
| 1379 | filesErrored++; |
| 1380 | errors.push({ |
| 1381 | message: err instanceof Error ? err.message : String(err), |
| 1382 | filePath, |
| 1383 | severity: 'error', |
| 1384 | code: 'parse_error', |
| 1385 | }); |
| 1386 | onProgress?.({ phase: 'parsing', current: processed, total }); |
| 1387 | }; |
| 1388 | |
| 1389 | // Commit buffered parses to the DB in file order, advancing the cursor over |
| 1390 | // contiguous completed results. Runs after each parse settles (and once more |
nothing calls this directly
no test coverage detected