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

Method NextToken

pkg/util/json/tokenizer/decoder.go:114–116  ·  view source on GitHub ↗

NextToken returns a []byte referencing the next logical token in the stream. The []byte is valid until Token is called again. At the end of the input stream, Token returns nil, io.EOF. Token guarantees that the delimiters [ ] { } it returns are properly nested and matched: if Token encounters an un

()

Source from the content-addressed store, hash-verified

112//
113// Commas and colons are elided.
114func (d *Decoder) NextToken() ([]byte, error) {
115 return d.state(d)
116}
117
118func (d *Decoder) stateObjectString() ([]byte, error) {
119 tok := d.scanner.Next()

Callers 2

stateObjectColonMethod · 0.95
parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected