github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/lang/state/functionstate_string.go (about)

     1  // Code generated by "stringer -type=FunctionState"; DO NOT EDIT.
     2  
     3  package state
     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[Undefined-0]
    12  	_ = x[MemAllocated-1]
    13  	_ = x[Assigned-2]
    14  	_ = x[Starting-3]
    15  	_ = x[Executing-4]
    16  	_ = x[Executed-5]
    17  	_ = x[Terminating-6]
    18  	_ = x[AwaitingGC-7]
    19  	_ = x[Stopped-8]
    20  }
    21  
    22  const _FunctionState_name = "UndefinedMemAllocatedAssignedStartingExecutingExecutedTerminatingAwaitingGCStopped"
    23  
    24  var _FunctionState_index = [...]uint8{0, 9, 21, 29, 37, 46, 54, 65, 75, 82}
    25  
    26  func (i FunctionState) String() string {
    27  	if i < 0 || i >= FunctionState(len(_FunctionState_index)-1) {
    28  		return "FunctionState(" + strconv.FormatInt(int64(i), 10) + ")"
    29  	}
    30  	return _FunctionState_name[_FunctionState_index[i]:_FunctionState_index[i+1]]
    31  }