github.com/dolthub/go-mysql-server@v0.18.0/sql/memo/arithtype_string.go (about)

     1  // Code generated by "stringer -type=ArithType -linecomment"; DO NOT EDIT.
     2  
     3  package memo
     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[ArithTypeUnknown-0]
    12  	_ = x[ArithTypeBitAnd-1]
    13  	_ = x[ArithTypeBitOr-2]
    14  	_ = x[ArithTypeBitXor-3]
    15  	_ = x[ArithTypePlus-4]
    16  	_ = x[ArithTypeMinus-5]
    17  	_ = x[ArithTypeMult-6]
    18  	_ = x[ArithTypeDiv-7]
    19  	_ = x[ArithTypeIntDiv-8]
    20  	_ = x[ArithTypeMod-9]
    21  	_ = x[ArithTypeShiftLeft-10]
    22  	_ = x[ArithTypeShiftRight-11]
    23  }
    24  
    25  const _ArithType_name = "unknown&|^+-*/div%<<>>"
    26  
    27  var _ArithType_index = [...]uint8{0, 7, 8, 9, 10, 11, 12, 13, 14, 17, 18, 20, 22}
    28  
    29  func (i ArithType) String() string {
    30  	if i >= ArithType(len(_ArithType_index)-1) {
    31  		return "ArithType(" + strconv.FormatInt(int64(i), 10) + ")"
    32  	}
    33  	return _ArithType_name[_ArithType_index[i]:_ArithType_index[i+1]]
    34  }