mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-01 15:05:53 +01:00
Rename the ImportRefs block to Imports (#5618)
I've been mulling the name of this, changing it and updating comments to try and better reflect the current semantic. "Imports" reflects how we're currently printing this in SemIR.
This commit is contained in:
@@ -460,7 +460,7 @@ static auto ImportFunctionDecl(Context& context, SemIR::LocId loc_id,
|
||||
SemIR::TypeId::None, SemIR::FunctionId::None, SemIR::InstBlockId::Empty};
|
||||
auto decl_id =
|
||||
AddPlaceholderInstInNoBlock(context, Parse::NodeId::None, function_decl);
|
||||
context.import_ref_ids().push_back(decl_id);
|
||||
context.imports().push_back(decl_id);
|
||||
|
||||
auto function_info = SemIR::Function{
|
||||
{.name_id = name_id,
|
||||
@@ -520,7 +520,7 @@ static auto BuildClassDecl(Context& context, SemIR::NameScopeId parent_scope_id,
|
||||
// TODO: Consider setting a proper location.
|
||||
auto class_decl_id = AddPlaceholderInstInNoBlock(
|
||||
context, SemIR::LocIdAndInst::NoLoc(class_decl));
|
||||
context.import_ref_ids().push_back(class_decl_id);
|
||||
context.imports().push_back(class_decl_id);
|
||||
|
||||
SemIR::Class class_info = {
|
||||
{.name_id = name_id,
|
||||
|
||||
Reference in New Issue
Block a user