github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/opt/optgen/lang/token_string.go (about)

     1  // Code generated by "stringer -type=Token scanner.go"; DO NOT EDIT.
     2  
     3  package lang
     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[ERROR-1]
    13  	_ = x[EOF-2]
    14  	_ = x[IDENT-3]
    15  	_ = x[STRING-4]
    16  	_ = x[NUMBER-5]
    17  	_ = x[WHITESPACE-6]
    18  	_ = x[COMMENT-7]
    19  	_ = x[LPAREN-8]
    20  	_ = x[RPAREN-9]
    21  	_ = x[LBRACKET-10]
    22  	_ = x[RBRACKET-11]
    23  	_ = x[LBRACE-12]
    24  	_ = x[RBRACE-13]
    25  	_ = x[DOLLAR-14]
    26  	_ = x[COLON-15]
    27  	_ = x[ASTERISK-16]
    28  	_ = x[EQUALS-17]
    29  	_ = x[ARROW-18]
    30  	_ = x[AMPERSAND-19]
    31  	_ = x[COMMA-20]
    32  	_ = x[CARET-21]
    33  	_ = x[ELLIPSES-22]
    34  	_ = x[PIPE-23]
    35  }
    36  
    37  const _Token_name = "ILLEGALERROREOFIDENTSTRINGNUMBERWHITESPACECOMMENTLPARENRPARENLBRACKETRBRACKETLBRACERBRACEDOLLARCOLONASTERISKEQUALSARROWAMPERSANDCOMMACARETELLIPSESPIPE"
    38  
    39  var _Token_index = [...]uint8{0, 7, 12, 15, 20, 26, 32, 42, 49, 55, 61, 69, 77, 83, 89, 95, 100, 108, 114, 119, 128, 133, 138, 146, 150}
    40  
    41  func (i Token) String() string {
    42  	if i < 0 || i >= Token(len(_Token_index)-1) {
    43  		return "Token(" + strconv.FormatInt(int64(i), 10) + ")"
    44  	}
    45  	return _Token_name[_Token_index[i]:_Token_index[i+1]]
    46  }