this repo has no description
at master 29 lines 804 B view raw
1// Code generated by "stringer -type=ErrorCode -linecomment"; DO NOT EDIT. 2 3package adt 4 5import "strconv" 6 7func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[EvalError-0] 12 _ = x[UserError-1] 13 _ = x[LegacyUserError-2] 14 _ = x[StructuralCycleError-3] 15 _ = x[IncompleteError-4] 16 _ = x[CycleError-5] 17} 18 19const _ErrorCode_name = "evaluseruserstructural cycleincompletecycle" 20 21var _ErrorCode_index = [...]uint8{0, 4, 8, 12, 28, 38, 43} 22 23func (i ErrorCode) String() string { 24 idx := int(i) - 0 25 if i < 0 || idx >= len(_ErrorCode_index)-1 { 26 return "ErrorCode(" + strconv.FormatInt(int64(i), 10) + ")" 27 } 28 return _ErrorCode_name[_ErrorCode_index[idx]:_ErrorCode_index[idx+1]] 29}