(kind Kind, values ...string)
| 187 | } |
| 188 | |
| 189 | func (p *Parser) expect(kind Kind, values ...string) { |
| 190 | if p.current.Is(kind, values...) { |
| 191 | p.next() |
| 192 | return |
| 193 | } |
| 194 | p.error("unexpected token %v", p.current) |
| 195 | } |
| 196 | |
| 197 | // parse functions |
| 198 |
no test coverage detected