github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/utils/parser/pipetoken_string.go (about)

     1  // Code generated by "stringer -type=PipeToken"; DO NOT EDIT.
     2  
     3  package parser
     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[PipeTokenNone-0]
    12  	_ = x[PipeTokenPosix-1]
    13  	_ = x[PipeTokenArrow-2]
    14  	_ = x[PipeTokenGeneric-3]
    15  	_ = x[PipeTokenRedirect-4]
    16  	_ = x[PipeTokenAppend-5]
    17  }
    18  
    19  const _PipeToken_name = "PipeTokenNonePipeTokenPosixPipeTokenArrowPipeTokenGenericPipeTokenRedirectPipeTokenAppend"
    20  
    21  var _PipeToken_index = [...]uint8{0, 13, 27, 41, 57, 74, 89}
    22  
    23  func (i PipeToken) String() string {
    24  	if i < 0 || i >= PipeToken(len(_PipeToken_index)-1) {
    25  		return "PipeToken(" + strconv.FormatInt(int64(i), 10) + ")"
    26  	}
    27  	return _PipeToken_name[_PipeToken_index[i]:_PipeToken_index[i+1]]
    28  }