github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/compile/internal/syntax/operator_string.go (about)

     1  // Code generated by "stringer -type Operator -linecomment"; DO NOT EDIT.
     2  
     3  package syntax
     4  
     5  import "strconv"
     6  
     7  const _Operator_name = ":!<-||&&==!=<<=>>=+-|^*/%&&^<<>>"
     8  
     9  var _Operator_index = [...]uint8{0, 1, 2, 4, 6, 8, 10, 12, 13, 15, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 30, 32}
    10  
    11  func (i Operator) String() string {
    12  	i -= 1
    13  	if i >= Operator(len(_Operator_index)-1) {
    14  		return "Operator(" + strconv.FormatInt(int64(i+1), 10) + ")"
    15  	}
    16  	return _Operator_name[_Operator_index[i]:_Operator_index[i+1]]
    17  }