syntaxError returns a syntax error for given position.
(pos int, f string, x ...any)
| 97 | |
| 98 | // syntaxError returns a syntax error for given position. |
| 99 | func (d decoder) syntaxError(pos int, f string, x ...any) error { |
| 100 | line, column := d.Position(pos) |
| 101 | head := fmt.Sprintf("syntax error (line %d:%d): ", line, column) |
| 102 | return errors.New(head+f, x...) |
| 103 | } |
| 104 | |
| 105 | // unmarshalMessage unmarshals into the given protoreflect.Message. |
| 106 | func (d decoder) unmarshalMessage(m protoreflect.Message, checkDelims bool) error { |
no test coverage detected