}
if (valuesMethod == null) {
throw new InternalCompilerException(
"Could not find enum values() method");
}
JsniMethodRef jsniMethodRef = new JsniMethodRef(info, null,
valuesMethod, program.getJavaScriptObject());
call.addArg(jsniMethodRef);
} else if (isEnumOrSubclass) {
// A subclass of an enum class
call.addArg(program.getLiteralNull());