...

Source file src/github.com/jmespath/go-jmespath/toktype_string.go

Documentation: github.com/jmespath/go-jmespath

     1  // Code generated by "stringer -type=tokType"; DO NOT EDIT.
     2  
     3  package jmespath
     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[tUnknown-0]
    12  	_ = x[tStar-1]
    13  	_ = x[tDot-2]
    14  	_ = x[tFilter-3]
    15  	_ = x[tFlatten-4]
    16  	_ = x[tLparen-5]
    17  	_ = x[tRparen-6]
    18  	_ = x[tLbracket-7]
    19  	_ = x[tRbracket-8]
    20  	_ = x[tLbrace-9]
    21  	_ = x[tRbrace-10]
    22  	_ = x[tOr-11]
    23  	_ = x[tPipe-12]
    24  	_ = x[tNumber-13]
    25  	_ = x[tUnquotedIdentifier-14]
    26  	_ = x[tQuotedIdentifier-15]
    27  	_ = x[tComma-16]
    28  	_ = x[tColon-17]
    29  	_ = x[tLT-18]
    30  	_ = x[tLTE-19]
    31  	_ = x[tGT-20]
    32  	_ = x[tGTE-21]
    33  	_ = x[tEQ-22]
    34  	_ = x[tNE-23]
    35  	_ = x[tJSONLiteral-24]
    36  	_ = x[tStringLiteral-25]
    37  	_ = x[tCurrent-26]
    38  	_ = x[tExpref-27]
    39  	_ = x[tAnd-28]
    40  	_ = x[tNot-29]
    41  	_ = x[tEOF-30]
    42  }
    43  
    44  const _tokType_name = "tUnknowntStartDottFiltertFlattentLparentRparentLbrackettRbrackettLbracetRbracetOrtPipetNumbertUnquotedIdentifiertQuotedIdentifiertCommatColontLTtLTEtGTtGTEtEQtNEtJSONLiteraltStringLiteraltCurrenttExpreftAndtNottEOF"
    45  
    46  var _tokType_index = [...]uint8{0, 8, 13, 17, 24, 32, 39, 46, 55, 64, 71, 78, 81, 86, 93, 112, 129, 135, 141, 144, 148, 151, 155, 158, 161, 173, 187, 195, 202, 206, 210, 214}
    47  
    48  func (i tokType) String() string {
    49  	if i < 0 || i >= tokType(len(_tokType_index)-1) {
    50  		return "tokType(" + strconv.FormatInt(int64(i), 10) + ")"
    51  	}
    52  	return _tokType_name[_tokType_index[i]:_tokType_index[i+1]]
    53  }
    54  

View as plain text