cuelang.org/go@v0.10.1/internal/core/adt/op_string.go (about)

     1  // Code generated by "stringer -type=Op -linecomment"; DO NOT EDIT.
     2  
     3  package adt
     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[NoOp-0]
    12  	_ = x[AndOp-1]
    13  	_ = x[OrOp-2]
    14  	_ = x[SelectorOp-3]
    15  	_ = x[IndexOp-4]
    16  	_ = x[SliceOp-5]
    17  	_ = x[CallOp-6]
    18  	_ = x[BoolAndOp-7]
    19  	_ = x[BoolOrOp-8]
    20  	_ = x[EqualOp-9]
    21  	_ = x[NotOp-10]
    22  	_ = x[NotEqualOp-11]
    23  	_ = x[LessThanOp-12]
    24  	_ = x[LessEqualOp-13]
    25  	_ = x[GreaterThanOp-14]
    26  	_ = x[GreaterEqualOp-15]
    27  	_ = x[MatchOp-16]
    28  	_ = x[NotMatchOp-17]
    29  	_ = x[AddOp-18]
    30  	_ = x[SubtractOp-19]
    31  	_ = x[MultiplyOp-20]
    32  	_ = x[FloatQuotientOp-21]
    33  	_ = x[IntQuotientOp-22]
    34  	_ = x[IntRemainderOp-23]
    35  	_ = x[IntDivideOp-24]
    36  	_ = x[IntModuloOp-25]
    37  	_ = x[InterpolationOp-26]
    38  }
    39  
    40  const _Op_name = "NoOp&|.[][:]()&&||==!!=<<=>>==~!~+-*/quoremdivmod\\()"
    41  
    42  var _Op_index = [...]uint8{0, 4, 5, 6, 7, 9, 12, 14, 16, 18, 20, 21, 23, 24, 26, 27, 29, 31, 33, 34, 35, 36, 37, 40, 43, 46, 49, 52}
    43  
    44  func (i Op) String() string {
    45  	if i < 0 || i >= Op(len(_Op_index)-1) {
    46  		return "Op(" + strconv.FormatInt(int64(i), 10) + ")"
    47  	}
    48  	return _Op_name[_Op_index[i]:_Op_index[i+1]]
    49  }