Expression e = gmf.getExpressionForm();
// If this is a DataConstructor for an enumeration data type
// we want to simply return as these are treates as int.
Expression.PackCons packCons = e.asPackCons();
if (packCons != null) {
DataConstructor dc = packCons.getDataConstructor();
if (TypeExpr.isEnumType(dc.getTypeConstructor())) {
gmf.setCodeGenerated(true);
return;