def VisitEnum(self, enum_proto, type_context):
    normal_enum_type = NormalizeTypeContextName(type_context.name)
    anchor = FormatAnchor(EnumCrossRefLabel(normal_enum_type))
    header = FormatHeader('-', ('Enum %s' % normal_enum_type))
    github_url = GithubUrl(type_context)
    proto_link = (FormatExternalLink(('[%s proto]' % normal_enum_type), github_url) + '\n\n')
    leading_comment = type_context.leading_comment
    formatted_leading_comment = FormatCommentWithAnnotations(leading_comment, 'enum')
    if HideNotImplemented(leading_comment):
        return ''
    return ((((anchor + header) + proto_link) + formatted_leading_comment) + FormatEnumAsDefinitionList(type_context, enum_proto))
def VisitEnum(self, enum_proto, type_context):
    normal_enum_type = NormalizeTypeContextName(type_context.name)
    anchor = FormatAnchor(EnumCrossRefLabel(normal_enum_type))
    header = FormatHeader('-', ('Enum %s' % normal_enum_type))
    github_url = GithubUrl(type_context)
    proto_link = (FormatExternalLink(('[%s proto]' % normal_enum_type), github_url) + '\n\n')
    leading_comment = type_context.leading_comment
    formatted_leading_comment = FormatCommentWithAnnotations(leading_comment, 'enum')
    if HideNotImplemented(leading_comment):
        return 
    return ((((anchor + header) + proto_link) + formatted_leading_comment) + FormatEnumAsDefinitionList(type_context, enum_proto))