mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 20:56:38 +00:00
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:
1 parent
23e5677c8e
commit
dc8f47e6ad
39 files changed
+506
-393
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user