syntaxError returns a syntax error for given position.
(pos int, f string, x ...any)
| 115 | |
| 116 | // syntaxError returns a syntax error for given position. |
| 117 | func (d decoder) syntaxError(pos int, f string, x ...any) error { |
| 118 | line, column := d.Position(pos) |
| 119 | head := fmt.Sprintf("syntax error (line %d:%d): ", line, column) |
| 120 | return errors.New(head+f, x...) |
| 121 | } |
| 122 | |
| 123 | // unmarshalMessage unmarshals a message into the given protoreflect.Message. |
| 124 | func (d decoder) unmarshalMessage(m protoreflect.Message, skipTypeURL bool) error { |
no test coverage detected