setSyntaxErrorf sets a syntax error with the current line number.
(format string, a ...any)
| 875 | |
| 876 | // setSyntaxErrorf sets a syntax error with the current line number. |
| 877 | func (d *Decoder) setSyntaxErrorf(format string, a ...any) { |
| 878 | msg := fmt.Sprintf(format, a...) |
| 879 | d.err = newSyntaxError("%s (line %d)", msg, d.line) |
| 880 | } |
no test coverage detected