|
51 | 51 | * afternoon proving the sentence it quoted meant the opposite. |
52 | 52 | * |
53 | 53 | * This header used to state that as a property -- "cannot fabricate a lead". |
54 | | - * It was not one. Measured on 2026-08-21 (#10427) by diffing this scan's mask |
55 | | - * against `@typescript-eslint/parser`'s comment ranges over 4,733 files: 16 |
56 | | - * disagreed, and 15 of them in the FABRICATES direction, up to 10,252 comment |
57 | | - * bytes handed to a caller as live code in a single file. The cause was the |
58 | | - * template scan above; the same sweep after the fix disagrees on 0 files. |
| 54 | + * It was not one. Measured on 2026-08-21 (#10427): walk every |
| 55 | + * `.{ts,tsx,mts,cts,js,mjs,cjs,jsx}` file in the tree (minus `node_modules`, |
| 56 | + * `dist`, `.next`, `build`, `.turbo`, `coverage`), parse each with |
| 57 | + * `@typescript-eslint/parser` (`{ comment: true, range: true }`), and diff the |
| 58 | + * comment ranges it reports against this scan's `comment` array byte for byte. |
| 59 | + * Over 4,739 files, 16 disagreed -- 15 in the FABRICATES direction, up to |
| 60 | + * 10,252 comment bytes handed to a caller as live code in a single file. The |
| 61 | + * cause was the template scan above; the same sweep after the fix disagrees on |
| 62 | + * 0 files. |
59 | 63 | * |
60 | 64 | * The lesson is about the claim, not the bug. A failure DIRECTION is a |
61 | 65 | * property of an implementation, not of an intention, and this one cannot be |
62 | 66 | * read off the code -- it took an independent parser over the whole tree to |
63 | 67 | * find out which way the module actually failed. So the honest statement is |
64 | | - * the one that can be re-derived: the shapes below are pinned, the sweep that |
65 | | - * measured them is the way to check the rest, and neither direction is |
66 | | - * promised by construction. Re-run it after touching `scanSource`. |
| 68 | + * the one that can be re-derived: the shapes below are pinned, the sweep just |
| 69 | + * described is the way to check the rest, and neither direction is promised by |
| 70 | + * construction. Re-run it after touching `scanSource` -- and note that the |
| 71 | + * sweep is the STRONGER instrument of the two. A mutation that deleted the |
| 72 | + * brace counting inside `${...}` passed every case below AND the whole sweep, |
| 73 | + * because the tree did not happen to write the shape; the case that now holds |
| 74 | + * it was written from the mutation, not from the corpus. |
67 | 75 | */ |
68 | 76 |
|
69 | 77 | /** A character that can end an identifier -- i.e. a value, so `/` is division. */ |
|
0 commit comments