Commit a18f72c
committed
Constify
Split out the state mutation into a new `updateFor`
function that we call for diagnostic emission, allowing
`DiagnosticTransaction::hasErrors` to query the behavior without
mutating any state.DiagnosticState::determineBehavior
1 parent 98b1494 commit a18f72c
File tree
2 files changed
+17
-9
lines changed- include/swift/AST
- lib/AST
2 files changed
+17
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
622 | 625 | | |
623 | 626 | | |
624 | 627 | | |
| |||
646 | 649 | | |
647 | 650 | | |
648 | 651 | | |
649 | | - | |
| 652 | + | |
650 | 653 | | |
651 | 654 | | |
652 | 655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
1290 | | - | |
| 1290 | + | |
| 1291 | + | |
1291 | 1292 | | |
1292 | 1293 | | |
1293 | 1294 | | |
| |||
1334 | 1335 | | |
1335 | 1336 | | |
1336 | 1337 | | |
| 1338 | + | |
| 1339 | + | |
1337 | 1340 | | |
1338 | | - | |
1339 | | - | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1340 | 1344 | | |
1341 | 1345 | | |
1342 | | - | |
| 1346 | + | |
1343 | 1347 | | |
1344 | 1348 | | |
1345 | 1349 | | |
1346 | 1350 | | |
1347 | | - | |
| 1351 | + | |
1348 | 1352 | | |
1349 | 1353 | | |
1350 | | - | |
1351 | | - | |
| 1354 | + | |
1352 | 1355 | | |
1353 | 1356 | | |
1354 | 1357 | | |
| |||
1393 | 1396 | | |
1394 | 1397 | | |
1395 | 1398 | | |
| 1399 | + | |
| 1400 | + | |
1396 | 1401 | | |
1397 | 1402 | | |
1398 | 1403 | | |
| |||
0 commit comments