Creates a SyntaxError with the current line number.
(msg string)
| 463 | |
| 464 | // Creates a SyntaxError with the current line number. |
| 465 | func (d *Decoder) syntaxError(msg string) error { |
| 466 | return &SyntaxError{Msg: msg, Line: d.line} |
| 467 | } |
| 468 | |
| 469 | // Record that we are ending an element with the given name. |
| 470 | // The name must match the record at the top of the stack, |