generated enum switch stmt