summaryrefslogtreecommitdiff
path: root/symbol/kind_string.go
blob: 61a745b667e30711a40e43796ef0fc7b4d38d8c3 (plain)
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
// Code generated by "stringer -type=Kind"; DO NOT EDIT.

package symbol

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[Unset-0]
	_ = x[Value-1]
	_ = x[Type-2]
	_ = x[Label-3]
	_ = x[Const-4]
	_ = x[Var-5]
	_ = x[Func-6]
	_ = x[Pkg-7]
}

const _Kind_name = "UnsetValueTypeLabelConstVarFuncPkg"

var _Kind_index = [...]uint8{0, 5, 10, 14, 19, 24, 27, 31, 34}

func (i Kind) String() string {
	idx := int(i) - 0
	if i < 0 || idx >= len(_Kind_index)-1 {
		return "Kind(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _Kind_name[_Kind_index[idx]:_Kind_index[idx+1]]
}