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

Method lexNext

expr/parse.go:83–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81}
82
83func (m *LexTokenPager) lexNext() {
84 if !m.done {
85 tok := m.lex.NextToken()
86 if tok.T == lex.TokenEOF {
87 m.done = true
88 }
89 m.tokens = append(m.tokens, tok)
90 }
91}
92
93// Next returns the current token and advances cursor to next one
94func (m *LexTokenPager) Next() lex.Token {

Callers 3

NewLexTokenPagerFunction · 0.95
NextMethod · 0.95
PeekMethod · 0.95

Calls 1

NextTokenMethod · 0.80

Tested by

no test coverage detected