enum.sbn 558 B

1234567891011121314151617181920212223
  1. {{~
  2. comment = __enum.comment
  3. items = __enum.items
  4. ~}}
  5. {{namespace_with_grace_begin __namespace}}
  6. {{~if comment != '' ~}}
  7. /// <summary>
  8. /// {{escape_comment comment}}
  9. /// </summary>
  10. {{~end~}}
  11. enum class {{__name}}
  12. {
  13. {{~ for item in items ~}}
  14. {{~if item.comment != '' ~}}
  15. /// <summary>
  16. /// {{escape_comment item.comment_or_alias}}
  17. /// </summary>
  18. {{~end~}}
  19. {{format_enum_item_name __code_style item.name}} = {{item.value}},
  20. {{~end~}}
  21. };
  22. {{namespace_with_grace_end __namespace}}