MCPcopy Create free account
hub / github.com/cel-expr/cel-go / String

Method String

parser/lexer.go:76–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74)
75
76func (t tokenKind) String() string {
77 switch t {
78 case tokError:
79 return "error"
80 case tokEnd:
81 return "end"
82 case tokWhitespace:
83 return "whitespace"
84 case tokComment:
85 return "comment"
86 case tokNull:
87 return "null"
88 case tokFalse:
89 return "false"
90 case tokTrue:
91 return "true"
92 case tokIn:
93 return "in"
94 case tokReservedWord:
95 return "reserved_word"
96 case tokInt:
97 return "int"
98 case tokUint:
99 return "uint"
100 case tokFloat:
101 return "float"
102 case tokString:
103 return "string"
104 case tokBytes:
105 return "bytes"
106 case tokIdent:
107 return "ident"
108 case tokLeftBracket:
109 return "["
110 case tokRightBracket:
111 return "]"
112 case tokLeftBrace:
113 return "{"
114 case tokRightBrace:
115 return "}"
116 case tokLeftParen:
117 return "("
118 case tokRightParen:
119 return ")"
120 case tokDot:
121 return "."
122 case tokComma:
123 return ","
124 case tokMinus:
125 return "-"
126 case tokPlus:
127 return "+"
128 case tokAsterisk:
129 return "*"
130 case tokSlash:
131 return "/"
132 case tokPercent:
133 return "%"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected