def _generate_union_cstor_funcs(self, union):
for field in union.all_fields:<EOL><INDENT>enum_field_name = fmt_enum_name(field.name, union)<EOL>func_args = [] if is_void_type(<EOL>field.data_type) else fmt_func_args_from_fields([field])<EOL>with self.block_func(<EOL>func=self._cstor_name_from_field(field),<EOL>args=func_args,<EOL>return_type='<STR_LIT>'):<EOL><INDENT>self.emit('<STR_LIT>')<EOL>with self.block_init():<EOL><INDENT>self.emit('<STR_LIT>'.format(enum_field_name))<EOL>if not is_void_type(field.data_type):<EOL><INDENT>self.emit('<STR_LIT>'.format(<EOL>fmt_var(field.name), fmt_var(field.name)))<EOL><DEDENT><DEDENT><DEDENT>self.emit()<EOL><DEDENT>
Emits standard union constructor.