elvish/parse/string.go

39 lines
1.2 KiB
Go
Raw Normal View History

// Code generated by "stringer -type=PrimaryType,RedirMode,ControlKind -output=string.go"; DO NOT EDIT
2016-01-21 06:57:18 +08:00
package parse
import "fmt"
const _PrimaryType_name = "BadPrimaryBarewordSingleQuotedDoubleQuotedVariableWildcardTildeErrorCaptureOutputCaptureListLambdaMapBraced"
2016-01-21 06:57:18 +08:00
var _PrimaryType_index = [...]uint8{0, 10, 18, 30, 42, 50, 58, 63, 75, 88, 92, 98, 101, 107}
2016-01-21 06:57:18 +08:00
func (i PrimaryType) String() string {
if i < 0 || i >= PrimaryType(len(_PrimaryType_index)-1) {
2016-01-21 06:57:18 +08:00
return fmt.Sprintf("PrimaryType(%d)", i)
}
return _PrimaryType_name[_PrimaryType_index[i]:_PrimaryType_index[i+1]]
}
const _RedirMode_name = "BadRedirModeReadWriteReadWriteAppend"
var _RedirMode_index = [...]uint8{0, 12, 16, 21, 30, 36}
func (i RedirMode) String() string {
if i < 0 || i >= RedirMode(len(_RedirMode_index)-1) {
2016-01-21 06:57:18 +08:00
return fmt.Sprintf("RedirMode(%d)", i)
}
return _RedirMode_name[_RedirMode_index[i]:_RedirMode_index[i+1]]
}
const _ControlKind_name = "BadControlIfControlWhileControlForControlBeginControl"
var _ControlKind_index = [...]uint8{0, 10, 19, 31, 41, 53}
func (i ControlKind) String() string {
if i < 0 || i >= ControlKind(len(_ControlKind_index)-1) {
return fmt.Sprintf("ControlKind(%d)", i)
}
return _ControlKind_name[_ControlKind_index[i]:_ControlKind_index[i+1]]
}