def _generate_class_comment(self, data_type):
if is_struct_type(data_type):<EOL><INDENT>class_type = '<STR_LIT>'<EOL><DEDENT>elif is_union_type(data_type):<EOL><INDENT>class_type = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>raise TypeError('<STR_LIT>' % type(data_type))<EOL><DEDENT>self.emit(comment_prefix)<EOL>self.emit_wrapped_text(<EOL>'<STR_LIT>'.format(fmt_class(data_type.name), class_type),<EOL>prefix=comment_prefix)<EOL>if data_type.doc:<EOL><INDENT>self.emit(comment_prefix)<EOL>self.emit_wrapped_text(<EOL>self.process_doc(data_type.doc, self._docf),<EOL>prefix=comment_prefix)<EOL><DEDENT>self.emit(comment_prefix)<EOL>protocol_str = (<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>self.emit_wrapped_text(<EOL>protocol_str.format(fmt_class_prefix(data_type), class_type),<EOL>prefix=comment_prefix)<EOL>self.emit(comment_prefix)<EOL>
Emits a generic class comment for a union or struct.