Jon Ross-Perkins
e7b68572fa
Consolidate post-check logic ( #5003 )
...
Right now, some post-run logic is does in `Run()`
(`CheckRequiredDefinitions();` and
`context_.sem_ir().set_has_errors(unit_and_imports_->err_tracker.seen_error());`)
whereas other parts are done by `Finalize`. Noting the goal to move
things off `Context`, this consolidates into a new `FinishRun`. Note
#4962 is adding another bit of post-run that can be consolidated in;
this seems likely to keep growing slowly.
Note this also creates more parity with mutation source, like the
`context_.scope_stack().Pop();` matches the push done by
`CheckUnit::ImportCurrentPackage` and
`context_.inst_block_stack().Pop()` was pushed in `CheckUnit::Run()`.
Also makes `exports()` more consistent with other Context APIs. Makes
`VerifyOnFinish` `const` so that it can't accidentally mutate state, and
is instead only validating that the Context is in its expected
configuration at completion.
2025-02-25 02:07:43 +00:00
..
2025-02-20 22:42:47 +00:00
2025-02-24 21:53:48 +00:00
2025-02-19 22:10:11 +00:00
2025-02-19 22:10:11 +00:00
2024-09-05 23:39:58 +00:00
2025-01-27 23:48:44 +00:00
2025-02-25 02:07:43 +00:00
2025-02-25 02:07:43 +00:00
2025-02-12 01:44:37 +00:00
2025-02-06 20:27:57 +00:00
2025-02-25 02:07:43 +00:00
2025-02-25 02:07:43 +00:00
2025-02-14 19:44:36 +00:00
2025-02-11 21:38:09 +00:00
2025-02-20 22:42:47 +00:00
2025-02-19 21:46:46 +00:00
2025-01-22 23:15:00 +00:00
2025-02-25 02:07:43 +00:00
2025-02-19 19:46:23 +00:00
2025-02-19 21:46:46 +00:00
2025-02-04 22:38:38 +00:00
2024-11-20 20:58:58 +00:00
2024-11-20 20:58:58 +00:00
2025-02-06 20:27:57 +00:00
2025-02-19 22:10:11 +00:00
2025-02-22 21:40:43 +00:00
2024-12-11 22:34:10 +00:00
2025-02-19 22:10:11 +00:00
2025-02-19 22:10:11 +00:00
2025-01-23 17:25:31 +00:00
2025-02-11 18:51:46 +00:00
2025-01-22 23:15:00 +00:00
2024-07-03 16:58:47 +00:00
2024-07-03 16:58:47 +00:00
2025-02-22 21:40:43 +00:00
2025-02-22 21:40:43 +00:00
2025-02-14 19:44:36 +00:00
2024-07-03 17:49:47 +00:00
2025-02-14 19:44:36 +00:00
2025-02-20 22:42:47 +00:00
2025-02-19 16:37:36 +00:00
2024-12-02 18:51:44 +00:00
2025-02-19 16:37:36 +00:00
2025-02-19 07:19:23 +00:00
2024-07-12 22:38:06 +00:00
2025-02-25 02:07:43 +00:00
2024-07-12 22:38:06 +00:00
2024-07-12 22:38:06 +00:00
2025-02-19 07:19:23 +00:00
2025-02-12 00:21:07 +00:00
2025-02-14 19:44:36 +00:00
2025-02-22 21:40:43 +00:00
2025-02-11 21:33:57 +00:00
2025-02-14 19:44:36 +00:00
2025-02-19 22:10:11 +00:00
2025-02-20 03:17:45 +00:00
2025-02-14 19:44:36 +00:00
2025-02-14 19:44:36 +00:00
2024-07-12 22:38:06 +00:00
2025-02-15 01:36:46 +00:00
2025-02-14 19:44:36 +00:00
2024-07-12 22:38:06 +00:00
2025-02-19 07:19:23 +00:00
2024-12-18 00:19:12 +00:00
2025-02-25 02:07:10 +00:00
2024-07-12 22:38:06 +00:00
2025-02-20 03:17:45 +00:00
2024-07-12 22:38:06 +00:00
2025-02-14 19:44:36 +00:00
2025-02-14 19:44:36 +00:00
2025-02-19 22:10:11 +00:00
2024-07-12 22:38:06 +00:00
2025-02-24 21:53:48 +00:00
2025-01-22 23:15:00 +00:00
2025-02-19 22:10:11 +00:00
2025-02-19 22:10:11 +00:00
2025-02-14 19:44:36 +00:00
2025-02-12 01:44:37 +00:00
2025-02-19 22:10:11 +00:00
2025-02-19 07:19:23 +00:00
2025-02-24 22:41:59 +00:00
2025-02-12 01:44:37 +00:00
2025-01-22 23:15:00 +00:00
2025-01-23 02:21:48 +00:00
2025-02-14 19:44:36 +00:00
2025-02-14 19:44:36 +00:00
2025-02-14 19:44:36 +00:00
2025-02-04 22:38:38 +00:00
2025-01-25 02:13:52 +00:00
2024-11-04 04:00:17 +00:00
2025-02-14 19:44:36 +00:00
2024-12-03 18:46:27 +00:00
2025-02-14 19:44:36 +00:00
2024-10-07 17:25:35 +00:00
2025-02-12 19:42:07 +00:00
2025-01-23 02:21:48 +00:00
2025-01-22 23:15:00 +00:00
2024-10-17 22:47:40 +00:00
2025-02-20 03:17:45 +00:00
2025-01-22 23:15:00 +00:00
2025-02-22 21:40:43 +00:00
2025-02-19 07:19:23 +00:00
2025-01-22 23:15:00 +00:00
2025-01-22 23:15:00 +00:00
2025-02-07 22:35:18 +00:00
2025-02-20 22:42:47 +00:00
2025-02-12 22:03:08 +00:00
2024-10-07 17:25:35 +00:00
2025-02-25 02:07:43 +00:00
2025-02-20 03:17:45 +00:00
2025-01-23 02:21:48 +00:00
2025-02-14 19:44:36 +00:00
2025-02-14 19:44:36 +00:00
2024-03-18 17:40:00 +00:00
2025-02-12 00:21:07 +00:00
2025-02-14 19:44:36 +00:00
2025-01-17 17:51:34 +00:00
2025-01-22 23:15:00 +00:00
2025-02-25 02:07:43 +00:00
2025-02-25 02:07:43 +00:00
2025-02-06 20:27:57 +00:00
2025-02-06 20:27:57 +00:00
2025-02-20 03:17:45 +00:00
2025-02-20 03:17:45 +00:00
2025-02-19 22:10:11 +00:00
2024-08-09 01:05:03 +00:00
2025-02-22 21:40:43 +00:00
2025-02-22 21:40:43 +00:00
2025-02-19 22:10:11 +00:00
2025-02-19 22:10:11 +00:00