github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/walkoperation_string.go (about)

     1  // Code generated by "stringer -type=walkOperation graph_walk_operation.go"; DO NOT EDIT.
     2  
     3  package terraform
     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[walkInvalid-0]
    12  	_ = x[walkApply-1]
    13  	_ = x[walkPlan-2]
    14  	_ = x[walkPlanDestroy-3]
    15  	_ = x[walkRefresh-4]
    16  	_ = x[walkValidate-5]
    17  	_ = x[walkDestroy-6]
    18  	_ = x[walkImport-7]
    19  	_ = x[walkEval-8]
    20  }
    21  
    22  const _walkOperation_name = "walkInvalidwalkApplywalkPlanwalkPlanDestroywalkRefreshwalkValidatewalkDestroywalkImportwalkEval"
    23  
    24  var _walkOperation_index = [...]uint8{0, 11, 20, 28, 43, 54, 66, 77, 87, 95}
    25  
    26  func (i walkOperation) String() string {
    27  	if i >= walkOperation(len(_walkOperation_index)-1) {
    28  		return "walkOperation(" + strconv.FormatInt(int64(i), 10) + ")"
    29  	}
    30  	return _walkOperation_name[_walkOperation_index[i]:_walkOperation_index[i+1]]
    31  }