-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtokenkind_string.go
More file actions
30 lines (24 loc) · 810 Bytes
/
tokenkind_string.go
File metadata and controls
30 lines (24 loc) · 810 Bytes
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=tokenKind -trimprefix=token"; DO NOT EDIT.
package expressions
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[tokenNone-0]
_ = x[tokenEOF-1]
_ = x[tokenNum-2]
_ = x[tokenIdent-3]
_ = x[tokenOp-4]
_ = x[tokenOpen-5]
_ = x[tokenClose-6]
_ = x[tokenSep-7]
}
const _tokenKind_name = "NoneEOFNumIdentOpOpenCloseSep"
var _tokenKind_index = [...]uint8{0, 4, 7, 10, 15, 17, 21, 26, 29}
func (i tokenKind) String() string {
if i < 0 || i >= tokenKind(len(_tokenKind_index)-1) {
return "tokenKind(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _tokenKind_name[_tokenKind_index[i]:_tokenKind_index[i+1]]
}