Added codegen rules for switch-case statements.