Creates a SyntaxError with the current line number.
(msg string)
| 453 | |
| 454 | // Creates a SyntaxError with the current line number. |
| 455 | func (d *Decoder) syntaxError(msg string) error { |
| 456 | return &SyntaxError{Msg: msg, Line: d.line} |
| 457 | } |
| 458 | |
| 459 | // Record that we are ending an element with the given name. |
| 460 | // The name must match the record at the top of the stack, |