MCPcopy Index your code
hub / github.com/prometheus/prometheus / nextToken

Method nextToken

model/textparse/promparse.go:285–291  ·  view source on GitHub ↗

nextToken returns the next token from the promlexer. It skips over tabs and spaces.

()

Source from the content-addressed store, hash-verified

283// nextToken returns the next token from the promlexer. It skips over tabs
284// and spaces.
285func (p *PromParser) nextToken() token {
286 for {
287 if tok := p.l.Lex(); tok != tWhitespace {
288 return tok
289 }
290 }
291}
292
293func (p *PromParser) parseError(exp string, got token) error {
294 e := min(len(p.l.b), p.l.i+1)

Callers 3

NextMethod · 0.95
parseLValsMethod · 0.95
parseMetricSuffixMethod · 0.95

Calls 1

LexMethod · 0.65

Tested by

no test coverage detected