github.com/bir3/gocompiler@v0.9.2202/src/debug/dwarf/class_string.go (about)

     1  // Code generated by "stringer -type=Class"; DO NOT EDIT.
     2  
     3  package dwarf
     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[ClassUnknown-0]
    12  	_ = x[ClassAddress-1]
    13  	_ = x[ClassBlock-2]
    14  	_ = x[ClassConstant-3]
    15  	_ = x[ClassExprLoc-4]
    16  	_ = x[ClassFlag-5]
    17  	_ = x[ClassLinePtr-6]
    18  	_ = x[ClassLocListPtr-7]
    19  	_ = x[ClassMacPtr-8]
    20  	_ = x[ClassRangeListPtr-9]
    21  	_ = x[ClassReference-10]
    22  	_ = x[ClassReferenceSig-11]
    23  	_ = x[ClassString-12]
    24  	_ = x[ClassReferenceAlt-13]
    25  	_ = x[ClassStringAlt-14]
    26  	_ = x[ClassAddrPtr-15]
    27  	_ = x[ClassLocList-16]
    28  	_ = x[ClassRngList-17]
    29  	_ = x[ClassRngListsPtr-18]
    30  	_ = x[ClassStrOffsetsPtr-19]
    31  }
    32  
    33  const _Class_name = "ClassUnknownClassAddressClassBlockClassConstantClassExprLocClassFlagClassLinePtrClassLocListPtrClassMacPtrClassRangeListPtrClassReferenceClassReferenceSigClassStringClassReferenceAltClassStringAltClassAddrPtrClassLocListClassRngListClassRngListsPtrClassStrOffsetsPtr"
    34  
    35  var _Class_index = [...]uint16{0, 12, 24, 34, 47, 59, 68, 80, 95, 106, 123, 137, 154, 165, 182, 196, 208, 220, 232, 248, 266}
    36  
    37  func (i Class) String() string {
    38  	if i < 0 || i >= Class(len(_Class_index)-1) {
    39  		return "Class(" + strconv.FormatInt(int64(i), 10) + ")"
    40  	}
    41  	return _Class_name[_Class_index[i]:_Class_index[i+1]]
    42  }