27 lines
743 B
Go
27 lines
743 B
Go
// Code generated by "stringer -type LoxType -trimprefix LoxType"; DO NOT EDIT.
|
|
|
|
package runtime
|
|
|
|
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[LoxTypeString-0]
|
|
_ = x[LoxTypeNumber-1]
|
|
_ = x[LoxTypeBoolean-2]
|
|
_ = x[LoxTypeNil-3]
|
|
_ = x[LoxTypeUndefined-4]
|
|
}
|
|
|
|
const _LoxType_name = "StringNumberBooleanNilUndefined"
|
|
|
|
var _LoxType_index = [...]uint8{0, 6, 12, 19, 22, 31}
|
|
|
|
func (i LoxType) String() string {
|
|
if i < 0 || i >= LoxType(len(_LoxType_index)-1) {
|
|
return "LoxType(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _LoxType_name[_LoxType_index[i]:_LoxType_index[i+1]]
|
|
}
|