blob: 11a94c004701ba4f6238217b145b2972abbea1a7 [file] [log] [blame]
Matthew Dempsky3f370b72020-12-28 15:40:19 -08001// Code generated by "stringer -type=Class name.go"; DO NOT EDIT.
Josh Bleecher Snyder5e157db2017-04-30 09:14:52 -07002
Russ Cox84e2bd62020-11-19 21:09:22 -05003package ir
Josh Bleecher Snyder5e157db2017-04-30 09:14:52 -07004
Daniel Martíc15b7b22018-03-10 16:50:16 +00005import "strconv"
Josh Bleecher Snyder5e157db2017-04-30 09:14:52 -07006
Matthew Dempsky913d2902019-05-28 14:50:53 -07007func _() {
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[Pxxx-0]
12 _ = x[PEXTERN-1]
13 _ = x[PAUTO-2]
14 _ = x[PAUTOHEAP-3]
15 _ = x[PPARAM-4]
16 _ = x[PPARAMOUT-5]
Dan Scales2440dd42021-01-27 12:55:57 -080017 _ = x[PTYPEPARAM-6]
18 _ = x[PFUNC-7]
Matthew Dempsky913d2902019-05-28 14:50:53 -070019}
20
Dan Scales2440dd42021-01-27 12:55:57 -080021const _Class_name = "PxxxPEXTERNPAUTOPAUTOHEAPPPARAMPPARAMOUTPTYPEPARAMPFUNC"
Josh Bleecher Snyder5e157db2017-04-30 09:14:52 -070022
Dan Scales2440dd42021-01-27 12:55:57 -080023var _Class_index = [...]uint8{0, 4, 11, 16, 25, 31, 40, 50, 55}
Josh Bleecher Snyder5e157db2017-04-30 09:14:52 -070024
25func (i Class) String() string {
26 if i >= Class(len(_Class_index)-1) {
Daniel Martíc15b7b22018-03-10 16:50:16 +000027 return "Class(" + strconv.FormatInt(int64(i), 10) + ")"
Josh Bleecher Snyder5e157db2017-04-30 09:14:52 -070028 }
29 return _Class_name[_Class_index[i]:_Class_index[i+1]]
30}