Source file src/debug/dwarf/class_string.go

     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  }
    27  
    28  const _Class_name = "ClassUnknownClassAddressClassBlockClassConstantClassExprLocClassFlagClassLinePtrClassLocListPtrClassMacPtrClassRangeListPtrClassReferenceClassReferenceSigClassStringClassReferenceAltClassStringAlt"
    29  
    30  var _Class_index = [...]uint8{0, 12, 24, 34, 47, 59, 68, 80, 95, 106, 123, 137, 154, 165, 182, 196}
    31  
    32  func (i Class) String() string {
    33  	if i < 0 || i >= Class(len(_Class_index)-1) {
    34  		return "Class(" + strconv.FormatInt(int64(i), 10) + ")"
    35  	}
    36  	return _Class_name[_Class_index[i]:_Class_index[i+1]]
    37  }
    38  

View as plain text