next returns the next token.
()
| 88 | |
| 89 | // next returns the next token. |
| 90 | func (t *Template) next() item { |
| 91 | if t.peekCount > 0 { |
| 92 | t.peekCount-- |
| 93 | } else { |
| 94 | t.token[0] = t.lex.nextItem() |
| 95 | } |
| 96 | return t.token[t.peekCount] |
| 97 | } |
| 98 | |
| 99 | // backup backs the input stream up one token. |
| 100 | func (t *Template) backup() { |
no test coverage detected