Move type functions off Context (#4951)

This creates a new check/type.h for most logic, and also moves some
functions to TypeStore in sem_ir/type.h. My approach for TypeStore is to
focus on moving the read-only functions there.
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2025-02-13 23:02:38 +00:00
1 parent 23e5677c8e
commit dc8f47e6ad
39 files changed
+506 -393

No files matched your search

+2 -1
View File
@@ -551,7 +551,8 @@ auto DeductionContext::CheckDeductionIsComplete() -> bool {
auto param_type_const_id = SubstConstant(
context(), binding_type_id.AsConstantId(), substitutions_);
CARBON_CHECK(param_type_const_id.has_value());
binding_type_id = context().GetTypeIdForTypeConstant(param_type_const_id);
binding_type_id =
context().types().GetTypeIdForTypeConstantId(param_type_const_id);
// TODO: Suppress diagnostics here if `diagnose_` is false.
DiagnosticAnnotationScope annotate_diagnostics(