cuelang.org/go@v0.10.1/cue/token/token_string.go (about)

     1  // Code generated by "stringer -type=Token -linecomment"; DO NOT EDIT.
     2  
     3  package token
     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[ILLEGAL-0]
    12  	_ = x[EOF-1]
    13  	_ = x[COMMENT-2]
    14  	_ = x[ATTRIBUTE-3]
    15  	_ = x[literalBeg-4]
    16  	_ = x[IDENT-5]
    17  	_ = x[INT-6]
    18  	_ = x[FLOAT-7]
    19  	_ = x[STRING-8]
    20  	_ = x[INTERPOLATION-9]
    21  	_ = x[BOTTOM-10]
    22  	_ = x[literalEnd-11]
    23  	_ = x[operatorBeg-12]
    24  	_ = x[ADD-13]
    25  	_ = x[SUB-14]
    26  	_ = x[MUL-15]
    27  	_ = x[POW-16]
    28  	_ = x[QUO-17]
    29  	_ = x[IQUO-18]
    30  	_ = x[IREM-19]
    31  	_ = x[IDIV-20]
    32  	_ = x[IMOD-21]
    33  	_ = x[AND-22]
    34  	_ = x[OR-23]
    35  	_ = x[LAND-24]
    36  	_ = x[LOR-25]
    37  	_ = x[BIND-26]
    38  	_ = x[EQL-27]
    39  	_ = x[LSS-28]
    40  	_ = x[GTR-29]
    41  	_ = x[NOT-30]
    42  	_ = x[ARROW-31]
    43  	_ = x[NEQ-32]
    44  	_ = x[LEQ-33]
    45  	_ = x[GEQ-34]
    46  	_ = x[MAT-35]
    47  	_ = x[NMAT-36]
    48  	_ = x[LPAREN-37]
    49  	_ = x[LBRACK-38]
    50  	_ = x[LBRACE-39]
    51  	_ = x[COMMA-40]
    52  	_ = x[PERIOD-41]
    53  	_ = x[ELLIPSIS-42]
    54  	_ = x[RPAREN-43]
    55  	_ = x[RBRACK-44]
    56  	_ = x[RBRACE-45]
    57  	_ = x[SEMICOLON-46]
    58  	_ = x[COLON-47]
    59  	_ = x[OPTION-48]
    60  	_ = x[operatorEnd-49]
    61  	_ = x[keywordBeg-50]
    62  	_ = x[IF-51]
    63  	_ = x[FOR-52]
    64  	_ = x[IN-53]
    65  	_ = x[LET-54]
    66  	_ = x[FUNC-55]
    67  	_ = x[TRUE-56]
    68  	_ = x[FALSE-57]
    69  	_ = x[NULL-58]
    70  	_ = x[keywordEnd-59]
    71  }
    72  
    73  const _Token_name = "ILLEGALEOFCOMMENTATTRIBUTEliteralBegIDENTINTFLOATSTRINGINTERPOLATION_|_literalEndoperatorBeg+-*^/quoremdivmod&|&&||===<>!<-!=<=>==~!~([{,....)]};:?operatorEndkeywordBegifforinletfunctruefalsenullkeywordEnd"
    74  
    75  var _Token_index = [...]uint8{0, 7, 10, 17, 26, 36, 41, 44, 49, 55, 68, 71, 81, 92, 93, 94, 95, 96, 97, 100, 103, 106, 109, 110, 111, 113, 115, 116, 118, 119, 120, 121, 123, 125, 127, 129, 131, 133, 134, 135, 136, 137, 138, 141, 142, 143, 144, 145, 146, 147, 158, 168, 170, 173, 175, 178, 182, 186, 191, 195, 205}
    76  
    77  func (i Token) String() string {
    78  	if i < 0 || i >= Token(len(_Token_index)-1) {
    79  		return "Token(" + strconv.FormatInt(int64(i), 10) + ")"
    80  	}
    81  	return _Token_name[_Token_index[i]:_Token_index[i+1]]
    82  }