}
// Don't allow subclassing for externs or etch defined enums.
if (!(n.isExtern() || n.isEnumx()))
Assertion.check(n.isExtern() || n.isEnumx(),
"n.isExtern() || n.isEnumx(): " + n);
Enumx e = (Enumx) n;
return String.format(
"EtchValidatorCustom::Get(runtime, %d, %s::TYPE(), false, tmpValue);",
type.dim(), n.efqname(this));
}
if (named instanceof Thrown) {
Thrown thrown = (Thrown) named;
Except e = (Except) thrown.getNamed();
String efgName = this.getExcept(thrown).service().name() + "::"
+ e.efqname(this);
return String.format(
"EtchValidatorCustom::Get(runtime, 0, %s::TYPE(), true, tmpValue);"
, efgName);
}
if (named instanceof Item)