errorf formats the error and terminates processing.
(format string, args ...interface{})
| 130 | |
| 131 | // errorf formats the error and terminates processing. |
| 132 | func (p *parser) errorf(format string, args ...interface{}) { |
| 133 | p.config = nil |
| 134 | format = fmt.Sprintf("%s:%d: %s", p.name, p.lex.lineNumber(), format) |
| 135 | panic(fmt.Errorf(format, args...)) |
| 136 | } |
| 137 | |
| 138 | func (p *parser) stopParse() { |
| 139 | p.lex = nil |
no test coverage detected