Commit a346b38
feat(r8): Sort ambiguous no-range entries alphabetically (#87)
## Summary
- When multiple no-range entries with different original method names
all have line mappings (`original_startline.is_some()`), sort them
alphabetically by original method name
- Bare method entries (`original_startline.is_none()`) continue to
preserve original mapping file order
Fixes `test_single_line_no_line_number_stacktrace` — all 10 R8 line
number handling tests now pass.
## Test plan
- [x] All 138 tests + 11 doc tests pass
- [x] `test_single_line_no_line_number_stacktrace` now passes (ordering:
`main3` before `method3`)
- [x] `test_ambiguous_stacktrace` still passes (bare methods preserve
file order: `foo` before `bar`)
- [x] `make format` and `make lint` pass
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent fbb94bf commit a346b38
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1214 | 1214 | | |
1215 | 1215 | | |
1216 | 1216 | | |
| 1217 | + | |
1217 | 1218 | | |
1218 | 1219 | | |
1219 | 1220 | | |
| |||
1223 | 1224 | | |
1224 | 1225 | | |
1225 | 1226 | | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1226 | 1230 | | |
1227 | 1231 | | |
1228 | 1232 | | |
| |||
1268 | 1272 | | |
1269 | 1273 | | |
1270 | 1274 | | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
1271 | 1281 | | |
1272 | 1282 | | |
1273 | 1283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
| |||
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
| |||
413 | 417 | | |
414 | 418 | | |
415 | 419 | | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
416 | 426 | | |
417 | 427 | | |
418 | 428 | | |
| |||
0 commit comments