surrealpatch/db/db.gen.go

699 lines
14 KiB
Go
Raw Normal View History

2017-11-16 20:53:39 +00:00
// Code generated by codecgen - DO NOT EDIT.
package db
import (
"errors"
codec1978 "github.com/ugorji/go/codec"
"runtime"
2018-04-14 18:24:25 +00:00
"strconv"
2017-11-16 20:53:39 +00:00
)
const (
// ----- content types ----
2019-06-17 07:01:58 +00:00
codecSelferCcUTF8830 = 1
codecSelferCcRAW830 = 255
2017-11-16 20:53:39 +00:00
// ----- value types used ----
2019-06-17 07:01:58 +00:00
codecSelferValueTypeArray830 = 10
codecSelferValueTypeMap830 = 9
codecSelferValueTypeString830 = 6
codecSelferValueTypeInt830 = 2
codecSelferValueTypeUint830 = 3
codecSelferValueTypeFloat830 = 4
codecSelferBitsize830 = uint8(32 << (^uint(0) >> 63))
2017-11-16 20:53:39 +00:00
)
var (
2019-06-17 07:01:58 +00:00
errCodecSelferOnlyMapOrArrayEncodeToStruct830 = errors.New(`only encoded map or array can be decoded into a struct`)
2017-11-16 20:53:39 +00:00
)
2019-06-17 07:01:58 +00:00
type codecSelfer830 struct{}
2017-11-16 20:53:39 +00:00
func init() {
2019-02-01 00:14:59 +00:00
if codec1978.GenVersion != 10 {
2017-11-16 20:53:39 +00:00
_, file, _, _ := runtime.Caller(0)
2019-02-01 00:14:59 +00:00
panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(codec1978.GenVersion), 10) + ". Re-generate file: " + file)
2017-11-16 20:53:39 +00:00
}
2019-02-01 00:14:59 +00:00
if false {
var _ byte = 0 // reference the types, but skip this branch at build/run time
2017-11-16 20:53:39 +00:00
}
}
func (x *Response) CodecEncodeSelf(e *codec1978.Encoder) {
2019-06-17 07:01:58 +00:00
var h codecSelfer830
2017-11-16 20:53:39 +00:00
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
if false {
2017-12-08 10:05:21 +00:00
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
2017-11-16 20:53:39 +00:00
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
2018-04-14 18:24:25 +00:00
const yyr2 bool = false // struct tag has 'toArray'
var yyq2 = [4]bool{ // should field at this index be written?
x.Time != "", // Time
x.Status != "", // Status
x.Detail != "", // Detail
len(x.Result) != 0, // Result
}
_ = yyq2
2017-11-16 20:53:39 +00:00
if yyr2 || yy2arr2 {
r.WriteArrayStart(4)
} else {
2018-04-14 18:24:25 +00:00
var yynn2 int
2017-11-16 20:53:39 +00:00
for _, b := range yyq2 {
if b {
yynn2++
}
}
r.WriteMapStart(yynn2)
yynn2 = 0
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if yyq2[0] {
if false {
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw(z.BytesView(string(x.Time)))
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, string(x.Time))
}
2017-11-16 20:53:39 +00:00
}
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw([]byte{})
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, "")
}
2017-11-16 20:53:39 +00:00
}
} else {
if yyq2[0] {
r.WriteMapElemKey()
2019-02-01 00:14:59 +00:00
if z.IsJSONHandle() {
z.WriteStr("\"time\"")
} else {
2019-06-17 07:01:58 +00:00
r.EncodeStringEnc(codecSelferCcUTF8830, `time`)
2019-02-01 00:14:59 +00:00
}
2017-11-16 20:53:39 +00:00
r.WriteMapElemValue()
if false {
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw(z.BytesView(string(x.Time)))
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, string(x.Time))
}
2017-11-16 20:53:39 +00:00
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if yyq2[1] {
if false {
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw(z.BytesView(string(x.Status)))
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, string(x.Status))
}
2017-11-16 20:53:39 +00:00
}
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw([]byte{})
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, "")
}
2017-11-16 20:53:39 +00:00
}
} else {
if yyq2[1] {
r.WriteMapElemKey()
2019-02-01 00:14:59 +00:00
if z.IsJSONHandle() {
z.WriteStr("\"status\"")
} else {
2019-06-17 07:01:58 +00:00
r.EncodeStringEnc(codecSelferCcUTF8830, `status`)
2019-02-01 00:14:59 +00:00
}
2017-11-16 20:53:39 +00:00
r.WriteMapElemValue()
if false {
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw(z.BytesView(string(x.Status)))
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, string(x.Status))
}
2017-11-16 20:53:39 +00:00
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if yyq2[2] {
if false {
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw(z.BytesView(string(x.Detail)))
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, string(x.Detail))
}
2017-11-16 20:53:39 +00:00
}
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw([]byte{})
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, "")
}
2017-11-16 20:53:39 +00:00
}
} else {
if yyq2[2] {
r.WriteMapElemKey()
2019-02-01 00:14:59 +00:00
if z.IsJSONHandle() {
z.WriteStr("\"detail\"")
} else {
2019-06-17 07:01:58 +00:00
r.EncodeStringEnc(codecSelferCcUTF8830, `detail`)
2019-02-01 00:14:59 +00:00
}
2017-11-16 20:53:39 +00:00
r.WriteMapElemValue()
if false {
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw(z.BytesView(string(x.Detail)))
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, string(x.Detail))
}
2017-11-16 20:53:39 +00:00
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if yyq2[3] {
if x.Result == nil {
r.EncodeNil()
} else {
if false {
} else {
z.F.EncSliceIntfV(x.Result, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[3] {
r.WriteMapElemKey()
2019-02-01 00:14:59 +00:00
if z.IsJSONHandle() {
z.WriteStr("\"result\"")
} else {
2019-06-17 07:01:58 +00:00
r.EncodeStringEnc(codecSelferCcUTF8830, `result`)
2019-02-01 00:14:59 +00:00
}
2017-11-16 20:53:39 +00:00
r.WriteMapElemValue()
if x.Result == nil {
r.EncodeNil()
} else {
if false {
} else {
z.F.EncSliceIntfV(x.Result, e)
}
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *Response) CodecDecodeSelf(d *codec1978.Decoder) {
2019-06-17 07:01:58 +00:00
var h codecSelfer830
2017-11-16 20:53:39 +00:00
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
if false {
2017-12-08 10:05:21 +00:00
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
2017-11-16 20:53:39 +00:00
} else {
yyct2 := r.ContainerType()
2019-06-17 07:01:58 +00:00
if yyct2 == codecSelferValueTypeMap830 {
2017-11-16 20:53:39 +00:00
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
2019-06-17 07:01:58 +00:00
} else if yyct2 == codecSelferValueTypeArray830 {
2017-11-16 20:53:39 +00:00
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
2019-06-17 07:01:58 +00:00
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct830)
2017-11-16 20:53:39 +00:00
}
}
}
func (x *Response) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2019-06-17 07:01:58 +00:00
var h codecSelfer830
2017-11-16 20:53:39 +00:00
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
2018-04-14 18:24:25 +00:00
yys3 := z.StringView(r.DecodeStringAsBytes())
2017-11-16 20:53:39 +00:00
r.ReadMapElemValue()
switch yys3 {
case "time":
if r.TryDecodeAsNil() {
x.Time = ""
} else {
2018-04-14 18:24:25 +00:00
x.Time = (string)(r.DecodeString())
2017-11-16 20:53:39 +00:00
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ""
} else {
2018-04-14 18:24:25 +00:00
x.Status = (string)(r.DecodeString())
2017-11-16 20:53:39 +00:00
}
case "detail":
if r.TryDecodeAsNil() {
x.Detail = ""
} else {
2018-04-14 18:24:25 +00:00
x.Detail = (string)(r.DecodeString())
2017-11-16 20:53:39 +00:00
}
case "result":
if r.TryDecodeAsNil() {
x.Result = nil
} else {
if false {
} else {
2018-04-14 18:24:25 +00:00
z.F.DecSliceIntfX(&x.Result, d)
2017-11-16 20:53:39 +00:00
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *Response) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2019-06-17 07:01:58 +00:00
var h codecSelfer830
2017-11-16 20:53:39 +00:00
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2018-04-14 18:24:25 +00:00
var yyj9 int
var yyb9 bool
var yyhl9 bool = l >= 0
yyj9++
if yyhl9 {
yyb9 = yyj9 > l
2017-11-16 20:53:39 +00:00
} else {
2018-04-14 18:24:25 +00:00
yyb9 = r.CheckBreak()
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
if yyb9 {
2017-11-16 20:53:39 +00:00
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Time = ""
} else {
2018-04-14 18:24:25 +00:00
x.Time = (string)(r.DecodeString())
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
yyj9++
if yyhl9 {
yyb9 = yyj9 > l
2017-11-16 20:53:39 +00:00
} else {
2018-04-14 18:24:25 +00:00
yyb9 = r.CheckBreak()
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
if yyb9 {
2017-11-16 20:53:39 +00:00
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Status = ""
} else {
2018-04-14 18:24:25 +00:00
x.Status = (string)(r.DecodeString())
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
yyj9++
if yyhl9 {
yyb9 = yyj9 > l
2017-11-16 20:53:39 +00:00
} else {
2018-04-14 18:24:25 +00:00
yyb9 = r.CheckBreak()
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
if yyb9 {
2017-11-16 20:53:39 +00:00
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Detail = ""
} else {
2018-04-14 18:24:25 +00:00
x.Detail = (string)(r.DecodeString())
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
yyj9++
if yyhl9 {
yyb9 = yyj9 > l
2017-11-16 20:53:39 +00:00
} else {
2018-04-14 18:24:25 +00:00
yyb9 = r.CheckBreak()
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
if yyb9 {
2017-11-16 20:53:39 +00:00
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Result = nil
} else {
if false {
} else {
2018-04-14 18:24:25 +00:00
z.F.DecSliceIntfX(&x.Result, d)
2017-11-16 20:53:39 +00:00
}
}
for {
2018-04-14 18:24:25 +00:00
yyj9++
if yyhl9 {
yyb9 = yyj9 > l
2017-11-16 20:53:39 +00:00
} else {
2018-04-14 18:24:25 +00:00
yyb9 = r.CheckBreak()
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
if yyb9 {
2017-11-16 20:53:39 +00:00
break
}
r.ReadArrayElem()
2018-04-14 18:24:25 +00:00
z.DecStructFieldNotFound(yyj9-1, "")
2017-11-16 20:53:39 +00:00
}
r.ReadArrayEnd()
}
func (x *Dispatch) CodecEncodeSelf(e *codec1978.Encoder) {
2019-06-17 07:01:58 +00:00
var h codecSelfer830
2017-11-16 20:53:39 +00:00
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
if false {
2017-12-08 10:05:21 +00:00
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
2017-11-16 20:53:39 +00:00
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
2018-04-14 18:24:25 +00:00
const yyr2 bool = false // struct tag has 'toArray'
var yyq2 = [3]bool{ // should field at this index be written?
x.Query != "", // Query
x.Action != "", // Action
x.Result != nil, // Result
}
_ = yyq2
2017-11-16 20:53:39 +00:00
if yyr2 || yy2arr2 {
r.WriteArrayStart(3)
} else {
2018-04-14 18:24:25 +00:00
var yynn2 int
2017-11-16 20:53:39 +00:00
for _, b := range yyq2 {
if b {
yynn2++
}
}
r.WriteMapStart(yynn2)
yynn2 = 0
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if yyq2[0] {
if false {
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw(z.BytesView(string(x.Query)))
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, string(x.Query))
}
2017-11-16 20:53:39 +00:00
}
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw([]byte{})
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, "")
}
2017-11-16 20:53:39 +00:00
}
} else {
if yyq2[0] {
r.WriteMapElemKey()
2019-02-01 00:14:59 +00:00
if z.IsJSONHandle() {
z.WriteStr("\"query\"")
} else {
2019-06-17 07:01:58 +00:00
r.EncodeStringEnc(codecSelferCcUTF8830, `query`)
2019-02-01 00:14:59 +00:00
}
2017-11-16 20:53:39 +00:00
r.WriteMapElemValue()
if false {
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw(z.BytesView(string(x.Query)))
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, string(x.Query))
}
2017-11-16 20:53:39 +00:00
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if yyq2[1] {
if false {
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw(z.BytesView(string(x.Action)))
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, string(x.Action))
}
2017-11-16 20:53:39 +00:00
}
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw([]byte{})
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, "")
}
2017-11-16 20:53:39 +00:00
}
} else {
if yyq2[1] {
r.WriteMapElemKey()
2019-02-01 00:14:59 +00:00
if z.IsJSONHandle() {
z.WriteStr("\"action\"")
} else {
2019-06-17 07:01:58 +00:00
r.EncodeStringEnc(codecSelferCcUTF8830, `action`)
2019-02-01 00:14:59 +00:00
}
2017-11-16 20:53:39 +00:00
r.WriteMapElemValue()
if false {
} else {
2019-06-17 07:01:58 +00:00
if z.EncBasicHandle().StringToRaw {
r.EncodeStringBytesRaw(z.BytesView(string(x.Action)))
} else {
r.EncodeStringEnc(codecSelferCcUTF8830, string(x.Action))
}
2017-11-16 20:53:39 +00:00
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if yyq2[2] {
if x.Result == nil {
r.EncodeNil()
} else {
if false {
} else {
z.EncFallback(x.Result)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[2] {
r.WriteMapElemKey()
2019-02-01 00:14:59 +00:00
if z.IsJSONHandle() {
z.WriteStr("\"result\"")
} else {
2019-06-17 07:01:58 +00:00
r.EncodeStringEnc(codecSelferCcUTF8830, `result`)
2019-02-01 00:14:59 +00:00
}
2017-11-16 20:53:39 +00:00
r.WriteMapElemValue()
if x.Result == nil {
r.EncodeNil()
} else {
if false {
} else {
z.EncFallback(x.Result)
}
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *Dispatch) CodecDecodeSelf(d *codec1978.Decoder) {
2019-06-17 07:01:58 +00:00
var h codecSelfer830
2017-11-16 20:53:39 +00:00
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
if false {
2017-12-08 10:05:21 +00:00
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
2017-11-16 20:53:39 +00:00
} else {
yyct2 := r.ContainerType()
2019-06-17 07:01:58 +00:00
if yyct2 == codecSelferValueTypeMap830 {
2017-11-16 20:53:39 +00:00
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
2019-06-17 07:01:58 +00:00
} else if yyct2 == codecSelferValueTypeArray830 {
2017-11-16 20:53:39 +00:00
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
2019-06-17 07:01:58 +00:00
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct830)
2017-11-16 20:53:39 +00:00
}
}
}
func (x *Dispatch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
2019-06-17 07:01:58 +00:00
var h codecSelfer830
2017-11-16 20:53:39 +00:00
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
2018-04-14 18:24:25 +00:00
yys3 := z.StringView(r.DecodeStringAsBytes())
2017-11-16 20:53:39 +00:00
r.ReadMapElemValue()
switch yys3 {
case "query":
if r.TryDecodeAsNil() {
x.Query = ""
} else {
2018-04-14 18:24:25 +00:00
x.Query = (string)(r.DecodeString())
2017-11-16 20:53:39 +00:00
}
case "action":
if r.TryDecodeAsNil() {
x.Action = ""
} else {
2018-04-14 18:24:25 +00:00
x.Action = (string)(r.DecodeString())
2017-11-16 20:53:39 +00:00
}
case "result":
if r.TryDecodeAsNil() {
x.Result = nil
} else {
if false {
} else {
2018-04-14 18:24:25 +00:00
z.DecFallback(&x.Result, true)
2017-11-16 20:53:39 +00:00
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *Dispatch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
2019-06-17 07:01:58 +00:00
var h codecSelfer830
2017-11-16 20:53:39 +00:00
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
2018-04-14 18:24:25 +00:00
var yyj8 int
var yyb8 bool
var yyhl8 bool = l >= 0
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
2017-11-16 20:53:39 +00:00
} else {
2018-04-14 18:24:25 +00:00
yyb8 = r.CheckBreak()
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
if yyb8 {
2017-11-16 20:53:39 +00:00
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Query = ""
} else {
2018-04-14 18:24:25 +00:00
x.Query = (string)(r.DecodeString())
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
2017-11-16 20:53:39 +00:00
} else {
2018-04-14 18:24:25 +00:00
yyb8 = r.CheckBreak()
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
if yyb8 {
2017-11-16 20:53:39 +00:00
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Action = ""
} else {
2018-04-14 18:24:25 +00:00
x.Action = (string)(r.DecodeString())
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
2017-11-16 20:53:39 +00:00
} else {
2018-04-14 18:24:25 +00:00
yyb8 = r.CheckBreak()
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
if yyb8 {
2017-11-16 20:53:39 +00:00
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Result = nil
} else {
if false {
} else {
2018-04-14 18:24:25 +00:00
z.DecFallback(&x.Result, true)
2017-11-16 20:53:39 +00:00
}
}
for {
2018-04-14 18:24:25 +00:00
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
2017-11-16 20:53:39 +00:00
} else {
2018-04-14 18:24:25 +00:00
yyb8 = r.CheckBreak()
2017-11-16 20:53:39 +00:00
}
2018-04-14 18:24:25 +00:00
if yyb8 {
2017-11-16 20:53:39 +00:00
break
}
r.ReadArrayElem()
2018-04-14 18:24:25 +00:00
z.DecStructFieldNotFound(yyj8-1, "")
2017-11-16 20:53:39 +00:00
}
r.ReadArrayEnd()
}