newUnmarshalErrorBefore wraps err in a SemanticError assuming that d is positioned right before the next token or value, which causes an error. It does not record the next JSON kind as this error is used to indicate the receiving Go value is invalid to unmarshal into (and not a JSON error). However,
(d *jsontext.Decoder, t reflect.Type, err error)
source not stored for this graph (policy: none)
no test coverage detected
searching dependent graphs…