Files
kjol/tools/tsgo/internal/diagnostics/stringer_generated.go
2026-07-09 16:50:43 -04:00

28 lines
793 B
Go

// Code generated by "stringer -type=Category -output=stringer_generated.go"; DO NOT EDIT.
package diagnostics
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[CategoryWarning-0]
_ = x[CategoryError-1]
_ = x[CategorySuggestion-2]
_ = x[CategoryMessage-3]
}
const _Category_name = "CategoryWarningCategoryErrorCategorySuggestionCategoryMessage"
var _Category_index = [...]uint8{0, 15, 28, 46, 61}
func (i Category) String() string {
idx := int(i) - 0
if i < 0 || idx >= len(_Category_index)-1 {
return "Category(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Category_name[_Category_index[idx]:_Category_index[idx+1]]
}