...

Source file src/cmd/compile/internal/types/kind_string.go

Documentation: cmd/compile/internal/types

     1  // Code generated by "stringer -type Kind -trimprefix T type.go"; DO NOT EDIT.
     2  
     3  package types
     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[Txxx-0]
    12  	_ = x[TINT8-1]
    13  	_ = x[TUINT8-2]
    14  	_ = x[TINT16-3]
    15  	_ = x[TUINT16-4]
    16  	_ = x[TINT32-5]
    17  	_ = x[TUINT32-6]
    18  	_ = x[TINT64-7]
    19  	_ = x[TUINT64-8]
    20  	_ = x[TINT-9]
    21  	_ = x[TUINT-10]
    22  	_ = x[TUINTPTR-11]
    23  	_ = x[TCOMPLEX64-12]
    24  	_ = x[TCOMPLEX128-13]
    25  	_ = x[TFLOAT32-14]
    26  	_ = x[TFLOAT64-15]
    27  	_ = x[TBOOL-16]
    28  	_ = x[TPTR-17]
    29  	_ = x[TFUNC-18]
    30  	_ = x[TSLICE-19]
    31  	_ = x[TARRAY-20]
    32  	_ = x[TSTRUCT-21]
    33  	_ = x[TCHAN-22]
    34  	_ = x[TMAP-23]
    35  	_ = x[TINTER-24]
    36  	_ = x[TFORW-25]
    37  	_ = x[TANY-26]
    38  	_ = x[TSTRING-27]
    39  	_ = x[TUNSAFEPTR-28]
    40  	_ = x[TIDEAL-29]
    41  	_ = x[TNIL-30]
    42  	_ = x[TBLANK-31]
    43  	_ = x[TFUNCARGS-32]
    44  	_ = x[TCHANARGS-33]
    45  	_ = x[TSSA-34]
    46  	_ = x[TTUPLE-35]
    47  	_ = x[TRESULTS-36]
    48  	_ = x[NTYPE-37]
    49  }
    50  
    51  const _Kind_name = "xxxINT8UINT8INT16UINT16INT32UINT32INT64UINT64INTUINTUINTPTRCOMPLEX64COMPLEX128FLOAT32FLOAT64BOOLPTRFUNCSLICEARRAYSTRUCTCHANMAPINTERFORWANYSTRINGUNSAFEPTRIDEALNILBLANKFUNCARGSCHANARGSSSATUPLERESULTSNTYPE"
    52  
    53  var _Kind_index = [...]uint8{0, 3, 7, 12, 17, 23, 28, 34, 39, 45, 48, 52, 59, 68, 78, 85, 92, 96, 99, 103, 108, 113, 119, 123, 126, 131, 135, 138, 144, 153, 158, 161, 166, 174, 182, 185, 190, 197, 202}
    54  
    55  func (i Kind) String() string {
    56  	if i >= Kind(len(_Kind_index)-1) {
    57  		return "Kind(" + strconv.FormatInt(int64(i), 10) + ")"
    58  	}
    59  	return _Kind_name[_Kind_index[i]:_Kind_index[i+1]]
    60  }
    61  

View as plain text