Debian Codegraph @

expand/valuekind_string.go

raw
1 // Code generated by "stringer -type=ValueKind"; DO NOT EDIT.
2
3 package expand
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[Unknown-0]
12 _ = x[String-1]
13 _ = x[NameRef-2]
14 _ = x[Indexed-3]
15 _ = x[Associative-4]
16 _ = x[KeepValue-5]
17 }
18
19 const _ValueKind_name = "UnknownStringNameRefIndexedAssociativeKeepValue"
20
21 var _ValueKind_index = [...]uint8{0, 7, 13, 20, 27, 38, 47}
22
23 func (i ValueKind) String() string {
24 idx := int(i) - 0
25 if i < 0 || idx >= len(_ValueKind_index)-1 {
26 return "ValueKind(" + strconv.FormatInt(int64(i), 10) + ")"
27 }
28 return _ValueKind_name[_ValueKind_index[idx]:_ValueKind_index[idx+1]]
29 }