Matthew Dempsky | 3f370b7 | 2020-12-28 15:40:19 -0800 | [diff] [blame] | 1 | // Code generated by "stringer -type=Class name.go"; DO NOT EDIT. |
Josh Bleecher Snyder | 5e157db | 2017-04-30 09:14:52 -0700 | [diff] [blame] | 2 | |
Russ Cox | 84e2bd6 | 2020-11-19 21:09:22 -0500 | [diff] [blame] | 3 | package ir |
Josh Bleecher Snyder | 5e157db | 2017-04-30 09:14:52 -0700 | [diff] [blame] | 4 | |
Daniel Martà | c15b7b2 | 2018-03-10 16:50:16 +0000 | [diff] [blame] | 5 | import "strconv" |
Josh Bleecher Snyder | 5e157db | 2017-04-30 09:14:52 -0700 | [diff] [blame] | 6 | |
Matthew Dempsky | 913d290 | 2019-05-28 14:50:53 -0700 | [diff] [blame] | 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[Pxxx-0] |
| 12 | _ = x[PEXTERN-1] |
| 13 | _ = x[PAUTO-2] |
| 14 | _ = x[PAUTOHEAP-3] |
| 15 | _ = x[PPARAM-4] |
| 16 | _ = x[PPARAMOUT-5] |
Dan Scales | 2440dd4 | 2021-01-27 12:55:57 -0800 | [diff] [blame] | 17 | _ = x[PTYPEPARAM-6] |
| 18 | _ = x[PFUNC-7] |
Matthew Dempsky | 913d290 | 2019-05-28 14:50:53 -0700 | [diff] [blame] | 19 | } |
| 20 | |
Dan Scales | 2440dd4 | 2021-01-27 12:55:57 -0800 | [diff] [blame] | 21 | const _Class_name = "PxxxPEXTERNPAUTOPAUTOHEAPPPARAMPPARAMOUTPTYPEPARAMPFUNC" |
Josh Bleecher Snyder | 5e157db | 2017-04-30 09:14:52 -0700 | [diff] [blame] | 22 | |
Dan Scales | 2440dd4 | 2021-01-27 12:55:57 -0800 | [diff] [blame] | 23 | var _Class_index = [...]uint8{0, 4, 11, 16, 25, 31, 40, 50, 55} |
Josh Bleecher Snyder | 5e157db | 2017-04-30 09:14:52 -0700 | [diff] [blame] | 24 | |
| 25 | func (i Class) String() string { |
| 26 | if i >= Class(len(_Class_index)-1) { |
Daniel Martà | c15b7b2 | 2018-03-10 16:50:16 +0000 | [diff] [blame] | 27 | return "Class(" + strconv.FormatInt(int64(i), 10) + ")" |
Josh Bleecher Snyder | 5e157db | 2017-04-30 09:14:52 -0700 | [diff] [blame] | 28 | } |
| 29 | return _Class_name[_Class_index[i]:_Class_index[i+1]] |
| 30 | } |