{{~ comment = __enum.comment items = __enum.items ~}} {{namespace_with_grace_begin __namespace}} {{~if comment != '' ~}} /// /// {{escape_comment comment}} /// {{~end~}} enum class {{__name}} { {{~ for item in items ~}} {{~if item.comment != '' ~}} /// /// {{escape_comment item.comment_or_alias}} /// {{~end~}} {{format_enum_item_name __code_style item.name}} = {{item.value}}, {{~end~}} }; {{namespace_with_grace_end __namespace}}