BetterFlagsEnum_ExplicitInt.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using Terminal.Gui.Analyzers.Internal.Attributes;
  2. namespace Terminal.Gui.Analyzers.Internal.Tests.Generators.EnumExtensions.EnumDefinitions;
  3. /// <summary>
  4. /// <summary>
  5. /// Same as <see cref="FlagsEnum_ExplicitInt"/>, but with <see cref="GenerateEnumExtensionMethodsAttribute"/> applied.
  6. /// </summary>
  7. [Flags]
  8. [GenerateEnumExtensionMethods]
  9. [SuppressMessage ("Naming", "CA1711:Identifiers should not have incorrect suffix", Justification = "Naming is intentional.")]
  10. [SuppressMessage ("Roslynator", "RCS1154:Sort enum members", Justification = "Order is intentional.")]
  11. public enum BetterFlagsEnum_ExplicitInt : int
  12. {
  13. Bit31 = -0b_10000000_00000000_00000000_00000000,
  14. Bit30 = 0b_01000000_00000000_00000000_00000000,
  15. Bit29 = 0b_00100000_00000000_00000000_00000000,
  16. Bit28 = 0b_00010000_00000000_00000000_00000000,
  17. Bit27 = 0b_00001000_00000000_00000000_00000000,
  18. Bit26 = 0b_00000100_00000000_00000000_00000000,
  19. Bit25 = 0b_00000010_00000000_00000000_00000000,
  20. Bit24 = 0b_00000001_00000000_00000000_00000000,
  21. Bit23 = -0b_00000000_10000000_00000000_00000000,
  22. Bit22 = 0b_00000000_01000000_00000000_00000000,
  23. Bit21 = 0b_00000000_00100000_00000000_00000000,
  24. Bit20 = 0b_00000000_00010000_00000000_00000000,
  25. Bit19 = 0b_00000000_00001000_00000000_00000000,
  26. Bit18 = 0b_00000000_00000100_00000000_00000000,
  27. Bit17 = 0b_00000000_00000010_00000000_00000000,
  28. Bit16 = 0b_00000000_00000001_00000000_00000000,
  29. Bit15 = -0b_00000000_00000000_10000000_00000000,
  30. Bit14 = 0b_00000000_00000000_01000000_00000000,
  31. Bit13 = 0b_00000000_00000000_00100000_00000000,
  32. Bit12 = 0b_00000000_00000000_00010000_00000000,
  33. Bit11 = 0b_00000000_00000000_00001000_00000000,
  34. Bit10 = 0b_00000000_00000000_00000100_00000000,
  35. Bit09 = 0b_00000000_00000000_00000010_00000000,
  36. Bit08 = 0b_00000000_00000000_00000001_00000000,
  37. Bit07 = -0b_00000000_00000000_00000000_10000000,
  38. Bit06 = 0b_00000000_00000000_00000000_01000000,
  39. Bit05 = 0b_00000000_00000000_00000000_00100000,
  40. Bit04 = 0b_00000000_00000000_00000000_00010000,
  41. Bit03 = 0b_00000000_00000000_00000000_00001000,
  42. Bit02 = 0b_00000000_00000000_00000000_00000100,
  43. Bit01 = 0b_00000000_00000000_00000000_00000010,
  44. Bit00 = 0b_00000000_00000000_00000000_00000001,
  45. All_0 = 0,
  46. All_1 = ~All_0,
  47. Alternating_01 = 0b_01010101_01010101_01010101_01010101,
  48. Alternating_10 = ~Alternating_01,
  49. EvenBytesHigh = 0b_00000000_11111111_00000000_11111111,
  50. OddBytesHigh = ~EvenBytesHigh,
  51. }