mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 14:31:04 +01:00
Add the form ID to FormParamPattern (#6928)
This enables some nice simplifications, and it's also a step toward a broader restructuring of binding and parameter patterns. Assisted-by: Gemini 3.1 Pro via Antigravity
This commit is contained in:
@@ -171,7 +171,8 @@ auto AddParamPattern(Context& context, SemIR::LocId loc_id,
|
||||
loc_id, SemIR::AnyParamPattern{
|
||||
.kind = param_pattern_kind,
|
||||
.type_id = context.insts().Get(pattern_id).type_id(),
|
||||
.subpattern_id = pattern_id}));
|
||||
.subpattern_id = pattern_id,
|
||||
.form_id = SemIR::ConstantId::None}));
|
||||
|
||||
return pattern_id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user