()
| 81 | } |
| 82 | |
| 83 | func (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 |
| 94 | func (m *LexTokenPager) Next() lex.Token { |
no test coverage detected