valuekind_string.go

 1// Code generated by "stringer -type=ValueKind"; DO NOT EDIT.
 2
 3package expand
 4
 5import "strconv"
 6
 7func _() {
 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
19const _ValueKind_name = "UnknownStringNameRefIndexedAssociativeKeepValue"
20
21var _ValueKind_index = [...]uint8{0, 7, 13, 20, 27, 38, 47}
22
23func (i ValueKind) String() string {
24	if i >= ValueKind(len(_ValueKind_index)-1) {
25		return "ValueKind(" + strconv.FormatInt(int64(i), 10) + ")"
26	}
27	return _ValueKind_name[_ValueKind_index[i]:_ValueKind_index[i+1]]
28}