def _generate_union_class_symbol_creators(self, data_type):
class_name = fmt_class(data_type.name)<EOL>lineno = self.lineno<EOL>for field in data_type.fields:<EOL><INDENT>if is_void_type(field.data_type):<EOL><INDENT>field_name = fmt_func(field.name)<EOL>self.emit("<STR_LIT>".format(class_name, field_name))<EOL><DEDENT><DEDENT>if lineno != self.lineno:<EOL><INDENT>self.emit()<EOL><DEDENT>
Class attributes that represent a symbol are set after the union class
definition.