if (sym instanceof MibTypeSymbol) {
type = initializeReference(symbol, log, (MibTypeSymbol) sym);
if (type == null) {
message = "referenced symbol '" + sym.getName() +
"' contains undefined type";
throw new MibException(location, message);
}
return type;
} else if (sym == null) {
message = "undefined symbol '" + name + "'";
throw new MibException(location, message);
} else {
message = "referenced symbol '" + name + "' is not a type";
throw new MibException(location, message);
}
}