source:
code/trunk/vendor/modernc.org/cc/v3/stringer.go@
822
Last change on this file since 822 was 822, checked in by , 22 months ago | |
---|---|
File size: 3.0 KB |
Line | |
---|---|
1 | // Code generated by "stringer -output stringer.go -linecomment -type=Kind,Linkage"; DO NOT EDIT. |
2 | |
3 | package cc |
4 | |
5 | import "strconv" |
6 | |
7 | func _() { |
8 | // An "invalid array index" compiler error signifies that the constant values have changed. |
9 | // Re-run the stringer command to generate them again. |
10 | var x [1]struct{} |
11 | _ = x[Invalid-0] |
12 | _ = x[Array-1] |
13 | _ = x[Bool-2] |
14 | _ = x[Char-3] |
15 | _ = x[ComplexChar-4] |
16 | _ = x[ComplexDouble-5] |
17 | _ = x[ComplexFloat-6] |
18 | _ = x[ComplexInt-7] |
19 | _ = x[ComplexLong-8] |
20 | _ = x[ComplexLongDouble-9] |
21 | _ = x[ComplexLongLong-10] |
22 | _ = x[ComplexShort-11] |
23 | _ = x[ComplexUInt-12] |
24 | _ = x[ComplexULong-13] |
25 | _ = x[ComplexULongLong-14] |
26 | _ = x[ComplexUShort-15] |
27 | _ = x[Decimal128-16] |
28 | _ = x[Decimal32-17] |
29 | _ = x[Decimal64-18] |
30 | _ = x[Double-19] |
31 | _ = x[Enum-20] |
32 | _ = x[Float-21] |
33 | _ = x[Float128-22] |
34 | _ = x[Float32-23] |
35 | _ = x[Float32x-24] |
36 | _ = x[Float64-25] |
37 | _ = x[Float64x-26] |
38 | _ = x[Function-27] |
39 | _ = x[Int-28] |
40 | _ = x[Int8-29] |
41 | _ = x[Int16-30] |
42 | _ = x[Int32-31] |
43 | _ = x[Int64-32] |
44 | _ = x[Int128-33] |
45 | _ = x[Long-34] |
46 | _ = x[LongDouble-35] |
47 | _ = x[LongLong-36] |
48 | _ = x[Ptr-37] |
49 | _ = x[SChar-38] |
50 | _ = x[Short-39] |
51 | _ = x[Struct-40] |
52 | _ = x[TypedefName-41] |
53 | _ = x[UChar-42] |
54 | _ = x[UInt-43] |
55 | _ = x[UInt8-44] |
56 | _ = x[UInt16-45] |
57 | _ = x[UInt32-46] |
58 | _ = x[UInt64-47] |
59 | _ = x[UInt128-48] |
60 | _ = x[ULong-49] |
61 | _ = x[ULongLong-50] |
62 | _ = x[UShort-51] |
63 | _ = x[Union-52] |
64 | _ = x[Void-53] |
65 | _ = x[Vector-54] |
66 | _ = x[typeofExpr-55] |
67 | _ = x[typeofType-56] |
68 | _ = x[maxKind-57] |
69 | } |
70 | |
71 | const _Kind_name = "InvalidT[]_Boolcharcomplex charcomplex doublecomplex floatcomplex intcomplex longcomplex long doublecomplex long longcomplex shortcomplex unsignedcomplex unsigned longcomplex unsigned long longcomplex shor_Decimal128_Decimal32_Decimal64doubleenumfloat_Float128_Float32_Float32x_Float64_Float64xfunctionint__int8__int16__int32__int64__int128longlong doublelong longpointersigned charshortstructtypedefnameunsigned charunsignedunsigned __int8unsigned __int16unsigned __int32unsigned __int64unsigned __int128unsigned longunsigned long longunsigned shortunionvoidvectortypeofExprtypeofTypemaxKind" |
72 | |
73 | var _Kind_index = [...]uint16{0, 7, 10, 15, 19, 31, 45, 58, 69, 81, 100, 117, 130, 146, 167, 193, 205, 216, 226, 236, 242, 246, 251, 260, 268, 277, 285, 294, 302, 305, 311, 318, 325, 332, 340, 344, 355, 364, 371, 382, 387, 393, 404, 417, 425, 440, 456, 472, 488, 505, 518, 536, 550, 555, 559, 565, 575, 585, 592} |
74 | |
75 | func (i Kind) String() string { |
76 | if i >= Kind(len(_Kind_index)-1) { |
77 | return "Kind(" + strconv.FormatInt(int64(i), 10) + ")" |
78 | } |
79 | return _Kind_name[_Kind_index[i]:_Kind_index[i+1]] |
80 | } |
81 | func _() { |
82 | // An "invalid array index" compiler error signifies that the constant values have changed. |
83 | // Re-run the stringer command to generate them again. |
84 | var x [1]struct{} |
85 | _ = x[None-0] |
86 | _ = x[Internal-1] |
87 | _ = x[External-2] |
88 | } |
89 | |
90 | const _Linkage_name = "NoneInternalExternal" |
91 | |
92 | var _Linkage_index = [...]uint8{0, 4, 12, 20} |
93 | |
94 | func (i Linkage) String() string { |
95 | if i < 0 || i >= Linkage(len(_Linkage_index)-1) { |
96 | return "Linkage(" + strconv.FormatInt(int64(i), 10) + ")" |
97 | } |
98 | return _Linkage_name[_Linkage_index[i]:_Linkage_index[i+1]] |
99 | } |
Note:
See TracBrowser
for help on using the repository browser.