27 cstring name = declaration->externalName();
28 return name.replace(
'.',
'_');
31 static cstring getSpecializedTypeName(
const IR::Declaration_Instance *di) {
32 if (
auto typeSpec = di->type->to<IR::Type_Specialized>()) {
33 if (
auto typeName = typeSpec->baseType->to<IR::Type_Name>()) {
34 return typeName->path->name.name;
41 static cstring getTypeName(
const IR::Declaration_Instance *di) {
42 if (
auto typeName = di->type->to<IR::Type_Name>()) {
43 return typeName->path->name.name;