mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 03:01:12 +00:00
Rename GenericClassType to ParameterizedClassType (#7953)
The old name was potentially confusing, because non-parameterized generic classes do not use this inst kind.
This commit is contained in:
1 parent
5d442a5b0a
commit
62f1cc6a35
468 files changed
+32353
-32348
No files matched your search
@@ -232,10 +232,10 @@ auto CarbonExternalASTSource::MapInstIdToClangDeclOrType(LookupResult lookup)
|
||||
if (auto* callee_function = std::get_if<SemIR::CalleeFunction>(&callee)) {
|
||||
return GetOrExportFunctionToCpp(*context_, SemIR::LocId(target_inst_id),
|
||||
callee_function->function_id);
|
||||
} else if (auto generic_class =
|
||||
context_->insts().TryGetAs<SemIR::GenericClassType>(
|
||||
} else if (auto param_class_type =
|
||||
context_->insts().TryGetAs<SemIR::ParameterizedClassType>(
|
||||
type_inst_id)) {
|
||||
return ExportGenericClassToCpp(*context_, *generic_class);
|
||||
return ExportParameterizedClassToCpp(*context_, *param_class_type);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
||||
Reference in new issue
Block a user