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:
Jon Ross-Perkins authored and GitHub committed 2025-06-05 21:24:58 +00:00
1 parent 9b1a0729a1
commit 1e9e148c3b
18 files changed
+46 -47

No files matched your search

+2 -2
View File
@@ -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,