MCPcopy Create free account
hub / github.com/araddon/qlbridge / Next

Method Next

expr/parse.go:94–102  ·  view source on GitHub ↗

Next returns the current token and advances cursor to next one

()

Source from the content-addressed store, hash-verified

92
93// Next returns the current token and advances cursor to next one
94func (m *LexTokenPager) Next() lex.Token {
95 m.lexNext()
96 m.cursor++
97 if m.cursor+1 > len(m.tokens) {
98 //u.Warnf("Next() CRAP? increment cursor: %v of %v %v", m.cursor, len(m.tokens))
99 return eoft
100 }
101 return m.tokens[m.cursor-1]
102}
103
104// Returns the current token, does not advance
105func (m *LexTokenPager) Cur() lex.Token {

Callers

nothing calls this directly

Calls 1

lexNextMethod · 0.95

Tested by

no test coverage detected