summaryrefslogtreecommitdiff
path: root/symbol/kind_string.go
blob: 07dbd6adbffcfaa907dbb32bc566d3ef16cf0f7b (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
// 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[Value-0]
	_ = x[Type-1]
	_ = x[Label-2]
	_ = x[Const-3]
	_ = x[Var-4]
	_ = x[Func-5]
	_ = x[Pkg-6]
}

const _Kind_name = "ValueTypeLabelConstVarFuncPkg"

var _Kind_index = [...]uint8{0, 5, 9, 14, 19, 22, 26, 29}

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]]
}