mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Rename type's GetInstId to GetTypeInstId, reflecting returned type (#6708)
Discussed briefly [on Discord](https://discord.com/channels/655572317891461132/655578254970716160/1470442830118912265), done to reduce confusion. Assisted-by: Google Antigravity with Gemini 3 Flash
This commit is contained in:
@@ -54,8 +54,8 @@ auto HandleParseNode(Context& context, Parse::StructLiteralFieldId node_id)
|
||||
auto name_id = context.node_stack().Peek<Parse::NodeCategory::MemberName>();
|
||||
|
||||
// Store the name for the type.
|
||||
auto value_type_inst_id =
|
||||
context.types().GetInstId(context.insts().Get(value_inst_id).type_id());
|
||||
auto value_type_inst_id = context.types().GetTypeInstId(
|
||||
context.insts().Get(value_inst_id).type_id());
|
||||
context.struct_type_fields_stack().AppendToTop(
|
||||
{.name_id = name_id, .type_inst_id = value_type_inst_id});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user