github.com/hugelgupf/u-root@v0.0.0-20191023214958-4807c632154c/cmds/core/elvish/parse/string.go (about)

     1  // Code generated by "stringer -type=PrimaryType,RedirMode -output=string.go"; DO NOT EDIT.
     2  
     3  package parse
     4  
     5  import "strconv"
     6  
     7  const _PrimaryType_name = "BadPrimaryBarewordSingleQuotedDoubleQuotedVariableWildcardTildeExceptionCaptureOutputCaptureListLambdaMapBraced"
     8  
     9  var _PrimaryType_index = [...]uint8{0, 10, 18, 30, 42, 50, 58, 63, 79, 92, 96, 102, 105, 111}
    10  
    11  func (i PrimaryType) String() string {
    12  	if i < 0 || i >= PrimaryType(len(_PrimaryType_index)-1) {
    13  		return "PrimaryType(" + strconv.FormatInt(int64(i), 10) + ")"
    14  	}
    15  	return _PrimaryType_name[_PrimaryType_index[i]:_PrimaryType_index[i+1]]
    16  }
    17  
    18  const _RedirMode_name = "BadRedirModeReadWriteReadWriteAppend"
    19  
    20  var _RedirMode_index = [...]uint8{0, 12, 16, 21, 30, 36}
    21  
    22  func (i RedirMode) String() string {
    23  	if i < 0 || i >= RedirMode(len(_RedirMode_index)-1) {
    24  		return "RedirMode(" + strconv.FormatInt(int64(i), 10) + ")"
    25  	}
    26  	return _RedirMode_name[_RedirMode_index[i]:_RedirMode_index[i+1]]
    27  }