-
Notifications
You must be signed in to change notification settings - Fork 131
/
operation_string.go
47 lines (41 loc) · 1.74 KB
/
operation_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
// Code generated by "stringer -type=Operation"; DO NOT EDIT.
package ast
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[OperationUnknown-0]
_ = x[OperationOr-1]
_ = x[OperationAnd-2]
_ = x[OperationEqual-3]
_ = x[OperationNotEqual-4]
_ = x[OperationLess-5]
_ = x[OperationGreater-6]
_ = x[OperationLessEqual-7]
_ = x[OperationGreaterEqual-8]
_ = x[OperationPlus-9]
_ = x[OperationMinus-10]
_ = x[OperationMul-11]
_ = x[OperationDiv-12]
_ = x[OperationMod-13]
_ = x[OperationNegate-14]
_ = x[OperationNilCoalesce-15]
_ = x[OperationMove-16]
_ = x[OperationCast-17]
_ = x[OperationFailableCast-18]
_ = x[OperationForceCast-19]
_ = x[OperationBitwiseOr-20]
_ = x[OperationBitwiseXor-21]
_ = x[OperationBitwiseAnd-22]
_ = x[OperationBitwiseLeftShift-23]
_ = x[OperationBitwiseRightShift-24]
}
const _Operation_name = "OperationUnknownOperationOrOperationAndOperationEqualOperationNotEqualOperationLessOperationGreaterOperationLessEqualOperationGreaterEqualOperationPlusOperationMinusOperationMulOperationDivOperationModOperationNegateOperationNilCoalesceOperationMoveOperationCastOperationFailableCastOperationForceCastOperationBitwiseOrOperationBitwiseXorOperationBitwiseAndOperationBitwiseLeftShiftOperationBitwiseRightShift"
var _Operation_index = [...]uint16{0, 16, 27, 39, 53, 70, 83, 99, 117, 138, 151, 165, 177, 189, 201, 216, 236, 249, 262, 283, 301, 319, 338, 357, 382, 408}
func (i Operation) String() string {
if i >= Operation(len(_Operation_index)-1) {
return "Operation(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Operation_name[_Operation_index[i]:_Operation_index[i+1]]
}