Generates 'case' branches for switch statement, if statement argument is a enum or a union of constant values