(tk tokenKind)
| 67 | } |
| 68 | |
| 69 | func (p *parser) popExpect(tk tokenKind) (*token, errors.StaticError) { |
| 70 | t := p.pop() |
| 71 | if t.kind != tk { |
| 72 | return nil, p.unexpectedTokenError(tk, t) |
| 73 | } |
| 74 | return t, nil |
| 75 | } |
| 76 | |
| 77 | func (p *parser) popExpectOp(op string) (*token, errors.StaticError) { |
| 78 | t := p.pop() |
no test coverage detected