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:
@@ -126,9 +126,10 @@ auto HandleParseNode(Context& context, Parse::ImplDefaultSelfAsId node_id)
|
||||
// duplicating the handling of the `Self` expression.
|
||||
self_inst_id = AddTypeInst(
|
||||
context, node_id,
|
||||
SemIR::NameRef{.type_id = SemIR::TypeType::TypeId,
|
||||
.name_id = SemIR::NameId::SelfType,
|
||||
.value_id = context.types().GetInstId(self_type_id)});
|
||||
SemIR::NameRef{
|
||||
.type_id = SemIR::TypeType::TypeId,
|
||||
.name_id = SemIR::NameId::SelfType,
|
||||
.value_id = context.types().GetTypeInstId(self_type_id)});
|
||||
} else {
|
||||
CARBON_DIAGNOSTIC(ImplAsOutsideClass, Error,
|
||||
"`impl as` can only be used in a class");
|
||||
|
||||
Reference in New Issue
Block a user