/
state_string.go
40 lines (34 loc) · 1.35 KB
/
state_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Code generated by "stringer -type state"; DO NOT EDIT.
package stack
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[normal-0]
_ = x[betweenRoutine-1]
_ = x[gotRoutineHeader-2]
_ = x[gotFunc-3]
_ = x[gotCreated-4]
_ = x[gotFileFunc-5]
_ = x[gotFileCreated-6]
_ = x[gotUnavail-7]
_ = x[gotRaceHeader1-8]
_ = x[gotRaceHeader2-9]
_ = x[gotRaceOperationHeader-10]
_ = x[gotRaceOperationFunc-11]
_ = x[gotRaceOperationFile-12]
_ = x[betweenRaceOperations-13]
_ = x[gotRaceGoroutineHeader-14]
_ = x[gotRaceGoroutineFunc-15]
_ = x[gotRaceGoroutineFile-16]
_ = x[betweenRaceGoroutines-17]
}
const _state_name = "normalbetweenRoutinegotRoutineHeadergotFuncgotCreatedgotFileFuncgotFileCreatedgotUnavailgotRaceHeader1gotRaceHeader2gotRaceOperationHeadergotRaceOperationFuncgotRaceOperationFilebetweenRaceOperationsgotRaceGoroutineHeadergotRaceGoroutineFuncgotRaceGoroutineFilebetweenRaceGoroutines"
var _state_index = [...]uint16{0, 6, 20, 36, 43, 53, 64, 78, 88, 102, 116, 138, 158, 178, 199, 221, 241, 261, 282}
func (i state) String() string {
if i < 0 || i >= state(len(_state_index)-1) {
return "state(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _state_name[_state_index[i]:_state_index[i+1]]
}