type encoding/json/jsontext.Token

67 uses

	encoding/json/jsontext (current package)
		decode.go#L469: func (d *Decoder) ReadToken() (Token, error) {
		decode.go#L472: func (d *decoderState) ReadToken() (Token, error) {
		decode.go#L482: 			return Token{}, err
		decode.go#L497: 				return Token{}, wrapSyntacticError(d, err, pos, 0)
		decode.go#L510: 					return Token{}, d.checkDelimBeforeIOError(delim, err)
		decode.go#L516: 			return Token{}, d.checkDelim(delim, next)
		decode.go#L527: 				return Token{}, wrapSyntacticError(d, err, pos, +1)
		decode.go#L533: 			return Token{}, wrapSyntacticError(d, err, pos-len("null"), +1) // report position at start of literal
		decode.go#L542: 				return Token{}, wrapSyntacticError(d, err, pos, +1)
		decode.go#L548: 			return Token{}, wrapSyntacticError(d, err, pos-len("false"), +1) // report position at start of literal
		decode.go#L557: 				return Token{}, wrapSyntacticError(d, err, pos, +1)
		decode.go#L563: 			return Token{}, wrapSyntacticError(d, err, pos-len("true"), +1) // report position at start of literal
		decode.go#L576: 				return Token{}, wrapSyntacticError(d, err, pos, +1)
		decode.go#L584: 					return Token{}, wrapSyntacticError(d, errInvalidNamespace, pos-n, +1)
		decode.go#L588: 					return Token{}, wrapSyntacticError(d, err, pos-n, +1) // report position at start of string
		decode.go#L594: 			return Token{}, wrapSyntacticError(d, err, pos-n, +1) // report position at start of string
		decode.go#L597: 		return Token{raw: &d.decodeBuffer, num: uint64(d.previousOffsetStart())}, nil
		decode.go#L608: 				return Token{}, wrapSyntacticError(d, err, pos, +1)
		decode.go#L614: 			return Token{}, wrapSyntacticError(d, err, pos-n, +1) // report position at start of number
		decode.go#L617: 		return Token{raw: &d.decodeBuffer, num: uint64(d.previousOffsetStart())}, nil
		decode.go#L621: 			return Token{}, wrapSyntacticError(d, err, pos, +1)
		decode.go#L634: 			return Token{}, wrapSyntacticError(d, err, pos, +1)
		decode.go#L646: 			return Token{}, wrapSyntacticError(d, err, pos, +1)
		decode.go#L655: 			return Token{}, wrapSyntacticError(d, err, pos, +1)
		decode.go#L663: 		return Token{}, wrapSyntacticError(d, err, pos, +1)
		encode.go#L344: func (e *Encoder) WriteToken(t Token) error {
		encode.go#L347: func (e *encoderState) WriteToken(t Token) error {
		token.go#L56: type Token struct {
		token.go#L111: 	Null  Token = rawToken("null")
		token.go#L112: 	False Token = rawToken("false")
		token.go#L113: 	True  Token = rawToken("true")
		token.go#L115: 	BeginObject Token = rawToken("{")
		token.go#L116: 	EndObject   Token = rawToken("}")
		token.go#L117: 	BeginArray  Token = rawToken("[")
		token.go#L118: 	EndArray    Token = rawToken("]")
		token.go#L120: 	zeroString Token = rawToken(`""`)
		token.go#L121: 	zeroNumber Token = rawToken(`0`)
		token.go#L123: 	nanString  Token = String("NaN")
		token.go#L124: 	pinfString Token = String("Infinity")
		token.go#L125: 	ninfString Token = String("-Infinity")
		token.go#L128: func rawToken(s string) Token {
		token.go#L129: 	return Token{raw: &decodeBuffer{buf: []byte(s), prevStart: 0, prevEnd: len(s)}}
		token.go#L133: func Bool(b bool) Token {
		token.go#L143: func String(s string) Token {
		token.go#L147: 	return Token{str: s}
		token.go#L162: func Float32(n float32) Token {
		token.go#L164: 		return Token{str: "F", num: uint64(math.Float32bits(n))}
		token.go#L175: func Float(n float64) Token {
		token.go#L186: 	return Token{str: "f", num: math.Float64bits(n)}
		token.go#L190: func Int(n int64) Token {
		token.go#L194: 	return Token{str: "i", num: uint64(n)}
		token.go#L198: func Uint(n uint64) Token {
		token.go#L202: 	return Token{str: "u", num: uint64(n)}
		token.go#L209: func (t Token) Clone() Token {
		token.go#L237: 		return Token{raw: &decodeBuffer{buf: buf, prevStart: 0, prevEnd: len(buf)}}
		token.go#L244: func (t Token) Bool() bool {
		token.go#L257: func (t Token) appendString(dst []byte, flags *jsonflags.Flags) ([]byte, error) {
		token.go#L278: func (t Token) String() string {
		token.go#L289: func (t Token) string() (string, []byte) {
		token.go#L324: func (t Token) appendNumber(dst []byte, flags *jsonflags.Flags) ([]byte, error) {
		token.go#L369: func (t Token) Float32() (float32, error) {
		token.go#L386: func (t Token) Float() (float64, error) {
		token.go#L391: func (t Token) float(bits int) (float64, error) {
		token.go#L452: func (t Token) Int() (int64, error) {
		token.go#L535: func (t Token) Uint() (uint64, error) {
		token.go#L603: func (t Token) Kind() Kind {