aboutsummaryrefslogtreecommitdiff
path: root/cpe/tokentype_string.go
blob: 7b5375861719cf84c8624ceaecf0b1931e968bc3 (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
// Code generated by "stringer -linecomment -type=tokenType"; DO NOT EDIT.

package cpe

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[anyToken-0]
	_ = x[naToken-1]
	_ = x[valToken-2]
}

const _tokenType_name = "anynaval"

var _tokenType_index = [...]uint8{0, 3, 5, 8}

func (i tokenType) String() string {
	if i >= tokenType(len(_tokenType_index)-1) {
		return "tokenType(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _tokenType_name[_tokenType_index[i]:_tokenType_index[i+1]]
}