modernc.org/ccgo/v3@v3.16.14/lib/stringer.go (about)

     1  // Code generated by "stringer -output stringer.go -type=exprMode,opKind"; DO NOT EDIT.
     2  
     3  package ccgo
     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[exprAddrOf-1]
    12  	_ = x[exprBool-2]
    13  	_ = x[exprCondInit-3]
    14  	_ = x[exprCondReturn-4]
    15  	_ = x[exprDecay-5]
    16  	_ = x[exprFunc-6]
    17  	_ = x[exprLValue-7]
    18  	_ = x[exprPSelect-8]
    19  	_ = x[exprSelect-9]
    20  	_ = x[exprValue-10]
    21  	_ = x[exprVoid-11]
    22  	_ = x[exprGoPtr-12]
    23  }
    24  
    25  const _exprMode_name = "exprAddrOfexprBoolexprCondInitexprCondReturnexprDecayexprFuncexprLValueexprPSelectexprSelectexprValueexprVoidexprGoPtr"
    26  
    27  var _exprMode_index = [...]uint8{0, 10, 18, 30, 44, 53, 61, 71, 82, 92, 101, 109, 118}
    28  
    29  func (i exprMode) String() string {
    30  	i -= 1
    31  	if i < 0 || i >= exprMode(len(_exprMode_index)-1) {
    32  		return "exprMode(" + strconv.FormatInt(int64(i+1), 10) + ")"
    33  	}
    34  	return _exprMode_name[_exprMode_index[i]:_exprMode_index[i+1]]
    35  }
    36  func _() {
    37  	// An "invalid array index" compiler error signifies that the constant values have changed.
    38  	// Re-run the stringer command to generate them again.
    39  	var x [1]struct{}
    40  	_ = x[opNormal-0]
    41  	_ = x[opArray-1]
    42  	_ = x[opArrayParameter-2]
    43  	_ = x[opFunction-3]
    44  	_ = x[opUnion-4]
    45  	_ = x[opBitfield-5]
    46  	_ = x[opStruct-6]
    47  }
    48  
    49  const _opKind_name = "opNormalopArrayopArrayParameteropFunctionopUnionopBitfieldopStruct"
    50  
    51  var _opKind_index = [...]uint8{0, 8, 15, 31, 41, 48, 58, 66}
    52  
    53  func (i opKind) String() string {
    54  	if i < 0 || i >= opKind(len(_opKind_index)-1) {
    55  		return "opKind(" + strconv.FormatInt(int64(i), 10) + ")"
    56  	}
    57  	return _opKind_name[_opKind_index[i]:_opKind_index[i+1]]
    58  }