Repository navigation
Commit 52dfd1f
Reset sticky diagnostic state after a rejected InstantiateTemplate
The rejection (e.g. a type argument for a non-type parameter) emits its
error diagnostic outside any incremental parse, and DiagnosticsEngine's
ErrorOccurred flag is sticky: the next IncrementalParser::Parse reported
the stale flag as its own failure and then soft-reset it, poisoning
exactly one parse. Contain the rejection with a DiagnosticErrorTrap-based
RAII that restores a clean diagnostic state when the instantiation
introduced errors - the same cleanup IncrementalParser performs on a real
parse failure and InstantiateFunctionDefinition performs inline.
Co-developed-with-the-help-of: Claude Code (Fable 5, human in the loop)1 parent 1cfe7ee commit 52dfd1f
2 files changed
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5696 | 5696 | | |
5697 | 5697 | | |
5698 | 5698 | | |
| 5699 | + | |
| 5700 | + | |
| 5701 | + | |
| 5702 | + | |
| 5703 | + | |
| 5704 | + | |
| 5705 | + | |
| 5706 | + | |
| 5707 | + | |
| 5708 | + | |
| 5709 | + | |
| 5710 | + | |
| 5711 | + | |
| 5712 | + | |
| 5713 | + | |
| 5714 | + | |
| 5715 | + | |
| 5716 | + | |
| 5717 | + | |
| 5718 | + | |
| 5719 | + | |
| 5720 | + | |
| 5721 | + | |
| 5722 | + | |
| 5723 | + | |
| 5724 | + | |
| 5725 | + | |
| 5726 | + | |
| 5727 | + | |
5699 | 5728 | | |
5700 | 5729 | | |
5701 | 5730 | | |
| |||
5793 | 5822 | | |
5794 | 5823 | | |
5795 | 5824 | | |
| 5825 | + | |
| 5826 | + | |
| 5827 | + | |
| 5828 | + | |
5796 | 5829 | | |
5797 | 5830 | | |
5798 | 5831 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1311 | 1311 | | |
1312 | 1312 | | |
1313 | 1313 | | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
1314 | 1338 | | |
1315 | 1339 | | |
1316 | 1340 | | |
| |||
0 commit comments