mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 15:51:07 +01:00
Finish renaming BindName and related insts. (#6281)
Resolves the TODO from #6235
This commit is contained in:
@@ -74,11 +74,11 @@ static auto HandleAnyBindingPattern(Context& context, Parse::NodeId node_id,
|
||||
AddBindingPattern(context, name_node, name_id, cast_type_id,
|
||||
type_expr_region_id, pattern_inst_kind, is_template);
|
||||
|
||||
// TODO: If `is_generic`, then `binding.bind_id is a BindSymbolicName. Subst
|
||||
// TODO: If `is_generic`, then `binding.bind_id is a SymbolicBinding. Subst
|
||||
// the `.Self` of type `type` in the `cast_type_id` type (a `FacetType`)
|
||||
// with the `binding.bind_id` itself, and build a new pattern with that.
|
||||
// This is kind of cyclical. So we need to reuse the EntityNameId, which
|
||||
// will also reuse the CompileTimeBinding for the new BindSymbolicName.
|
||||
// will also reuse the CompileTimeBinding for the new SymbolicBinding.
|
||||
|
||||
if (name_id != SemIR::NameId::Underscore) {
|
||||
// Add name to lookup immediately, so it can be used in the rest of the
|
||||
|
||||
Reference in New Issue
Block a user