Check support for form literals and :? bindings (#6747)

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
Co-authored-by: Carbon Infra Bot <carbon-external-infra@google.com>
This commit is contained in:
Geoff Romer
2026-02-26 23:01:24 +00:00
committed by GitHub
co-authored by Jon Ross-Perkins Carbon Infra Bot
parent f9ab963bd6
commit bf9219d30e
33 changed files with 1115 additions and 313 deletions
+5
View File
@@ -137,6 +137,11 @@ auto GetConstType(Context& context, SemIR::TypeInstId inner_type_id)
return GetTypeImpl<SemIR::ConstType>(context, inner_type_id);
}
auto GetTypeComponent(Context& context, SemIR::InstId form_inst_id)
-> SemIR::TypeId {
return GetTypeImpl<SemIR::TypeComponentOf>(context, form_inst_id);
}
auto GetQualifiedType(Context& context, SemIR::TypeId type_id,
SemIR::TypeQualifiers quals) -> SemIR::TypeId {
if (quals.HasAnyOf(SemIR::TypeQualifiers::Const)) {