Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/uptrace/uptrace
/ NextToken
Method
NextToken
pkg/metrics/mql/ast/lexer.go:81–85 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
79
}
80
81
func
(l *lexer) NextToken() *Token {
82
tok := l.PeekToken()
83
l.pos++
84
return
tok
85
}
86
87
func
(l *lexer) PeekToken() *Token {
88
if
l.pos < len(l.tokens) {
Callers
15
parseQuery
Method · 0.45
filters
Method · 0.45
filter
Method · 0.45
filterOp
Method · 0.45
values
Method · 0.45
value
Method · 0.45
boolOp
Method · 0.45
namedExprs
Method · 0.45
term
Method · 0.45
metricExpr
Method · 0.45
metricExpr1
Method · 0.45
rollupWindow
Method · 0.45
Calls
1
PeekToken
Method · 0.95
Tested by
no test coverage detected