mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
701 B
Go
27 lines
701 B
Go
// Code generated by "stringer -type=Tristate -output=tristate_stringer_generated.go"; DO NOT EDIT.
|
|
|
|
package core
|
|
|
|
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[TSUnknown-0]
|
|
_ = x[TSFalse-1]
|
|
_ = x[TSTrue-2]
|
|
}
|
|
|
|
const _Tristate_name = "TSUnknownTSFalseTSTrue"
|
|
|
|
var _Tristate_index = [...]uint8{0, 9, 16, 22}
|
|
|
|
func (i Tristate) String() string {
|
|
idx := int(i) - 0
|
|
if i < 0 || idx >= len(_Tristate_index)-1 {
|
|
return "Tristate(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _Tristate_name[_Tristate_index[idx]:_Tristate_index[idx+1]]
|
|
}
|