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

Documentation: cmd/compile/internal/types

     1  // Code generated by "stringer -type EType -trimprefix T"; DO NOT EDIT.
     2  
     3  package types
     4  
     5  import "strconv"
     6  
     7  const _EType_name = "xxxINT8UINT8INT16UINT16INT32UINT32INT64UINT64INTUINTUINTPTRCOMPLEX64COMPLEX128FLOAT32FLOAT64BOOLPTRFUNCSLICEARRAYSTRUCTCHANMAPINTERFORWANYSTRINGUNSAFEPTRIDEALNILBLANKFUNCARGSCHANARGSDDDFIELDSSATUPLENTYPE"
     8  
     9  var _EType_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, 190, 193, 198, 203}
    10  
    11  func (i EType) String() string {
    12  	if i >= EType(len(_EType_index)-1) {
    13  		return "EType(" + strconv.FormatInt(int64(i), 10) + ")"
    14  	}
    15  	return _EType_name[_EType_index[i]:_EType_index[i+1]]
    16  }
    17  

View as plain text