(filePath: string, err: unknown)
| 1774 | }; |
| 1775 | |
| 1776 | const recordParseFailure = (filePath: string, err: unknown): void => { |
| 1777 | processed++; |
| 1778 | filesErrored++; |
| 1779 | errors.push({ |
| 1780 | message: err instanceof Error ? err.message : String(err), |
| 1781 | filePath, |
| 1782 | severity: 'error', |
| 1783 | code: 'parse_error', |
| 1784 | }); |
| 1785 | onProgress?.({ phase: 'parsing', current: processed, total }); |
| 1786 | }; |
| 1787 | |
| 1788 | // Commit buffered parses to the DB in file order, advancing the cursor over |
| 1789 | // contiguous completed results. Runs after each parse settles (and once more |
nothing calls this directly
no test coverage detected