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

Method tokenText

parser/pratt_parser.go:258–263  ·  view source on GitHub ↗
(tok token)

Source from the content-addressed store, hash-verified

256}
257
258func (p *prattParserWorker) tokenText(tok token) string {
259 if tok.start >= 0 && tok.end >= tok.start && tok.end <= p.length {
260 return p.content.Slice(int(tok.start), int(tok.end))
261 }
262 return ""
263}
264
265func (p *prattParserWorker) nextID(tok token) int64 {
266 return p.helper.idFromOffsets(tok.start, tok.end)

Callers 10

isStructCreationAheadMethod · 0.95
expectMethod · 0.95
normalizeIdentMethod · 0.95
parseIntLiteralMethod · 0.95
parseUintLiteralMethod · 0.95
parseDoubleLiteralMethod · 0.95
parseStringLiteralMethod · 0.95
parseBytesLiteralMethod · 0.95

Calls 1

SliceMethod · 0.65

Tested by

no test coverage detected