(token Token, format string, args ...any)
| 153 | } |
| 154 | |
| 155 | func (p *Parser) errorAt(token Token, format string, args ...any) { |
| 156 | if p.err == nil { // show first error |
| 157 | p.err = &file.Error{ |
| 158 | Location: token.Location, |
| 159 | Message: fmt.Sprintf(format, args...), |
| 160 | } |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | func (p *Parser) next() { |
| 165 | if p.hasStash { |
no test coverage detected