...

Source file src/cmd/compile/internal/ir/class_string.go

Documentation: cmd/compile/internal/ir

     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  }
    31  

View as plain text