json/internal/lexer/lextype_string.go

35 lines
934 B
Go
Raw Normal View History

2022-11-16 05:11:19 +03:00
// Code generated by "stringer -type=lexType"; DO NOT EDIT.
2022-12-27 02:37:02 +03:00
package lexer
2022-11-16 05:11:19 +03:00
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{}
2022-12-27 02:37:02 +03:00
_ = x[LEOF-0]
_ = x[LError-1]
_ = x[LObjectStart-2]
_ = x[LObjectEnd-3]
_ = x[LObjectKey-4]
_ = x[LObjectValue-5]
_ = x[LArrayStart-6]
_ = x[LArrayEnd-7]
_ = x[LString-8]
_ = x[LNumber-9]
_ = x[LBoolean-10]
_ = x[LNull-11]
2022-11-16 05:11:19 +03:00
}
2022-12-27 02:37:02 +03:00
const _lexType_name = "LEOFLErrorLObjectStartLObjectEndLObjectKeyLObjectValueLArrayStartLArrayEndLStringLNumberLBooleanLNull"
2022-11-16 05:11:19 +03:00
var _lexType_index = [...]uint8{0, 4, 10, 22, 32, 42, 54, 65, 74, 81, 88, 96, 101}
func (i lexType) String() string {
if i < 0 || i >= lexType(len(_lexType_index)-1) {
return "lexType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _lexType_name[_lexType_index[i]:_lexType_index[i+1]]
}