mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user