MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / setObjectValue

Method setObjectValue

pkg/util/json/parser.go:239–243  ·  view source on GitHub ↗

setObjectValue sets the value for the previously added object key, and transitions state to read the next object key.

(v JSON)

Source from the content-addressed store, hash-verified

237// setObjectValue sets the value for the previously added object key,
238// and transitions state to read the next object key.
239func (p *fastJSONParser) setObjectValue(v JSON) {
240 pairs := p.obj[len(p.obj)-1].pairs
241 pairs[len(pairs)-1].v = v
242 p.state = (*fastJSONParser).parseObjectKey
243}
244
245// buildObject builds top JSON object.
246func (p *fastJSONParser) buildObject() (JSON, error) {

Callers 2

parseObjectValueMethod · 0.95
stackReturnMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected