mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
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:
co-authored by
Jon Ross-Perkins
Carbon Infra Bot
parent
f9ab963bd6
commit
bf9219d30e
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user