-
Notifications
You must be signed in to change notification settings - Fork 3
/
tokentype_string.go
84 lines (78 loc) · 2.29 KB
/
tokentype_string.go
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Code generated by "stringer -type=TokenType"; DO NOT EDIT.
package lexer
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[Invalid-0]
_ = x[EOF-1]
_ = x[Ident-2]
_ = x[String-3]
_ = x[Integer-4]
_ = x[Number-5]
_ = x[Duration-6]
_ = x[Comma-7]
_ = x[Dot-8]
_ = x[OpenBrace-9]
_ = x[CloseBrace-10]
_ = x[OpenParen-11]
_ = x[CloseParen-12]
_ = x[Eq-13]
_ = x[NotEq-14]
_ = x[Re-15]
_ = x[NotRe-16]
_ = x[Gt-17]
_ = x[Gte-18]
_ = x[Lt-19]
_ = x[Lte-20]
_ = x[Add-21]
_ = x[Sub-22]
_ = x[Div-23]
_ = x[Mod-24]
_ = x[Mul-25]
_ = x[Pow-26]
_ = x[True-27]
_ = x[False-28]
_ = x[Nil-29]
_ = x[StatusOk-30]
_ = x[StatusError-31]
_ = x[StatusUnset-32]
_ = x[KindUnspecified-33]
_ = x[KindInternal-34]
_ = x[KindServer-35]
_ = x[KindClient-36]
_ = x[KindProducer-37]
_ = x[KindConsumer-38]
_ = x[And-39]
_ = x[Or-40]
_ = x[Not-41]
_ = x[Pipe-42]
_ = x[Desc-43]
_ = x[Tilde-44]
_ = x[SpanDuration-45]
_ = x[ChildCount-46]
_ = x[Name-47]
_ = x[Status-48]
_ = x[Kind-49]
_ = x[RootName-50]
_ = x[RootServiceName-51]
_ = x[TraceDuration-52]
_ = x[Parent-53]
_ = x[Count-54]
_ = x[Avg-55]
_ = x[Max-56]
_ = x[Min-57]
_ = x[Sum-58]
_ = x[By-59]
_ = x[Coalesce-60]
_ = x[Select-61]
}
const _TokenType_name = "InvalidEOFIdentStringIntegerNumberDurationCommaDotOpenBraceCloseBraceOpenParenCloseParenEqNotEqReNotReGtGteLtLteAddSubDivModMulPowTrueFalseNilStatusOkStatusErrorStatusUnsetKindUnspecifiedKindInternalKindServerKindClientKindProducerKindConsumerAndOrNotPipeDescTildeSpanDurationChildCountNameStatusKindRootNameRootServiceNameTraceDurationParentCountAvgMaxMinSumByCoalesceSelect"
var _TokenType_index = [...]uint16{0, 7, 10, 15, 21, 28, 34, 42, 47, 50, 59, 69, 78, 88, 90, 95, 97, 102, 104, 107, 109, 112, 115, 118, 121, 124, 127, 130, 134, 139, 142, 150, 161, 172, 187, 199, 209, 219, 231, 243, 246, 248, 251, 255, 259, 264, 276, 286, 290, 296, 300, 308, 323, 336, 342, 347, 350, 353, 356, 359, 361, 369, 375}
func (i TokenType) String() string {
if i < 0 || i >= TokenType(len(_TokenType_index)-1) {
return "TokenType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _TokenType_name[_TokenType_index[i]:_TokenType_index[i+1]]
}