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

Method addObjectKey

pkg/util/json/parser.go:232–235  ·  view source on GitHub ↗

addObjectKey adds key to object builder and transitions state to read object value.

(k string)

Source from the content-addressed store, hash-verified

230// addObjectKey adds key to object builder and transitions state to read object
231// value.
232func (p *fastJSONParser) addObjectKey(k string) {
233 p.obj[len(p.obj)-1].Add(k, nil)
234 p.state = (*fastJSONParser).parseObjectValue
235}
236
237// setObjectValue sets the value for the previously added object key,
238// and transitions state to read the next object key.

Callers 1

parseObjectKeyMethod · 0.95

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected