summaryrefslogtreecommitdiff
path: root/json/tokentype_string.go
blob: 82bd7407161039ac7d73f6e4c5cd93ea8c48264c (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Code generated by "stringer -type tokenType scanner.go"; DO NOT EDIT.

package json

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[tokenBraceO-123]
	_ = x[tokenBraceC-125]
	_ = x[tokenBrackO-91]
	_ = x[tokenBrackC-93]
	_ = x[tokenComma-44]
	_ = x[tokenColon-58]
	_ = x[tokenKeyword-75]
	_ = x[tokenString-83]
	_ = x[tokenNumber-78]
	_ = x[tokenEOF-9220]
	_ = x[tokenInvalid-0]
	_ = x[tokenEquals-61]
}

const _tokenType_name = "tokenInvalidtokenCommatokenColontokenEqualstokenKeywordtokenNumbertokenStringtokenBrackOtokenBrackCtokenBraceOtokenBraceCtokenEOF"

var _tokenType_map = map[tokenType]string{
	0:    _tokenType_name[0:12],
	44:   _tokenType_name[12:22],
	58:   _tokenType_name[22:32],
	61:   _tokenType_name[32:43],
	75:   _tokenType_name[43:55],
	78:   _tokenType_name[55:66],
	83:   _tokenType_name[66:77],
	91:   _tokenType_name[77:88],
	93:   _tokenType_name[88:99],
	123:  _tokenType_name[99:110],
	125:  _tokenType_name[110:121],
	9220: _tokenType_name[121:129],
}

func (i tokenType) String() string {
	if str, ok := _tokenType_map[i]; ok {
		return str
	}
	return "tokenType(" + strconv.FormatInt(int64(i), 10) + ")"
}