github.com/go-asm/go@v1.21.1-0.20240213172139-40c5ead50c48/cmd/compile/ir/class_string.go (about) 1 // Code generated by "stringer -type=Class name.go"; DO NOT EDIT. 2 3 package ir 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[Pxxx-0] 12 _ = x[PEXTERN-1] 13 _ = x[PAUTO-2] 14 _ = x[PAUTOHEAP-3] 15 _ = x[PPARAM-4] 16 _ = x[PPARAMOUT-5] 17 _ = x[PTYPEPARAM-6] 18 _ = x[PFUNC-7] 19 } 20 21 const _Class_name = "PxxxPEXTERNPAUTOPAUTOHEAPPPARAMPPARAMOUTPTYPEPARAMPFUNC" 22 23 var _Class_index = [...]uint8{0, 4, 11, 16, 25, 31, 40, 50, 55} 24 25 func (i Class) String() string { 26 if i >= Class(len(_Class_index)-1) { 27 return "Class(" + strconv.FormatInt(int64(i), 10) + ")" 28 } 29 return _Class_name[_Class_index[i]:_Class_index[i+1]] 30 }