MCPcopy Create free account
hub / github.com/go-json-experiment/json / newSemanticErrorWithPosition

Function newSemanticErrorWithPosition

errors.go:219–262  ·  view source on GitHub ↗

newSemanticErrorWithPosition wraps err in a SemanticError assuming that the error occurred at the provided depth, and length. If err is already a SemanticError, then position information is only injected if it is currently unpopulated. If the position is unpopulated, it is ambiguous where the error

(c coder, t reflect.Type, prevDepth int, prevLength int64, err error)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

MarshalToFuncFunction · 0.85
UnmarshalFromFuncFunction · 0.85
makeMethodArshalerFunction · 0.85

Calls 10

PointerTypeAlias · 0.92
toUnexpectedEOFFunction · 0.85
EncoderMethod · 0.80
DepthLengthMethod · 0.80
OutputOffsetMethod · 0.80
DecoderMethod · 0.80
PreviousTokenOrValueMethod · 0.80
InputOffsetMethod · 0.45
AppendStackPointerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…