BasicEnum.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. namespace Terminal.Gui.Analyzers.Internal.Tests.Generators.EnumExtensions.EnumDefinitions;
  2. /// <summary>
  3. /// Basic enum without explicitly-defined backing type and no attributes on the enum or any of its members.
  4. /// </summary>
  5. public enum BasicEnum
  6. {
  7. Bit31 = -0b_10000000_00000000_00000000_00000000,
  8. Bit30 = 0b_01000000_00000000_00000000_00000000,
  9. Bit29 = 0b_00100000_00000000_00000000_00000000,
  10. Bit28 = 0b_00010000_00000000_00000000_00000000,
  11. Bit27 = 0b_00001000_00000000_00000000_00000000,
  12. Bit26 = 0b_00000100_00000000_00000000_00000000,
  13. Bit25 = 0b_00000010_00000000_00000000_00000000,
  14. Bit24 = 0b_00000001_00000000_00000000_00000000,
  15. Bit23 = 0b_00000000_10000000_00000000_00000000,
  16. Bit22 = 0b_00000000_01000000_00000000_00000000,
  17. Bit21 = 0b_00000000_00100000_00000000_00000000,
  18. Bit20 = 0b_00000000_00010000_00000000_00000000,
  19. Bit19 = 0b_00000000_00001000_00000000_00000000,
  20. Bit18 = 0b_00000000_00000100_00000000_00000000,
  21. Bit17 = 0b_00000000_00000010_00000000_00000000,
  22. Bit16 = 0b_00000000_00000001_00000000_00000000,
  23. Bit15 = 0b_00000000_00000000_10000000_00000000,
  24. Bit14 = 0b_00000000_00000000_01000000_00000000,
  25. Bit13 = 0b_00000000_00000000_00100000_00000000,
  26. Bit12 = 0b_00000000_00000000_00010000_00000000,
  27. Bit11 = 0b_00000000_00000000_00001000_00000000,
  28. Bit10 = 0b_00000000_00000000_00000100_00000000,
  29. Bit09 = 0b_00000000_00000000_00000010_00000000,
  30. Bit08 = 0b_00000000_00000000_00000001_00000000,
  31. Bit07 = 0b_00000000_00000000_00000000_10000000,
  32. Bit06 = 0b_00000000_00000000_00000000_01000000,
  33. Bit05 = 0b_00000000_00000000_00000000_00100000,
  34. Bit04 = 0b_00000000_00000000_00000000_00010000,
  35. Bit03 = 0b_00000000_00000000_00000000_00001000,
  36. Bit02 = 0b_00000000_00000000_00000000_00000100,
  37. Bit01 = 0b_00000000_00000000_00000000_00000010,
  38. Bit00 = 0b_00000000_00000000_00000000_00000001,
  39. All_0 = 0,
  40. All_1 = -1,
  41. Alternating_01 = 0b_01010101_01010101_01010101_01010101,
  42. Alternating_10 = unchecked((int)0b_10101010_10101010_10101010_10101010),
  43. OddBytesHigh = unchecked((int)0b_11111111_00000000_11111111_00000000),
  44. EvenBytesHigh = 0b_00000000_11111111_00000000_11111111,
  45. }