github.com/dolthub/go-mysql-server@v0.18.0/optgen/cmd/support/frameextent_string.go (about) 1 // Code generated by "stringer -type=frameExtent"; DO NOT EDIT. 2 3 package support 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[unboundedPreceding-0] 12 _ = x[startNPreceding-1] 13 _ = x[startCurrentRow-2] 14 _ = x[startNFollowing-3] 15 _ = x[unknown-4] 16 _ = x[endNPreceding-5] 17 _ = x[endCurrentRow-6] 18 _ = x[endNFollowing-7] 19 _ = x[unboundedFollowing-8] 20 } 21 22 const _frameExtent_name = "unboundedPrecedingstartNPrecedingstartCurrentRowstartNFollowingunknownendNPrecedingendCurrentRowendNFollowingunboundedFollowing" 23 24 var _frameExtent_index = [...]uint8{0, 18, 33, 48, 63, 70, 83, 96, 109, 127} 25 26 func (i frameExtent) String() string { 27 if i < 0 || i >= frameExtent(len(_frameExtent_index)-1) { 28 return "frameExtent(" + strconv.FormatInt(int64(i), 10) + ")" 29 } 30 return _frameExtent_name[_frameExtent_index[i]:_frameExtent_index[i+1]] 31 }