emit closure compiler style enums