mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 08:31:04 +01:00
location -> loc abbreviation (#3826)
This commit is contained in:
@@ -55,7 +55,7 @@ auto HandleVariableDecl(Context& context, Parse::VariableDeclId node_id)
|
||||
// Form a corresponding name in the current context, and bind the name to
|
||||
// the variable.
|
||||
auto name_context = context.decl_name_stack().MakeUnqualifiedName(
|
||||
context.insts().GetLocationId(value_id),
|
||||
context.insts().GetLocId(value_id),
|
||||
context.bind_names().Get(bind_name->bind_name_id).name_id);
|
||||
context.decl_name_stack().AddNameToLookup(name_context, value_id);
|
||||
value_id = bind_name->value_id;
|
||||
@@ -63,7 +63,7 @@ auto HandleVariableDecl(Context& context, Parse::VariableDeclId node_id)
|
||||
context.insts().TryGetAs<SemIR::FieldDecl>(value_id)) {
|
||||
// Introduce the field name into the class.
|
||||
auto name_context = context.decl_name_stack().MakeUnqualifiedName(
|
||||
context.insts().GetLocationId(value_id), field_decl->name_id);
|
||||
context.insts().GetLocId(value_id), field_decl->name_id);
|
||||
context.decl_name_stack().AddNameToLookup(name_context, value_id);
|
||||
}
|
||||
// TODO: Handle other kinds of pattern.
|
||||
|
||||
Reference in New Issue
Block a user