vendor tsgo
This commit is contained in:
27
tools/tsgo/internal/diagnostics/stringer_generated.go
Normal file
27
tools/tsgo/internal/diagnostics/stringer_generated.go
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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]]
|
||||
}
|
||||
Reference in New Issue
Block a user