36        cstring name = declaration->externalName();
 
   37        return name.replace(
'.', 
'_');
 
   40    static cstring getSpecializedTypeName(
const IR::Declaration_Instance *di) {
 
   41        if (
auto typeSpec = di->type->to<IR::Type_Specialized>()) {
 
   42            if (
auto typeName = typeSpec->baseType->to<IR::Type_Name>()) {
 
   43                return typeName->path->name.name;
 
   50    static cstring getTypeName(
const IR::Declaration_Instance *di) {
 
   51        if (
auto typeName = di->type->to<IR::Type_Name>()) {
 
   52            return typeName->path->name.name;