|
@@ -36,9 +36,9 @@ auto PopNameComponent(Context& context, SemIR::InstId return_slot_pattern_id)
|
|
|
context.node_stack()
|
|
context.node_stack()
|
|
|
.PopForSoloNodeId<Parse::NodeKind::ImplicitParamListStart>();
|
|
.PopForSoloNodeId<Parse::NodeKind::ImplicitParamListStart>();
|
|
|
// Only use the end of implicit params if there weren't explicit params.
|
|
// Only use the end of implicit params if there weren't explicit params.
|
|
|
- if (last_param_node_id.has_value()) {
|
|
|
|
|
- last_param_node_id = params_loc_id;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ CARBON_CHECK(last_param_node_id.has_value(),
|
|
|
|
|
+ "Implicit parameters currently only occur before explicit "
|
|
|
|
|
+ "parameters, update and test when this changes");
|
|
|
} else {
|
|
} else {
|
|
|
implicit_param_patterns_id = SemIR::InstBlockId::None;
|
|
implicit_param_patterns_id = SemIR::InstBlockId::None;
|
|
|
}
|
|
}
|