github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/schemadsl/lexer/tokentype_string.go (about)

     1  // Code generated by "stringer -type=TokenType"; DO NOT EDIT.
     2  
     3  package lexer
     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[TokenTypeError-0]
    12  	_ = x[TokenTypeSyntheticSemicolon-1]
    13  	_ = x[TokenTypeEOF-2]
    14  	_ = x[TokenTypeWhitespace-3]
    15  	_ = x[TokenTypeSinglelineComment-4]
    16  	_ = x[TokenTypeMultilineComment-5]
    17  	_ = x[TokenTypeNewline-6]
    18  	_ = x[TokenTypeKeyword-7]
    19  	_ = x[TokenTypeIdentifier-8]
    20  	_ = x[TokenTypeNumber-9]
    21  	_ = x[TokenTypeLeftBrace-10]
    22  	_ = x[TokenTypeRightBrace-11]
    23  	_ = x[TokenTypeLeftParen-12]
    24  	_ = x[TokenTypeRightParen-13]
    25  	_ = x[TokenTypePipe-14]
    26  	_ = x[TokenTypePlus-15]
    27  	_ = x[TokenTypeMinus-16]
    28  	_ = x[TokenTypeAnd-17]
    29  	_ = x[TokenTypeDiv-18]
    30  	_ = x[TokenTypeEquals-19]
    31  	_ = x[TokenTypeColon-20]
    32  	_ = x[TokenTypeSemicolon-21]
    33  	_ = x[TokenTypeRightArrow-22]
    34  	_ = x[TokenTypeHash-23]
    35  	_ = x[TokenTypeEllipsis-24]
    36  	_ = x[TokenTypeStar-25]
    37  	_ = x[TokenTypeQuestionMark-26]
    38  	_ = x[TokenTypeConditionalOr-27]
    39  	_ = x[TokenTypeConditionalAnd-28]
    40  	_ = x[TokenTypeExclamationPoint-29]
    41  	_ = x[TokenTypeLeftBracket-30]
    42  	_ = x[TokenTypeRightBracket-31]
    43  	_ = x[TokenTypePeriod-32]
    44  	_ = x[TokenTypeComma-33]
    45  	_ = x[TokenTypePercent-34]
    46  	_ = x[TokenTypeLessThan-35]
    47  	_ = x[TokenTypeGreaterThan-36]
    48  	_ = x[TokenTypeLessThanOrEqual-37]
    49  	_ = x[TokenTypeGreaterThanOrEqual-38]
    50  	_ = x[TokenTypeEqualEqual-39]
    51  	_ = x[TokenTypeNotEqual-40]
    52  	_ = x[TokenTypeString-41]
    53  }
    54  
    55  const _TokenType_name = "TokenTypeErrorTokenTypeSyntheticSemicolonTokenTypeEOFTokenTypeWhitespaceTokenTypeSinglelineCommentTokenTypeMultilineCommentTokenTypeNewlineTokenTypeKeywordTokenTypeIdentifierTokenTypeNumberTokenTypeLeftBraceTokenTypeRightBraceTokenTypeLeftParenTokenTypeRightParenTokenTypePipeTokenTypePlusTokenTypeMinusTokenTypeAndTokenTypeDivTokenTypeEqualsTokenTypeColonTokenTypeSemicolonTokenTypeRightArrowTokenTypeHashTokenTypeEllipsisTokenTypeStarTokenTypeQuestionMarkTokenTypeConditionalOrTokenTypeConditionalAndTokenTypeExclamationPointTokenTypeLeftBracketTokenTypeRightBracketTokenTypePeriodTokenTypeCommaTokenTypePercentTokenTypeLessThanTokenTypeGreaterThanTokenTypeLessThanOrEqualTokenTypeGreaterThanOrEqualTokenTypeEqualEqualTokenTypeNotEqualTokenTypeString"
    56  
    57  var _TokenType_index = [...]uint16{0, 14, 41, 53, 72, 98, 123, 139, 155, 174, 189, 207, 226, 244, 263, 276, 289, 303, 315, 327, 342, 356, 374, 393, 406, 423, 436, 457, 479, 502, 527, 547, 568, 583, 597, 613, 630, 650, 674, 701, 720, 737, 752}
    58  
    59  func (i TokenType) String() string {
    60  	if i < 0 || i >= TokenType(len(_TokenType_index)-1) {
    61  		return "TokenType(" + strconv.FormatInt(int64(i), 10) + ")"
    62  	}
    63  	return _TokenType_name[_TokenType_index[i]:_TokenType_index[i+1]]
    64  }