Track declared form with an InstId instead of a ConstantId. (#7072)

This is mainly in order to track a location associated with the form.
This commit is contained in:
Geoff Romer
2026-04-16 23:14:31 +00:00
committed by GitHub
parent a6061d975c
commit af04d08965
14 changed files with 90 additions and 104 deletions
+2 -2
View File
@@ -176,8 +176,8 @@ static auto HandleAnyBindingPattern(Context& context, Parse::NodeId node_id,
context.decl_introducer_state_stack().innermost();
auto form_id = node_kind == Parse::FormBindingPattern::Kind
? context.constant_values().Get(type_expr.inst_id)
: SemIR::ConstantId::None;
? type_expr.inst_id
: SemIR::InstId::None;
// Adds a binding pattern for `node_id`, with the given kind and subpattern,
// and adds its name to the current context. The subpattern must not be