-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
types_string.go
145 lines (124 loc) · 4.63 KB
/
types_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// Code generated by "stringer -type ContextDescriptorKind,TypeReferenceKind,MetadataInitializationKind,SpecialKind,GenericParamKind,GenericRequirementLayoutKind -linecomment -output types_string.go"; DO NOT EDIT.
package swift
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[CDKindModule-0]
_ = x[CDKindExtension-1]
_ = x[CDKindAnonymous-2]
_ = x[CDKindProtocol-3]
_ = x[CDKindOpaqueType-4]
_ = x[CDKindClass-16]
_ = x[CDKindStruct-17]
_ = x[CDKindEnum-18]
}
const (
_ContextDescriptorKind_name_0 = "moduleextensionanonymousprotocolopaque_type"
_ContextDescriptorKind_name_1 = "classstructenum"
)
var (
_ContextDescriptorKind_index_0 = [...]uint8{0, 6, 15, 24, 32, 43}
_ContextDescriptorKind_index_1 = [...]uint8{0, 5, 11, 15}
)
func (i ContextDescriptorKind) String() string {
switch {
case i <= 4:
return _ContextDescriptorKind_name_0[_ContextDescriptorKind_index_0[i]:_ContextDescriptorKind_index_0[i+1]]
case 16 <= i && i <= 18:
i -= 16
return _ContextDescriptorKind_name_1[_ContextDescriptorKind_index_1[i]:_ContextDescriptorKind_index_1[i+1]]
default:
return "ContextDescriptorKind(" + strconv.FormatInt(int64(i), 10) + ")"
}
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[DirectTypeDescriptor-0]
_ = x[IndirectTypeDescriptor-1]
_ = x[DirectObjCClassName-2]
_ = x[IndirectObjCClass-3]
}
const _TypeReferenceKind_name = "directindirectdirect_objc_classindirect_objc_class"
var _TypeReferenceKind_index = [...]uint8{0, 6, 14, 31, 50}
func (i TypeReferenceKind) String() string {
if i >= TypeReferenceKind(len(_TypeReferenceKind_index)-1) {
return "TypeReferenceKind(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _TypeReferenceKind_name[_TypeReferenceKind_index[i]:_TypeReferenceKind_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[MetadataInitNone-0]
_ = x[MetadataInitSingleton-1]
_ = x[MetadataInitForeign-2]
}
const _MetadataInitializationKind_name = "nonesingletonforeign"
var _MetadataInitializationKind_index = [...]uint8{0, 4, 13, 20}
func (i MetadataInitializationKind) String() string {
if i >= MetadataInitializationKind(len(_MetadataInitializationKind_index)-1) {
return "MetadataInitializationKind(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _MetadataInitializationKind_name[_MetadataInitializationKind_index[i]:_MetadataInitializationKind_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[SKNone-0]
_ = x[SKClass-1]
_ = x[SKMetatype-2]
_ = x[SKExplicitLayout-3]
}
const _SpecialKind_name = "noneclassmetatypeexplicit layout"
var _SpecialKind_index = [...]uint8{0, 4, 9, 17, 32}
func (i SpecialKind) String() string {
if i >= SpecialKind(len(_SpecialKind_index)-1) {
return "SpecialKind(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _SpecialKind_name[_SpecialKind_index[i]:_SpecialKind_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[GPKType-0]
_ = x[GPKTypePack-1]
_ = x[GPKMax-63]
}
const (
_GenericParamKind_name_0 = "typetype_pack"
_GenericParamKind_name_1 = "max"
)
var (
_GenericParamKind_index_0 = [...]uint8{0, 4, 13}
)
func (i GenericParamKind) String() string {
switch {
case i <= 1:
return _GenericParamKind_name_0[_GenericParamKind_index_0[i]:_GenericParamKind_index_0[i+1]]
case i == 63:
return _GenericParamKind_name_1
default:
return "GenericParamKind(" + strconv.FormatInt(int64(i), 10) + ")"
}
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[GRLKClass-0]
}
const _GenericRequirementLayoutKind_name = "class"
var _GenericRequirementLayoutKind_index = [...]uint8{0, 5}
func (i GenericRequirementLayoutKind) String() string {
if i >= GenericRequirementLayoutKind(len(_GenericRequirementLayoutKind_index)-1) {
return "GenericRequirementLayoutKind(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _GenericRequirementLayoutKind_name[_GenericRequirementLayoutKind_index[i]:_GenericRequirementLayoutKind_index[i+1]]
}