cuelang.org/go@v0.13.0/internal/core/adt/vertexstatus_string.go (about)

     1  // Code generated by "stringer -type=vertexStatus"; DO NOT EDIT.
     2  
     3  package adt
     4  
     5  import "strconv"
     6  
     7  func _() {
     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[unprocessed-0]
    12  	_ = x[evaluating-1]
    13  	_ = x[partial-2]
    14  	_ = x[conjuncts-3]
    15  	_ = x[evaluatingArcs-4]
    16  	_ = x[finalized-5]
    17  }
    18  
    19  const _vertexStatus_name = "unprocessedevaluatingpartialconjunctsevaluatingArcsfinalized"
    20  
    21  var _vertexStatus_index = [...]uint8{0, 11, 21, 28, 37, 51, 60}
    22  
    23  func (i vertexStatus) String() string {
    24  	if i < 0 || i >= vertexStatus(len(_vertexStatus_index)-1) {
    25  		return "vertexStatus(" + strconv.FormatInt(int64(i), 10) + ")"
    26  	}
    27  	return _vertexStatus_name[_vertexStatus_index[i]:_vertexStatus_index[i+1]]
    28  }