stringer.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // Code generated by "stringer -output stringer.go -linecomment -type=Kind,ScopeKind,ChanDir,TypeCheck"; DO NOT EDIT.
  2. package gc
  3. import "strconv"
  4. func _() {
  5. // An "invalid array index" compiler error signifies that the constant values have changed.
  6. // Re-run the stringer command to generate them again.
  7. var x [1]struct{}
  8. _ = x[InvalidKind-0]
  9. _ = x[Array-1]
  10. _ = x[Bool-2]
  11. _ = x[Chan-3]
  12. _ = x[Complex128-4]
  13. _ = x[Complex64-5]
  14. _ = x[Float32-6]
  15. _ = x[Float64-7]
  16. _ = x[Function-8]
  17. _ = x[Int-9]
  18. _ = x[Int16-10]
  19. _ = x[Int32-11]
  20. _ = x[Int64-12]
  21. _ = x[Int8-13]
  22. _ = x[Interface-14]
  23. _ = x[Map-15]
  24. _ = x[Pointer-16]
  25. _ = x[Slice-17]
  26. _ = x[String-18]
  27. _ = x[Struct-19]
  28. _ = x[Tuple-20]
  29. _ = x[Uint-21]
  30. _ = x[Uint16-22]
  31. _ = x[Uint32-23]
  32. _ = x[Uint64-24]
  33. _ = x[Uint8-25]
  34. _ = x[Uintptr-26]
  35. _ = x[UnsafePointer-27]
  36. _ = x[UntypedBool-28]
  37. _ = x[UntypedComplex-29]
  38. _ = x[UntypedFloat-30]
  39. _ = x[UntypedInt-31]
  40. _ = x[UntypedNil-32]
  41. _ = x[UntypedRune-33]
  42. _ = x[UntypedString-34]
  43. }
  44. const _Kind_name = "<invalid type>arrayboolchancomplex128complex64float32float64functionintint16int32int64int8interfacemappointerslicestringstructtupleuintuint16uint32uint64uint8uintptrunsafe.Pointeruntyped booluntyped complexuntyped floatuntyped intuntyped niluntyped runeuntyped string"
  45. var _Kind_index = [...]uint16{0, 14, 19, 23, 27, 37, 46, 53, 60, 68, 71, 76, 81, 86, 90, 99, 102, 109, 114, 120, 126, 131, 135, 141, 147, 153, 158, 165, 179, 191, 206, 219, 230, 241, 253, 267}
  46. func (i Kind) String() string {
  47. if i >= Kind(len(_Kind_index)-1) {
  48. return "Kind(" + strconv.FormatInt(int64(i), 10) + ")"
  49. }
  50. return _Kind_name[_Kind_index[i]:_Kind_index[i+1]]
  51. }
  52. func _() {
  53. // An "invalid array index" compiler error signifies that the constant values have changed.
  54. // Re-run the stringer command to generate them again.
  55. var x [1]struct{}
  56. _ = x[scZero-0]
  57. _ = x[UniverseScope-1]
  58. _ = x[PackageScope-2]
  59. _ = x[FileScope-3]
  60. _ = x[OtherScope-4]
  61. }
  62. const _ScopeKind_name = "scZeroUniverseScopePackageScopeFileScopeOtherScope"
  63. var _ScopeKind_index = [...]uint8{0, 6, 19, 31, 40, 50}
  64. func (i ScopeKind) String() string {
  65. if i < 0 || i >= ScopeKind(len(_ScopeKind_index)-1) {
  66. return "ScopeKind(" + strconv.FormatInt(int64(i), 10) + ")"
  67. }
  68. return _ScopeKind_name[_ScopeKind_index[i]:_ScopeKind_index[i+1]]
  69. }
  70. func _() {
  71. // An "invalid array index" compiler error signifies that the constant values have changed.
  72. // Re-run the stringer command to generate them again.
  73. var x [1]struct{}
  74. _ = x[SendRecv-0]
  75. _ = x[SendOnly-1]
  76. _ = x[RecvOnly-2]
  77. }
  78. const _ChanDir_name = "SendRecvSendOnlyRecvOnly"
  79. var _ChanDir_index = [...]uint8{0, 8, 16, 24}
  80. func (i ChanDir) String() string {
  81. if i < 0 || i >= ChanDir(len(_ChanDir_index)-1) {
  82. return "ChanDir(" + strconv.FormatInt(int64(i), 10) + ")"
  83. }
  84. return _ChanDir_name[_ChanDir_index[i]:_ChanDir_index[i+1]]
  85. }
  86. func _() {
  87. // An "invalid array index" compiler error signifies that the constant values have changed.
  88. // Re-run the stringer command to generate them again.
  89. var x [1]struct{}
  90. _ = x[TypeCheckNone-0]
  91. _ = x[TypeCheckAll-1]
  92. }
  93. const _TypeCheck_name = "TypeCheckNoneTypeCheckAll"
  94. var _TypeCheck_index = [...]uint8{0, 13, 25}
  95. func (i TypeCheck) String() string {
  96. if i < 0 || i >= TypeCheck(len(_TypeCheck_index)-1) {
  97. return "TypeCheck(" + strconv.FormatInt(int64(i), 10) + ")"
  98. }
  99. return _TypeCheck_name[_TypeCheck_index[i]:_TypeCheck_index[i+1]]
  100. }