From 26b08c94e812af0ecac3f0f3aa0ed386c98411c0 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 16 Nov 2020 08:48:02 +0000 Subject: [PATCH] Update dependencies --- db/db.gen.go | 684 +- db/gen.go | 2 +- go.mod | 48 +- go.sum | 549 +- sql/ast.gen.go | 29991 +++++++++++++++++++++-------------------------- sql/gen.go | 2 +- 6 files changed, 14037 insertions(+), 17239 deletions(-) diff --git a/db/db.gen.go b/db/db.gen.go index 8d06e7e8..8883d09e 100644 --- a/db/db.gen.go +++ b/db/db.gen.go @@ -1,3 +1,5 @@ +// +build go1.6 + // Code generated by codecgen - DO NOT EDIT. package db @@ -11,217 +13,171 @@ import ( const ( // ----- content types ---- - codecSelferCcUTF88297 = 1 - codecSelferCcRAW8297 = 255 + codecSelferCcUTF84034 = 1 + codecSelferCcRAW4034 = 255 // ----- value types used ---- - codecSelferValueTypeArray8297 = 10 - codecSelferValueTypeMap8297 = 9 - codecSelferValueTypeString8297 = 6 - codecSelferValueTypeInt8297 = 2 - codecSelferValueTypeUint8297 = 3 - codecSelferValueTypeFloat8297 = 4 - codecSelferBitsize8297 = uint8(32 << (^uint(0) >> 63)) + codecSelferValueTypeArray4034 = 10 + codecSelferValueTypeMap4034 = 9 + codecSelferValueTypeString4034 = 6 + codecSelferValueTypeInt4034 = 2 + codecSelferValueTypeUint4034 = 3 + codecSelferValueTypeFloat4034 = 4 + codecSelferValueTypeNil4034 = 1 + codecSelferBitsize4034 = uint8(32 << (^uint(0) >> 63)) + codecSelferDecContainerLenNil4034 = -2147483648 ) var ( - errCodecSelferOnlyMapOrArrayEncodeToStruct8297 = errors.New(`only encoded map or array can be decoded into a struct`) + errCodecSelferOnlyMapOrArrayEncodeToStruct4034 = errors.New(`only encoded map or array can be decoded into a struct`) ) -type codecSelfer8297 struct{} +type codecSelfer4034 struct{} + +func codecSelfer4034False() bool { return false } +func codecSelfer4034True() bool { return true } func init() { - if codec1978.GenVersion != 10 { + if codec1978.GenVersion != 20 { _, file, _, _ := runtime.Caller(0) - panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(codec1978.GenVersion), 10) + ". Re-generate file: " + file) - } - if false { - var _ byte = 0 // reference the types, but skip this branch at build/run time + ver := strconv.FormatInt(int64(codec1978.GenVersion), 10) + panic(errors.New("codecgen version mismatch: current: 20, need " + ver + ". Re-generate file: " + file)) } } func (x *Response) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer8297 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer4034 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - 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 - if yyr2 || yy2arr2 { - r.WriteArrayStart(4) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + 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 + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(4) + z.EncWriteArrayElem() + if yyq2[0] { + r.EncodeString(string(x.Time)) } else { - var yynn2 int - for _, b := range yyq2 { - if b { - yynn2++ - } - } - r.WriteMapStart(yynn2) - yynn2 = 0 + r.EncodeString("") } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if yyq2[0] { - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, string(x.Time)) - } - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, "") - } + z.EncWriteArrayElem() + if yyq2[1] { + r.EncodeString(string(x.Status)) } else { - if yyq2[0] { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"time\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, `time`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, string(x.Time)) - } - } + r.EncodeString("") } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if yyq2[1] { - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, string(x.Status)) - } - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, "") - } + z.EncWriteArrayElem() + if yyq2[2] { + r.EncodeString(string(x.Detail)) } else { - if yyq2[1] { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"status\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, `status`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, string(x.Status)) - } - } + r.EncodeString("") } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if yyq2[2] { - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, string(x.Detail)) - } - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, "") - } - } else { - if yyq2[2] { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"detail\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, `detail`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, string(x.Detail)) - } - } - } - 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 { + z.EncWriteArrayElem() + if yyq2[3] { + if x.Result == nil { r.EncodeNil() - } + } else { + z.F.EncSliceIntfV(x.Result, e) + } // end block: if x.Result slice == nil } else { - if yyq2[3] { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"result\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, `result`) - } - r.WriteMapElemValue() - if x.Result == nil { - r.EncodeNil() - } else { - if false { - } else { - z.F.EncSliceIntfV(x.Result, e) - } - } + r.EncodeNil() + } + z.EncWriteArrayEnd() + } else { + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ } } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + z.EncWriteMapStart(yynn2) + yynn2 = 0 + if yyq2[0] { + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"time\"") + } else { + r.EncodeString(`time`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Time)) } + if yyq2[1] { + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"status\"") + } else { + r.EncodeString(`status`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Status)) + } + if yyq2[2] { + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"detail\"") + } else { + r.EncodeString(`detail`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Detail)) + } + if yyq2[3] { + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"result\"") + } else { + r.EncodeString(`result`) + } + z.EncWriteMapElemValue() + if x.Result == nil { + r.EncodeNil() + } else { + z.F.EncSliceIntfV(x.Result, e) + } // end block: if x.Result slice == nil + } + z.EncWriteMapEnd() } } } func (x *Response) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer8297 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer4034 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap8297 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray8297 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil4034 { + *(x) = Response{} + } else if yyct2 == codecSelferValueTypeMap4034 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8297) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray4034 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct4034) } } func (x *Response) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer8297 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer4034 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -230,51 +186,31 @@ func (x *Response) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { case "time": - if r.TryDecodeAsNil() { - x.Time = "" - } else { - x.Time = (string)(r.DecodeString()) - } + x.Time = (string)(string(r.DecodeStringAsBytes())) case "status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = (string)(r.DecodeString()) - } + x.Status = (string)(string(r.DecodeStringAsBytes())) case "detail": - if r.TryDecodeAsNil() { - x.Detail = "" - } else { - x.Detail = (string)(r.DecodeString()) - } + x.Detail = (string)(string(r.DecodeStringAsBytes())) case "result": - if r.TryDecodeAsNil() { - x.Result = nil - } else { - if false { - } else { - z.F.DecSliceIntfX(&x.Result, d) - } - } + z.F.DecSliceIntfX(&x.Result, d) default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *Response) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer8297 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer4034 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj9 int var yyb9 bool @@ -283,242 +219,178 @@ func (x *Response) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = r.CheckBreak() + yyb9 = z.DecCheckBreak() } if yyb9 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Time = "" - } else { - x.Time = (string)(r.DecodeString()) - } + z.DecReadArrayElem() + x.Time = (string)(string(r.DecodeStringAsBytes())) yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = r.CheckBreak() + yyb9 = z.DecCheckBreak() } if yyb9 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = (string)(r.DecodeString()) - } + z.DecReadArrayElem() + x.Status = (string)(string(r.DecodeStringAsBytes())) yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = r.CheckBreak() + yyb9 = z.DecCheckBreak() } if yyb9 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Detail = "" - } else { - x.Detail = (string)(r.DecodeString()) - } + z.DecReadArrayElem() + x.Detail = (string)(string(r.DecodeStringAsBytes())) yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = r.CheckBreak() + yyb9 = z.DecCheckBreak() } if yyb9 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Result = nil - } else { - if false { - } else { - z.F.DecSliceIntfX(&x.Result, d) - } - } + z.DecReadArrayElem() + z.F.DecSliceIntfX(&x.Result, d) for { yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = r.CheckBreak() + yyb9 = z.DecCheckBreak() } if yyb9 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj9-1, "") } - r.ReadArrayEnd() +} + +func (x *Response) IsCodecEmpty() bool { + return !(x.Time != "" && x.Status != "" && x.Detail != "" && len(x.Result) != 0 && true) } func (x *Dispatch) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer8297 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer4034 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + 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 + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(3) + z.EncWriteArrayElem() + if yyq2[0] { + r.EncodeString(string(x.Query)) + } else { + r.EncodeString("") + } + z.EncWriteArrayElem() + if yyq2[1] { + r.EncodeString(string(x.Action)) + } else { + r.EncodeString("") + } + z.EncWriteArrayElem() + if yyq2[2] { + z.EncFallback(x.Result) + } else { + r.EncodeNil() + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - 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 - if yyr2 || yy2arr2 { - r.WriteArrayStart(3) - } else { - var yynn2 int - for _, b := range yyq2 { - if b { - yynn2++ - } + var yynn2 int + for _, b := range yyq2 { + if b { + yynn2++ } - r.WriteMapStart(yynn2) - yynn2 = 0 } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if yyq2[0] { - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, string(x.Query)) - } + z.EncWriteMapStart(yynn2) + yynn2 = 0 + if yyq2[0] { + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"query\"") } else { - r.EncodeStringEnc(codecSelferCcUTF88297, "") - } - } else { - if yyq2[0] { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"query\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, `query`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, string(x.Query)) - } + r.EncodeString(`query`) } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Query)) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if yyq2[1] { - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, string(x.Action)) - } + if yyq2[1] { + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"action\"") } else { - r.EncodeStringEnc(codecSelferCcUTF88297, "") - } - } else { - if yyq2[1] { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"action\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, `action`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, string(x.Action)) - } + r.EncodeString(`action`) } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Action)) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if yyq2[2] { - if x.Result == nil { - r.EncodeNil() - } else { - if false { - } else { - z.EncFallback(x.Result) - } - } + if yyq2[2] { + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"result\"") } else { - r.EncodeNil() - } - } else { - if yyq2[2] { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"result\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF88297, `result`) - } - r.WriteMapElemValue() - if x.Result == nil { - r.EncodeNil() - } else { - if false { - } else { - z.EncFallback(x.Result) - } - } + r.EncodeString(`result`) } + z.EncWriteMapElemValue() + z.EncFallback(x.Result) } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } + z.EncWriteMapEnd() } } } func (x *Dispatch) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer8297 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer4034 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap8297 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray8297 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil4034 { + *(x) = Dispatch{} + } else if yyct2 == codecSelferValueTypeMap4034 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8297) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray4034 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct4034) } } func (x *Dispatch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer8297 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer4034 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -527,45 +399,29 @@ func (x *Dispatch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { case "query": - if r.TryDecodeAsNil() { - x.Query = "" - } else { - x.Query = (string)(r.DecodeString()) - } + x.Query = (string)(string(r.DecodeStringAsBytes())) case "action": - if r.TryDecodeAsNil() { - x.Action = "" - } else { - x.Action = (string)(r.DecodeString()) - } + x.Action = (string)(string(r.DecodeStringAsBytes())) case "result": - if r.TryDecodeAsNil() { - x.Result = nil - } else { - if false { - } else { - z.DecFallback(&x.Result, true) - } - } + z.DecFallback(&x.Result, true) default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *Dispatch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer8297 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer4034 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj8 int var yyb8 bool @@ -574,65 +430,53 @@ func (x *Dispatch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = r.CheckBreak() + yyb8 = z.DecCheckBreak() } if yyb8 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Query = "" - } else { - x.Query = (string)(r.DecodeString()) - } + z.DecReadArrayElem() + x.Query = (string)(string(r.DecodeStringAsBytes())) yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = r.CheckBreak() + yyb8 = z.DecCheckBreak() } if yyb8 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Action = "" - } else { - x.Action = (string)(r.DecodeString()) - } + z.DecReadArrayElem() + x.Action = (string)(string(r.DecodeStringAsBytes())) yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = r.CheckBreak() + yyb8 = z.DecCheckBreak() } if yyb8 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Result = nil - } else { - if false { - } else { - z.DecFallback(&x.Result, true) - } - } + z.DecReadArrayElem() + z.DecFallback(&x.Result, true) for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = r.CheckBreak() + yyb8 = z.DecCheckBreak() } if yyb8 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } - r.ReadArrayEnd() +} + +func (x *Dispatch) IsCodecEmpty() bool { + return !(x.Query != "" && x.Action != "" && x.Result != nil && true) } diff --git a/db/gen.go b/db/gen.go index 9fde5d5f..a7d04222 100644 --- a/db/gen.go +++ b/db/gen.go @@ -14,5 +14,5 @@ package db -//go:generate go get -u github.com/ugorji/go/codec/codecgen@v0.0.0-20181204163529-d75b2dcb6bc8 +//go:generate go get -u github.com/ugorji/go/codec/codecgen //go:generate codecgen -o db.gen.go db.go diff --git a/go.mod b/go.mod index 404c0f1a..9e47e080 100644 --- a/go.mod +++ b/go.mod @@ -1,34 +1,38 @@ module github.com/abcum/surreal -go 1.13 +go 1.15 require ( - cloud.google.com/go v0.49.0 - cloud.google.com/go/logging v1.0.0 - github.com/abcum/bump v0.0.0-20190929092354-46a9c9dbf9ab - github.com/abcum/cork v0.0.0-20190929093632-f45e788b8f1b - github.com/abcum/fibre v0.0.0-20200111125510-14091e123593 - github.com/abcum/rixxdb v0.0.0-20191128162642-00f52d16d2d3 + cloud.google.com/go v0.72.0 + cloud.google.com/go/logging v1.1.2 + github.com/abcum/bump v0.0.0-20201116071400-31a74cba5f19 + github.com/abcum/cork v0.0.0-20201116072055-6b3677fdfab1 + github.com/abcum/fibre v0.0.0-20201116072313-07fa416362b2 + github.com/abcum/rixxdb v0.0.0-20201116083534-c988f1e5d2bb github.com/abcum/tmpl v0.0.0-20190929092451-4b08f6027ed1 // indirect - github.com/dgraph-io/ristretto v0.0.0-20191114170855-99d1bbbf28e6 + github.com/dgraph-io/ristretto v0.0.3 github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/elithrar/simple-scrypt v1.3.0 - github.com/gorilla/websocket v1.4.1 - github.com/hjson/hjson-go v3.0.1+incompatible - github.com/mattn/go-colorable v0.1.4 // indirect - github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b - github.com/pkg/profile v1.3.0 + github.com/google/go-cmp v0.5.3 // indirect + github.com/gorilla/websocket v1.4.2 + github.com/hjson/hjson-go v3.1.0+incompatible + github.com/mattn/go-colorable v0.1.8 // indirect + github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d + github.com/pkg/profile v1.5.0 github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be github.com/rs/xid v1.2.1 github.com/satori/go.uuid v1.2.0 - github.com/sergi/go-diff v1.0.0 - github.com/sirupsen/logrus v1.4.2 + github.com/sergi/go-diff v1.1.0 + github.com/sirupsen/logrus v1.7.0 github.com/smartystreets/goconvey v1.6.4 - github.com/spf13/cobra v0.0.5 - github.com/stackimpact/stackimpact-go v2.3.10+incompatible - github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 - golang.org/x/crypto v0.0.0-20191119213627-4f8c1d86b1ba - golang.org/x/net v0.0.0-20191119073136-fc4aabc6c914 - golang.org/x/text v0.3.2 - golang.org/x/tools v0.0.0-20200110213125-a7a6caa82ab2 // indirect + github.com/spf13/cobra v1.1.1 + github.com/ugorji/go/codec v1.2.0 + github.com/ugorji/go/codec/codecgen v1.2.0 // indirect + golang.org/x/crypto v0.0.0-20201112155050-0c6587e931a9 + golang.org/x/net v0.0.0-20201110031124-69a78807bb2b + golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58 // indirect + golang.org/x/text v0.3.4 + golang.org/x/tools v0.0.0-20201116002733-ac45abd4c88c // indirect + google.golang.org/appengine v1.6.7 // indirect + google.golang.org/genproto v0.0.0-20201113130914-ce600e9a6f9e // indirect ) diff --git a/go.sum b/go.sum index 9ca5bd72..ff2a08ea 100644 --- a/go.sum +++ b/go.sum @@ -1,178 +1,344 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7pg= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.49.0 h1:CH+lkubJzcPYB1Ggupcq0+k8Ni2ILdG2lYjDIgavDBQ= -cloud.google.com/go v0.49.0/go.mod h1:hGvAdzcWNbyuxS3nWhD7H2cIJxjRRTRLQVB0bdputVY= -cloud.google.com/go/bigquery v1.0.1 h1:hL+ycaJpVE9M7nLoiXb/Pn10ENE2u+oddxbD8uu0ZVU= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.71.0/go.mod h1:qZfY4Y7AEIQwG/fQYD3xrxLNkQZ0Xzf3HGeqCkA6LVM= +cloud.google.com/go v0.72.0 h1:eWRCuwubtDrCJG0oSUMgnsbD4CmPFQF2ei4OFbXvwww= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/datastore v1.0.0 h1:Kt+gOPPp2LEPWp8CSfxhsM8ik9CcyE/gYu+0r+RnZvM= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/logging v1.0.0 h1:kaunpnoEh9L4hu6JUsBa8Y20LBfKnCuDhKUgdZp7oK8= -cloud.google.com/go/logging v1.0.0/go.mod h1:V1cc3ogwobYzQq5f2R7DS/GvRIrI4FKj01Gs5glwAls= -cloud.google.com/go/pubsub v1.0.1 h1:W9tAK3E57P75u0XLLR82LZyw8VpAnhmyTOxW9qzmyj8= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= +cloud.google.com/go/logging v1.1.2 h1:KNALX0NZn8UJhqKnqoHxhMqyoZfBZoh5wF7CQJZ5XrU= +cloud.google.com/go/logging v1.1.2/go.mod h1:KrljuAHIw631j9+QXsnq9vDwsrwmdxfGpivMR68M7DY= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/storage v1.0.0 h1:VV2nUM3wwLLGh9lSABFgZMjInyUbJeaRSE64WuAIQ+4= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/abcum/bump v0.0.0-20190929092354-46a9c9dbf9ab h1:S7Bp0inII96zGek8nipouocogy9xjMcJuDUKIb/+jkw= -github.com/abcum/bump v0.0.0-20190929092354-46a9c9dbf9ab/go.mod h1:nhz3F2Uy1ra958EB0V4uR1WjTdLmpiznz7sqMdRBi7A= -github.com/abcum/cork v0.0.0-20190929093632-f45e788b8f1b h1:R/fzwNDZALJjuU9zjtJ8z1YTp03xkePY7ITjfaTppbA= -github.com/abcum/cork v0.0.0-20190929093632-f45e788b8f1b/go.mod h1:t54olPax+YxSe0VIdutFPcEupQhkg7Y3QA8FzxNe6Po= -github.com/abcum/fibre v0.0.0-20200111125510-14091e123593 h1:mD/eFIMS97dc8cAmPNa2DbakLJE2jwTItReMWCP2SWk= -github.com/abcum/fibre v0.0.0-20200111125510-14091e123593/go.mod h1:+eFxgfBo6LCF13y5Eq3+ElYlHebIGIf4bBaqP2z83yo= -github.com/abcum/rixxdb v0.0.0-20191128162642-00f52d16d2d3 h1:ALTpftzuUr/6N2HU+IRHtdWlhWO/F5PTATMDXSP+lXg= -github.com/abcum/rixxdb v0.0.0-20191128162642-00f52d16d2d3/go.mod h1:6lIALuvT453ADA/5AFRXGLDNcc3sqIvt4ISaKyPeTLg= +github.com/abcum/bump v0.0.0-20201116071400-31a74cba5f19 h1:FmvfNT034i2bxnBu18IL4mgwbQoJlySshTCVDmag0uk= +github.com/abcum/bump v0.0.0-20201116071400-31a74cba5f19/go.mod h1:4I2T23JoKcYIVfkro3Y5Lkay4kqEyna5FmLfkHgcTb8= +github.com/abcum/cork v0.0.0-20201116072055-6b3677fdfab1 h1:HRy+gOcIbmHi2CHY/kVgbqJN0igBNj20Cl4u4Eg9d2g= +github.com/abcum/cork v0.0.0-20201116072055-6b3677fdfab1/go.mod h1:4NyuORcAT6R8JYsS+CDcBa0TmSPnP7n0Kxrxiq9EZLw= +github.com/abcum/fibre v0.0.0-20201116072313-07fa416362b2 h1:B9dvnw2Pt/V8wZaH/OcoIdi7CEkTHwq96Bwrx2AeCCo= +github.com/abcum/fibre v0.0.0-20201116072313-07fa416362b2/go.mod h1:naD9ybsRTyR816GnsLj4QQsh9fKfQSutemK/zrTYJto= +github.com/abcum/rixxdb v0.0.0-20201116083534-c988f1e5d2bb h1:iS1RpYDGSvhFoCzO2zTMMXLPNG7KS+ezm38i9rpDwuM= +github.com/abcum/rixxdb v0.0.0-20201116083534-c988f1e5d2bb/go.mod h1:/n9dcXlrp22Yy2p+0n9DynExr5Ne/VVuGvQfdgC7U3I= github.com/abcum/tmpl v0.0.0-20190929092451-4b08f6027ed1 h1:hRp2bOK7p4HTCCFl4v0apR309NuN1qpKnWnX21JSCHQ= github.com/abcum/tmpl v0.0.0-20190929092451-4b08f6027ed1/go.mod h1:T/xXRVJ6YMMHqf+MiKW6KELsEmb2n4eNMsaNQ6lI5M8= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= +github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgraph-io/ristretto v0.0.0-20191114170855-99d1bbbf28e6 h1:liDEMz8LbPxfuI8e/noprwccn6gZGv2rN1AgucbxjHs= -github.com/dgraph-io/ristretto v0.0.0-20191114170855-99d1bbbf28e6/go.mod h1:T40EBc7CJke8TkpiYfGGKAeFjSaxuFXhuXRyumBd6RE= +github.com/dgraph-io/ristretto v0.0.3 h1:jh22xisGBjrEVnRZ1DVTpBVQm0Xndu8sMl0CWDzSIBI= +github.com/dgraph-io/ristretto v0.0.3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= +github.com/dgrijalva/jwt-go v1.0.2 h1:KPldsxuKGsS2FPWsNeg9ZO18aCrGKujPoWXn2yo+KQM= github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 h1:tdlZCpZ/P9DhczCTSixgIKmwPv6+wP5DGjqLYw5SUiA= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= github.com/elithrar/simple-scrypt v1.3.0 h1:KIlOlxdoQf9JWKl5lMAJ28SY2URB0XTRDn2TckyzAZg= github.com/elithrar/simple-scrypt v1.3.0/go.mod h1:U2XQRI95XHY0St410VE3UjT7vuKb1qPwrl/EJwEqnZo= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3 h1:x95R7cp+rSeeqAMI2knLtQ0DKlaBhv2NrtrOvafPHRo= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM= -github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 h1:l5lAOZEym3oK3SQ2HBHWsJUfbNBiTXJDeW2QDxw9AQ0= +github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= +github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hjson/hjson-go v3.0.1+incompatible h1:JwOXblcMiBbiWue7iPkoFK9oXSnW8n+qXh/0Fio6TCo= -github.com/hjson/hjson-go v3.0.1+incompatible/go.mod h1:qsetwF8NlsTsOTwZTApNlTCerV+b2GjYRRcIk4JMFio= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= +github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= +github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/hjson/hjson-go v0.2.3 h1:KhG7/PSxTibbYOzFso5FoiX2gWePcANaCsvM1WE/bTo= +github.com/hjson/hjson-go v3.1.0+incompatible h1:DY/9yE8ey8Zv22bY+mHV1uk2yRy0h8tKhZ77hEdi0Aw= +github.com/hjson/hjson-go v3.1.0+incompatible/go.mod h1:qsetwF8NlsTsOTwZTApNlTCerV+b2GjYRRcIk4JMFio= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024 h1:rBMNdlhTLzJjJSDIjNEXX1Pz3Hmwmz91v+zycvx9PJc= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4= -github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= +github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8= +github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-isatty v0.0.3 h1:ns/ykhmWi7G9O+8a448SecJU3nSMBXJfqQkl0upE1jI= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI= +github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.3.3 h1:SzB1nHZ2Xi+17FP0zVQBHIZqvwRN9408fJO8h+eeNA8= +github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/ory/graceful v0.1.1 h1:zx+8tDObLPrG+7Tc8jKYlXsqWnLtOQA1IZ/FAAKHMXU= github.com/ory/graceful v0.1.1/go.mod h1:zqu70l95WrKHF4AZ6tXHvAqAvpY6M7g6ttaAVcMm7KU= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/profile v1.3.0 h1:OQIvuDgm00gWVWGTf4m4mCt6W1/0YqU7Ntg0mySWgaI= -github.com/pkg/profile v1.3.0/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/profile v1.5.0 h1:042Buzk+NhDI+DeSAA62RwJL8VAuZUMQZUjCsRz1Mug= +github.com/pkg/profile v1.5.0/go.mod h1:qBsxPvzyUincmltOk6iyRVxHYg4adc0OFOv72ZdLa18= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= +github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be h1:ta7tUOvsPHVHGom5hKW5VXNc2xZIkfCKP8iaqOyYtUQ= github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be/go.mod h1:MIDFMn7db1kT65GmV94GzpX9Qdi7N/pQlwb+AN8wh+Q= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rs/xid v1.2.1 h1:mhH9Nq+C1fY2l1XIpgxIiUOfNpRBYH1kKcr+qfKgjRc= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= -github.com/segmentio/ksuid v1.0.2 h1:9yBfKyw4ECGTdALaF09Snw3sLJmYIX6AbPJrAy6MrDc= -github.com/segmentio/ksuid v1.0.2/go.mod h1:BXuJDr2byAiHuQaQtSKoXh1J0YmUDurywOXgB2w+OSU= -github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= -github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/segmentio/ksuid v1.0.3 h1:FoResxvleQwYiPAVKe1tMUlEirodZqlqglIuFsdDntY= +github.com/segmentio/ksuid v1.0.3/go.mod h1:/XUiZBD3kVx5SmUOl55voK5yeAbBNNIed+2O73XgrPE= +github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= +github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.7.0 h1:ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM= +github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/smartystreets/assertions v1.2.0 h1:42S6lae5dvLc7BrLu/0ugRtcFVjoJNMC/N3yZFZkDFs= +github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ= +github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.5 h1:f0B+LkLX6DtmRH1isoNA9VTtNUK9K8xYd28JNNfOv/s= -github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= +github.com/spf13/cobra v1.1.1 h1:KfztREH0tPxJJ+geloSLaAkaPkr4ki2Er5quFV1TDo4= +github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/stackimpact/stackimpact-go v2.3.10+incompatible h1:ySvQuFaxqpFEMq/IZElqt1nvYgWMoRpkQ9VAzZoDpJ0= -github.com/stackimpact/stackimpact-go v2.3.10+incompatible/go.mod h1:Seecan0KCHJ0D5MYjIhx9TddZ0p53TicSrE9sBdovcU= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/ugorji/go v0.0.0-20181204163529-d75b2dcb6bc8 h1:Kcv6ck5PWsaDifMwDDgexKfbmP1k63r3tcVppPa+FyM= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 h1:3SVOIvH7Ae1KRYyQWRjXWJEA9sS/c/pjvH++55Gr648= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= +github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/ugorji/go v1.2.0 h1:6eXlzYLLwZwXroJx9NyqbYcbv/d93twiOzQLDewE6qM= +github.com/ugorji/go v1.2.0/go.mod h1:1ny++pKMXhLWrwWV5Nf+CbOuZJhMoaFD+0GMFfd8fEc= +github.com/ugorji/go/codec v1.2.0 h1:As6RccOIlbm9wHuWYMlB30dErcI+4WiKWsYsmPkyrUw= +github.com/ugorji/go/codec v1.2.0/go.mod h1:dXvG35r7zTX6QImXOSFhGMmKtX+wJ7VTWzGvYQGIjBs= +github.com/ugorji/go/codec/codecgen v1.2.0 h1:sQYhQDKCFggI9sYk8W1iJVMidnRRe3+gsn9PHUBCIko= +github.com/ugorji/go/codec/codecgen v1.2.0/go.mod h1:EnNBZYcRZ0jgMFMtGRaOXKRmy14SnODxEC36AXrbmLI= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0 h1:C9hSCOW830chIVkdja34wa6Ky+IzWllkUinR+BtRZd4= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5 h1:dntmOdLpSpHlVqbW5Eay97DelsZHe+55D+xC6i0dDS0= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191119213627-4f8c1d86b1ba h1:9bFeDpN3gTqNanMVqNcoR/pJQuP5uroC3t1D7eXozTE= -golang.org/x/crypto v0.0.0-20191119213627-4f8c1d86b1ba/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201112155050-0c6587e931a9 h1:umElSU9WZirRdgu2yFHY0ayQkEnKiOC1TtM3fWXFnoU= +golang.org/x/crypto v0.0.0-20201112155050-0c6587e931a9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136 h1:A1gGSx58LAGVHUUsOf7IiR0u8Xb6W51gRwfDBhkdcaw= golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -181,15 +347,26 @@ golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTk golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de h1:5hukYrvBGR8/eNkX5mdUezrA6JiaEZDtJb9Ei+1LlBs= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -198,96 +375,258 @@ golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191119073136-fc4aabc6c914 h1:MlY3mEfbnWGmUi4rtHOtNnnnN4UJRGSyLPx+DXA5Sq4= -golang.org/x/net v0.0.0-20191119073136-fc4aabc6c914/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201026091529-146b70c837a4/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b h1:uwuIcX0g4Yl1NC5XAz37xsr2lTtcqevgzYNVt49waME= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43 h1:ld7aEMNHoBnnDAX15v1T6z31v8HwR2A9FYOuAhWqkwc= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58 h1:Mj83v+wSRNEar42a/MQgxk9X42TdEmrOl9i+y8WbxLo= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9 h1:SQFwaSi55rU7vdNs9Yr0Z324VNlrF+0wMqRXT4St8ck= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0 h1:HyfiK1WMnHj5FXFXatD+Qs1A/xC2Run6RzeW1SyHxpc= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201113233024-12cec1faf1ba h1:xmhUJGQGbxlod18iJGqVEp9cHIPLl7QiX2aA3to708s= +golang.org/x/sys v0.0.0-20201113233024-12cec1faf1ba/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190328211700-ab21143f2384 h1:TFlARGu6Czu1z7q93HTxcP1P+/ZFC/IKythI5RzrnRg= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191127201027-ecd32218bd7f h1:3MlESg/jvTr87F4ttA/q4B+uhe/q6qleC9/DP+IwQmY= -golang.org/x/tools v0.0.0-20191127201027-ecd32218bd7f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200110213125-a7a6caa82ab2 h1:V9r/14uGBqLgNlHRYWdVqjMdWkcOHnE2KG8DwVqQSEc= -golang.org/x/tools v0.0.0-20200110213125-a7a6caa82ab2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201028224754-2c115999a7f0/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201030143252-cf7a54d06671/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201105220310-78b158585360/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd h1:kJP9fbfkpUoA4y03Nxor8be+YbShcXP16fc7G4nlgpw= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201116002733-ac45abd4c88c h1:quJUizHRFn7XriXTIOCLKSr76x2cMbNGfvfy9ubOO0g= +golang.org/x/tools v0.0.0-20201116002733-ac45abd4c88c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.14.0 h1:uMf5uLi4eQMRrMKhCplNik4U4H8Z6C1br3zOtAa/aDE= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.34.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.35.0 h1:TBCmTTxUrRDA1iTctnK/fIeitxIZ+TQuaf0j29fmCGo= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1 h1:QzqyMA1tlu6CgqCDUtU9V+ZKhLFT2dkJuANu5QaxI3I= google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6 h1:lMO5rYAqUxkmaj76jAkRUvt5JZgFymx/+Q5Mzfivuhc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190708153700-3bdd9d9f5532/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= -google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9 h1:6XzpBoANz1NqMNfDXzc2QmHmbb1vyMsvRfoP5rM+K1I= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201030142918-24207fddd1c3/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201106154455-f9bfe239b0ba/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb h1:MoNcrN5yaH+35Ge8RUwFbL7ekwq9ED2fiDpgWKrR29w= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201113130914-ce600e9a6f9e h1:jRAe+6EDD0LNrVzmjx7FxBivivOZTKnXMbH5lvmxLP8= +google.golang.org/genproto v0.0.0-20201113130914-ce600e9a6f9e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1 h1:j6XxA85m/6txkUCHvzlV5f+HBNl/1r5cZ2A/3IEFOO8= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.33.2 h1:EQyQC3sa8M+p6Ulc8yy9SWSS2GVwyRc83gAbG8lrl4o= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3 h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXeM= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/sql/ast.gen.go b/sql/ast.gen.go index 344e1f15..6636dc47 100644 --- a/sql/ast.gen.go +++ b/sql/ast.gen.go @@ -1,3 +1,5 @@ +// +build go1.6 + // Code generated by codecgen - DO NOT EDIT. package sql @@ -13,119 +15,105 @@ import ( const ( // ----- content types ---- - codecSelferCcUTF85519 = 1 - codecSelferCcRAW5519 = 255 + codecSelferCcUTF88312 = 1 + codecSelferCcRAW8312 = 255 // ----- value types used ---- - codecSelferValueTypeArray5519 = 10 - codecSelferValueTypeMap5519 = 9 - codecSelferValueTypeString5519 = 6 - codecSelferValueTypeInt5519 = 2 - codecSelferValueTypeUint5519 = 3 - codecSelferValueTypeFloat5519 = 4 - codecSelferBitsize5519 = uint8(32 << (^uint(0) >> 63)) + codecSelferValueTypeArray8312 = 10 + codecSelferValueTypeMap8312 = 9 + codecSelferValueTypeString8312 = 6 + codecSelferValueTypeInt8312 = 2 + codecSelferValueTypeUint8312 = 3 + codecSelferValueTypeFloat8312 = 4 + codecSelferValueTypeNil8312 = 1 + codecSelferBitsize8312 = uint8(32 << (^uint(0) >> 63)) + codecSelferDecContainerLenNil8312 = -2147483648 ) var ( - errCodecSelferOnlyMapOrArrayEncodeToStruct5519 = errors.New(`only encoded map or array can be decoded into a struct`) + errCodecSelferOnlyMapOrArrayEncodeToStruct8312 = errors.New(`only encoded map or array can be decoded into a struct`) ) -type codecSelfer5519 struct{} +type codecSelfer8312 struct{} + +func codecSelfer8312False() bool { return false } +func codecSelfer8312True() bool { return true } func init() { - if codec1978.GenVersion != 10 { + if codec1978.GenVersion != 20 { _, file, _, _ := runtime.Caller(0) - panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(codec1978.GenVersion), 10) + ". Re-generate file: " + file) + ver := strconv.FormatInt(int64(codec1978.GenVersion), 10) + panic(errors.New("codecgen version mismatch: current: 20, need " + ver + ". Re-generate file: " + file)) } - if false { - var _ byte = 0 // reference the types, but skip this branch at build/run time - var v0 pkg1_language.Tag - var v1 time.Duration - _, _ = v0, v1 + if false { // reference the types, but skip this branch at build/run time + var _ pkg1_language.Tag + var _ time.Duration } } func (x *Query) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Statements); yyxt4 != nil { + z.EncExtension(x.Statements, yyxt4) + x.Statements.CodecEncodeSelf(e) + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Statements\"") } else { - r.WriteMapStart(1) + r.EncodeString(`Statements`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Statements == nil { - r.EncodeNil() - } else { - x.Statements.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Statements\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Statements`) - } - r.WriteMapElemValue() - if x.Statements == nil { - r.EncodeNil() - } else { - x.Statements.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + z.EncWriteMapElemValue() + if yyxt5 := z.Extension(x.Statements); yyxt5 != nil { + z.EncExtension(x.Statements, yyxt5) + x.Statements.CodecEncodeSelf(e) } + z.EncWriteMapEnd() } } } func (x *Query) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Query{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } func (x *Query) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -134,17 +122,17 @@ func (x *Query) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { case "Statements": - if r.TryDecodeAsNil() { - x.Statements = nil + if yyxt5 := z.Extension(x.Statements); yyxt5 != nil { + z.DecExtension(&x.Statements, yyxt5) } else { x.Statements.CodecDecodeSelf(d) } @@ -152,175 +140,136 @@ func (x *Query) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *Query) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l } else { - yyb5 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } - if yyb5 { - r.ReadArrayEnd() + if yyb6 { + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Statements = nil + z.DecReadArrayElem() + if yyxt8 := z.Extension(x.Statements); yyxt8 != nil { + z.DecExtension(&x.Statements, yyxt8) } else { x.Statements.CodecDecodeSelf(d) } for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l } else { - yyb5 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } - if yyb5 { + if yyb6 { break } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") } - r.ReadArrayEnd() +} + +func (x *Query) IsCodecEmpty() bool { + return !(len(x.Statements) != 0 && true) } func (x Statements) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encStatements((Statements)(x), e) - } - } + h.encStatements((Statements)(x), e) + } // end block: if x slice == nil } func (x *Statements) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decStatements((*Statements)(x), d) - } + h.decStatements((*Statements)(x), d) } func (x *UseStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + z.EncWriteArrayElem() + r.EncodeString(string(x.NS)) + z.EncWriteArrayElem() + r.EncodeString(string(x.DB)) + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NS\"") } else { - r.WriteMapStart(2) + r.EncodeString(`NS`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.NS)) - } + z.EncWriteMapElemValue() + r.EncodeString(string(x.NS)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DB\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"NS\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `NS`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.NS)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.DB)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"DB\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `DB`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.DB)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + r.EncodeString(`DB`) } + z.EncWriteMapElemValue() + r.EncodeString(string(x.DB)) + z.EncWriteMapEnd() } } } func (x *UseStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = UseStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } func (x *UseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -329,36 +278,27 @@ func (x *UseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { case "NS": - if r.TryDecodeAsNil() { - x.NS = "" - } else { - x.NS = (string)(r.DecodeString()) - } + x.NS = (string)(string(r.DecodeStringAsBytes())) case "DB": - if r.TryDecodeAsNil() { - x.DB = "" - } else { - x.DB = (string)(r.DecodeString()) - } + x.DB = (string)(string(r.DecodeStringAsBytes())) default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *UseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool @@ -367,149 +307,113 @@ func (x *UseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.NS = "" - } else { - x.NS = (string)(r.DecodeString()) - } + z.DecReadArrayElem() + x.NS = (string)(string(r.DecodeStringAsBytes())) yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.DB = "" - } else { - x.DB = (string)(r.DecodeString()) - } + z.DecReadArrayElem() + x.DB = (string)(string(r.DecodeStringAsBytes())) for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } - r.ReadArrayEnd() +} + +func (x *UseStatement) IsCodecEmpty() bool { + return !(x.NS != "" && x.DB != "" && true) } func (x *OptStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + z.EncWriteArrayElem() + r.EncodeString(string(x.Name)) + z.EncWriteArrayElem() + r.EncodeBool(bool(x.What)) + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") } else { - r.WriteMapStart(2) + r.EncodeString(`Name`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Name)) - } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Name)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.What)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.What)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + r.EncodeString(`What`) } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.What)) + z.EncWriteMapEnd() } } } func (x *OptStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = OptStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } func (x *OptStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -518,36 +422,27 @@ func (x *OptStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = (string)(r.DecodeString()) - } + x.Name = (string)(string(r.DecodeStringAsBytes())) case "What": - if r.TryDecodeAsNil() { - x.What = false - } else { - x.What = (bool)(r.DecodeBool()) - } + x.What = (bool)(r.DecodeBool()) default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *OptStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool @@ -556,111 +451,93 @@ func (x *OptStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = (string)(r.DecodeString()) - } + z.DecReadArrayElem() + x.Name = (string)(string(r.DecodeStringAsBytes())) yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = false - } else { - x.What = (bool)(r.DecodeBool()) - } + z.DecReadArrayElem() + x.What = (bool)(r.DecodeBool()) for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } - r.ReadArrayEnd() +} + +func (x *OptStatement) IsCodecEmpty() bool { + return !(x.Name != "" && bool(x.What) && true) } func (x *BeginStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(0) + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(0) - } else { - r.WriteMapStart(0) - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } + z.EncWriteMapStart(0) + z.EncWriteMapEnd() } } } func (x *BeginStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = BeginStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } func (x *BeginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -669,24 +546,23 @@ func (x *BeginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *BeginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj4 int var yyb4 bool @@ -696,78 +572,68 @@ func (x *BeginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl4 { yyb4 = yyj4 > l } else { - yyb4 = r.CheckBreak() + yyb4 = z.DecCheckBreak() } if yyb4 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } - r.ReadArrayEnd() +} + +func (x *BeginStatement) IsCodecEmpty() bool { + return !(true) } func (x *CancelStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(0) + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(0) - } else { - r.WriteMapStart(0) - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } + z.EncWriteMapStart(0) + z.EncWriteMapEnd() } } } func (x *CancelStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = CancelStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } func (x *CancelStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -776,24 +642,23 @@ func (x *CancelStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *CancelStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj4 int var yyb4 bool @@ -803,78 +668,68 @@ func (x *CancelStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl4 { yyb4 = yyj4 > l } else { - yyb4 = r.CheckBreak() + yyb4 = z.DecCheckBreak() } if yyb4 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } - r.ReadArrayEnd() +} + +func (x *CancelStatement) IsCodecEmpty() bool { + return !(true) } func (x *CommitStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(0) + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(0) - } else { - r.WriteMapStart(0) - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } + z.EncWriteMapStart(0) + z.EncWriteMapEnd() } } } func (x *CommitStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = CommitStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } func (x *CommitStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -883,24 +738,23 @@ func (x *CommitStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *CommitStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj4 int var yyb4 bool @@ -910,145 +764,120 @@ func (x *CommitStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl4 { yyb4 = yyj4 > l } else { - yyb4 = r.CheckBreak() + yyb4 = z.DecCheckBreak() } if yyb4 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } - r.ReadArrayEnd() +} + +func (x *CommitStatement) IsCodecEmpty() bool { + return !(true) } func (x *InfoStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn4 bool = x.What == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + z.EncWriteArrayElem() + if yyxt5 := z.Extension(x.Kind); yyxt5 != nil { + z.EncExtension(x.Kind, yyxt5) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Kind) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Kind) + } else { + r.EncodeInt(int64(x.Kind)) + } + if yyn4 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.What); yyxt6 != nil { + z.EncExtension(x.What, yyxt6) + x.What.CodecEncodeSelf(e) + } + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") } else { - r.WriteMapStart(2) + r.EncodeString(`Kind`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil { - z.EncExtension(x.Kind, yyxt4) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Kind) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Kind) - } else { - r.EncodeInt(int64(x.Kind)) - } + z.EncWriteMapElemValue() + if yyxt7 := z.Extension(x.Kind); yyxt7 != nil { + z.EncExtension(x.Kind, yyxt7) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Kind) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Kind) } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Kind\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) - } - r.WriteMapElemValue() - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.EncExtension(x.Kind, yyxt5) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Kind) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Kind) - } else { - r.EncodeInt(int64(x.Kind)) - } + r.EncodeInt(int64(x.Kind)) } - var yyn6 bool - if x.What == nil { - yyn6 = true - goto LABEL6 - } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if yyn6 { - r.EncodeNil() - } else { - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } + r.EncodeString(`What`) } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() + z.EncWriteMapElemValue() + if yyn4 { + r.EncodeNil() } else { - r.WriteMapEnd() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.EncExtension(x.What, yyxt8) + x.What.CodecEncodeSelf(e) + } } + z.EncWriteMapEnd() } } } func (x *InfoStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = InfoStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } func (x *InfoStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -1057,527 +886,46 @@ func (x *InfoStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { case "Kind": - if r.TryDecodeAsNil() { - x.Kind = 0 + if yyxt5 := z.Extension(x.Kind); yyxt5 != nil { + z.DecExtension(&x.Kind, yyxt5) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Kind) } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.DecExtension(x.Kind, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) - } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } + x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } case "What": - if r.TryDecodeAsNil() { - if true && x.What != nil { + if r.TryNil() { + if x.What != nil { // remove the if-true x.What = nil } } else { if x.What == nil { x.What = new(Ident) } - - x.What.CodecDecodeSelf(d) + if yyxt7 := z.Extension(x.What); yyxt7 != nil { + z.DecExtension(x.What, yyxt7) + } else { + x.What.CodecDecodeSelf(d) + } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *InfoStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Kind = 0 - } else { - if false { - } else if yyxt9 := z.Extension(z.I2Rtid(x.Kind)); yyxt9 != nil { - z.DecExtension(x.Kind, yyxt9) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) - } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.What != nil { - x.What = nil - } - } else { - if x.What == nil { - x.What = new(Ident) - } - - x.What.CodecDecodeSelf(d) - } - for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj7-1, "") - } - r.ReadArrayEnd() -} - -func (x *RunStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) - } else { - r.WriteMapStart(2) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.RW)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RW\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `RW`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.RW)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Expr)); yyxt7 != nil { - z.EncExtension(x.Expr, yyxt7) - } else { - z.EncFallback(x.Expr) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) - } - r.WriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { - z.EncExtension(x.Expr, yyxt8) - } else { - z.EncFallback(x.Expr) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *RunStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *RunStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "RW": - if r.TryDecodeAsNil() { - x.RW = false - } else { - x.RW = (bool)(r.DecodeBool()) - } - case "Expr": - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt6 := z.Extension(z.I2Rtid(x.Expr)); yyxt6 != nil { - z.DecExtension(x.Expr, yyxt6) - } else { - z.DecFallback(&x.Expr, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *RunStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.RW = false - } else { - x.RW = (bool)(r.DecodeBool()) - } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Expr)); yyxt10 != nil { - z.DecExtension(x.Expr, yyxt10) - } else { - z.DecFallback(&x.Expr, true) - } - } - for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj7-1, "") - } - r.ReadArrayEnd() -} - -func (x *LetStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(3) - } else { - r.WriteMapStart(3) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.RW)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RW\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `RW`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.RW)) - } - } - var yyn6 bool - if x.Name == nil { - yyn6 = true - goto LABEL6 - } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn6 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.What)); yyxt10 != nil { - z.EncExtension(x.What, yyxt10) - } else { - z.EncFallback(x.What) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.What)); yyxt11 != nil { - z.EncExtension(x.What, yyxt11) - } else { - z.EncFallback(x.What) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *LetStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *LetStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "RW": - if r.TryDecodeAsNil() { - x.RW = false - } else { - x.RW = (bool)(r.DecodeBool()) - } - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.What)); yyxt7 != nil { - z.DecExtension(x.What, yyxt7) - } else { - z.DecFallback(&x.What, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *LetStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj8 int var yyb8 bool @@ -1586,59 +934,43 @@ func (x *LetStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = r.CheckBreak() + yyb8 = z.DecCheckBreak() } if yyb8 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.RW = false + z.DecReadArrayElem() + if yyxt10 := z.Extension(x.Kind); yyxt10 != nil { + z.DecExtension(&x.Kind, yyxt10) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Kind) } else { - x.RW = (bool)(r.DecodeBool()) + x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = r.CheckBreak() + yyb8 = z.DecCheckBreak() } if yyb8 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil + z.DecReadArrayElem() + if r.TryNil() { + if x.What != nil { // remove the if-true + x.What = nil } } else { - if x.Name == nil { - x.Name = new(Ident) + if x.What == nil { + x.What = new(Ident) } - - x.Name.CodecDecodeSelf(d) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - if false { - } else if yyxt12 := z.Extension(z.I2Rtid(x.What)); yyxt12 != nil { + if yyxt12 := z.Extension(x.What); yyxt12 != nil { z.DecExtension(x.What, yyxt12) } else { - z.DecFallback(&x.What, true) + x.What.CodecDecodeSelf(d) } } for { @@ -1646,267 +978,96 @@ func (x *LetStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = r.CheckBreak() + yyb8 = z.DecCheckBreak() } if yyb8 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } - r.ReadArrayEnd() } -func (x *LiveStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *InfoStatement) IsCodecEmpty() bool { + return !(x.Kind != 0 && true) +} + +func (x *RunStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + z.EncWriteArrayElem() + r.EncodeBool(bool(x.RW)) + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.Expr); yyxt6 != nil { + z.EncExtension(x.Expr, yyxt6) + } else { + z.EncFallback(x.Expr) + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(9) + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RW\"") } else { - r.WriteMapStart(9) + r.EncodeString(`RW`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.ID)) - } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.RW)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"ID\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `ID`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.ID)) - } + r.EncodeString(`Expr`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.FB)) - } + z.EncWriteMapElemValue() + if yyxt8 := z.Extension(x.Expr); yyxt8 != nil { + z.EncExtension(x.Expr, yyxt8) } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"FB\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `FB`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.FB)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.NS)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"NS\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `NS`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.NS)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.DB)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"DB\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `DB`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.DB)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.Diff)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Diff\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Diff`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.Diff)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Expr == nil { - r.EncodeNil() - } else { - x.Expr.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) - } - r.WriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() - } else { - x.Expr.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt25 := z.Extension(z.I2Rtid(x.Cond)); yyxt25 != nil { - z.EncExtension(x.Cond, yyxt25) - } else { - z.EncFallback(x.Cond) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) - } - r.WriteMapElemValue() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt26 := z.Extension(z.I2Rtid(x.Cond)); yyxt26 != nil { - z.EncExtension(x.Cond, yyxt26) - } else { - z.EncFallback(x.Cond) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Fetch == nil { - r.EncodeNil() - } else { - x.Fetch.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Fetch\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Fetch`) - } - r.WriteMapElemValue() - if x.Fetch == nil { - r.EncodeNil() - } else { - x.Fetch.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + z.EncFallback(x.Expr) } + z.EncWriteMapEnd() } } } -func (x *LiveStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RunStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = RunStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *LiveStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RunStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -1915,353 +1076,184 @@ func (x *LiveStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { - case "ID": - if r.TryDecodeAsNil() { - x.ID = "" - } else { - x.ID = (string)(r.DecodeString()) - } - case "FB": - if r.TryDecodeAsNil() { - x.FB = "" - } else { - x.FB = (string)(r.DecodeString()) - } - case "NS": - if r.TryDecodeAsNil() { - x.NS = "" - } else { - x.NS = (string)(r.DecodeString()) - } - case "DB": - if r.TryDecodeAsNil() { - x.DB = "" - } else { - x.DB = (string)(r.DecodeString()) - } - case "Diff": - if r.TryDecodeAsNil() { - x.Diff = false - } else { - x.Diff = (bool)(r.DecodeBool()) - } + case "RW": + x.RW = (bool)(r.DecodeBool()) case "Expr": - if r.TryDecodeAsNil() { - x.Expr = nil + if yyxt6 := z.Extension(x.Expr); yyxt6 != nil { + z.DecExtension(&x.Expr, yyxt6) } else { - x.Expr.CodecDecodeSelf(d) - } - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - case "Cond": - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - if false { - } else if yyxt12 := z.Extension(z.I2Rtid(x.Cond)); yyxt12 != nil { - z.DecExtension(x.Cond, yyxt12) - } else { - z.DecFallback(&x.Cond, true) - } - } - case "Fetch": - if r.TryDecodeAsNil() { - x.Fetch = nil - } else { - x.Fetch.CodecDecodeSelf(d) + z.DecFallback(&x.Expr, true) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *LiveStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RunStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - var yyj14 int - var yyb14 bool - var yyhl14 bool = l >= 0 - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l } else { - yyb14 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } - if yyb14 { - r.ReadArrayEnd() + if yyb7 { + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.ID = "" + z.DecReadArrayElem() + x.RW = (bool)(r.DecodeBool()) + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l } else { - x.ID = (string)(r.DecodeString()) + yyb7 = z.DecCheckBreak() } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - r.ReadArrayEnd() + if yyb7 { + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.FB = "" + z.DecReadArrayElem() + if yyxt10 := z.Extension(x.Expr); yyxt10 != nil { + z.DecExtension(&x.Expr, yyxt10) } else { - x.FB = (string)(r.DecodeString()) - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.NS = "" - } else { - x.NS = (string)(r.DecodeString()) - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.DB = "" - } else { - x.DB = (string)(r.DecodeString()) - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Diff = false - } else { - x.Diff = (bool)(r.DecodeBool()) - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - x.Expr.CodecDecodeSelf(d) - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - if false { - } else if yyxt23 := z.Extension(z.I2Rtid(x.Cond)); yyxt23 != nil { - z.DecExtension(x.Cond, yyxt23) - } else { - z.DecFallback(&x.Cond, true) - } - } - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = r.CheckBreak() - } - if yyb14 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Fetch = nil - } else { - x.Fetch.CodecDecodeSelf(d) + z.DecFallback(&x.Expr, true) } for { - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l } else { - yyb14 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } - if yyb14 { + if yyb7 { break } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj14-1, "") + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") } - r.ReadArrayEnd() } -func (x *KillStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *RunStatement) IsCodecEmpty() bool { + return !(bool(x.RW) && x.Expr != nil && true) +} + +func (x *LetStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn4 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(3) + z.EncWriteArrayElem() + r.EncodeBool(bool(x.RW)) + if yyn4 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.Name); yyxt7 != nil { + z.EncExtension(x.Name, yyxt7) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.EncExtension(x.What, yyxt8) + } else { + z.EncFallback(x.What) + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) + z.EncWriteMapStart(3) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RW\"") } else { - r.WriteMapStart(2) + r.EncodeString(`RW`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.FB)) - } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.RW)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"FB\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `FB`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.FB)) + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn4 { + r.EncodeNil() + } else { + if yyxt10 := z.Extension(x.Name); yyxt10 != nil { + z.EncExtension(x.Name, yyxt10) + x.Name.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } + r.EncodeString(`What`) } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() + z.EncWriteMapElemValue() + if yyxt11 := z.Extension(x.What); yyxt11 != nil { + z.EncExtension(x.What, yyxt11) } else { - r.WriteMapEnd() + z.EncFallback(x.What) } + z.EncWriteMapEnd() } } } -func (x *KillStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *LetStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = LetStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *KillStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *LetStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -2270,487 +1262,46 @@ func (x *KillStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "FB": - if r.TryDecodeAsNil() { - x.FB = "" - } else { - x.FB = (string)(r.DecodeString()) - } - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *KillStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.FB = "" - } else { - x.FB = (string)(r.DecodeString()) - } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") - } - r.ReadArrayEnd() -} - -func (x *ReturnStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) - } else { - r.WriteMapStart(2) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.RW)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RW\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `RW`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.RW)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *ReturnStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *ReturnStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { case "RW": - if r.TryDecodeAsNil() { - x.RW = false + x.RW = (bool)(r.DecodeBool()) + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } } else { - x.RW = (bool)(r.DecodeBool()) + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt6 := z.Extension(x.Name); yyxt6 != nil { + z.DecExtension(x.Name, yyxt6) + } else { + x.Name.CodecDecodeSelf(d) + } } case "What": - if r.TryDecodeAsNil() { - x.What = nil + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.DecExtension(&x.What, yyxt8) } else { - x.What.CodecDecodeSelf(d) + z.DecFallback(&x.What, true) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *ReturnStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.RW = false - } else { - x.RW = (bool)(r.DecodeBool()) - } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") - } - r.ReadArrayEnd() -} - -func (x *IfelseStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(4) - } else { - r.WriteMapStart(4) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.RW)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RW\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `RW`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.RW)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Cond == nil { - r.EncodeNil() - } else { - x.Cond.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) - } - r.WriteMapElemValue() - if x.Cond == nil { - r.EncodeNil() - } else { - x.Cond.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Then == nil { - r.EncodeNil() - } else { - x.Then.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Then\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Then`) - } - r.WriteMapElemValue() - if x.Then == nil { - r.EncodeNil() - } else { - x.Then.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Else == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Else)); yyxt13 != nil { - z.EncExtension(x.Else, yyxt13) - } else { - z.EncFallback(x.Else) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Else\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Else`) - } - r.WriteMapElemValue() - if x.Else == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Else)); yyxt14 != nil { - z.EncExtension(x.Else, yyxt14) - } else { - z.EncFallback(x.Else) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *IfelseStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *IfelseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "RW": - if r.TryDecodeAsNil() { - x.RW = false - } else { - x.RW = (bool)(r.DecodeBool()) - } - case "Cond": - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - x.Cond.CodecDecodeSelf(d) - } - case "Then": - if r.TryDecodeAsNil() { - x.Then = nil - } else { - x.Then.CodecDecodeSelf(d) - } - case "Else": - if r.TryDecodeAsNil() { - x.Else = nil - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Else)); yyxt8 != nil { - z.DecExtension(x.Else, yyxt8) - } else { - z.DecFallback(&x.Else, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *IfelseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *LetStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj9 int var yyb9 bool @@ -2759,440 +1310,238 @@ func (x *IfelseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = r.CheckBreak() + yyb9 = z.DecCheckBreak() } if yyb9 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.RW = false - } else { - x.RW = (bool)(r.DecodeBool()) - } + z.DecReadArrayElem() + x.RW = (bool)(r.DecodeBool()) yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = r.CheckBreak() + yyb9 = z.DecCheckBreak() } if yyb9 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - x.Cond.CodecDecodeSelf(d) - } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Then = nil - } else { - x.Then.CodecDecodeSelf(d) - } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Else = nil - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Else)); yyxt14 != nil { - z.DecExtension(x.Else, yyxt14) - } else { - z.DecFallback(&x.Else, true) + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt12 := z.Extension(x.Name); yyxt12 != nil { + z.DecExtension(x.Name, yyxt12) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = z.DecCheckBreak() + } + if yyb9 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt14 := z.Extension(x.What); yyxt14 != nil { + z.DecExtension(&x.What, yyxt14) + } else { + z.DecFallback(&x.What, true) } for { yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = r.CheckBreak() + yyb9 = z.DecCheckBreak() } if yyb9 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj9-1, "") } - r.ReadArrayEnd() } -func (x *SelectStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *LetStatement) IsCodecEmpty() bool { + return !(bool(x.RW) && x.What != nil && true) +} + +func (x *LiveStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(9) + z.EncWriteArrayElem() + r.EncodeString(string(x.ID)) + z.EncWriteArrayElem() + r.EncodeString(string(x.FB)) + z.EncWriteArrayElem() + r.EncodeString(string(x.NS)) + z.EncWriteArrayElem() + r.EncodeString(string(x.DB)) + z.EncWriteArrayElem() + r.EncodeBool(bool(x.Diff)) + z.EncWriteArrayElem() + if yyxt17 := z.Extension(x.Expr); yyxt17 != nil { + z.EncExtension(x.Expr, yyxt17) + x.Expr.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt18 := z.Extension(x.What); yyxt18 != nil { + z.EncExtension(x.What, yyxt18) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt19 := z.Extension(x.Cond); yyxt19 != nil { + z.EncExtension(x.Cond, yyxt19) + } else { + z.EncFallback(x.Cond) + } + z.EncWriteArrayElem() + if yyxt20 := z.Extension(x.Fetch); yyxt20 != nil { + z.EncExtension(x.Fetch, yyxt20) + x.Fetch.CodecEncodeSelf(e) + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(12) + z.EncWriteMapStart(9) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") } else { - r.WriteMapStart(12) + r.EncodeString(`ID`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.RW)) - } + z.EncWriteMapElemValue() + r.EncodeString(string(x.ID)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FB\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RW\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `RW`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.RW)) - } + r.EncodeString(`FB`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Expr == nil { - r.EncodeNil() - } else { - x.Expr.CodecEncodeSelf(e) - } + z.EncWriteMapElemValue() + r.EncodeString(string(x.FB)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NS\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) - } - r.WriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() - } else { - x.Expr.CodecEncodeSelf(e) - } + r.EncodeString(`NS`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } + z.EncWriteMapElemValue() + r.EncodeString(string(x.NS)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DB\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } + r.EncodeString(`DB`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Cond)); yyxt13 != nil { - z.EncExtension(x.Cond, yyxt13) - } else { - z.EncFallback(x.Cond) - } - } + z.EncWriteMapElemValue() + r.EncodeString(string(x.DB)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Diff\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) - } - r.WriteMapElemValue() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Cond)); yyxt14 != nil { - z.EncExtension(x.Cond, yyxt14) - } else { - z.EncFallback(x.Cond) - } - } + r.EncodeString(`Diff`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Split == nil { - r.EncodeNil() - } else { - x.Split.CodecEncodeSelf(e) - } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.Diff)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Split\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Split`) - } - r.WriteMapElemValue() - if x.Split == nil { - r.EncodeNil() - } else { - x.Split.CodecEncodeSelf(e) - } + r.EncodeString(`Expr`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Group == nil { - r.EncodeNil() - } else { - x.Group.CodecEncodeSelf(e) - } + z.EncWriteMapElemValue() + if yyxt26 := z.Extension(x.Expr); yyxt26 != nil { + z.EncExtension(x.Expr, yyxt26) + x.Expr.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Group\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Group`) - } - r.WriteMapElemValue() - if x.Group == nil { - r.EncodeNil() - } else { - x.Group.CodecEncodeSelf(e) - } + r.EncodeString(`What`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Order == nil { - r.EncodeNil() - } else { - x.Order.CodecEncodeSelf(e) - } + z.EncWriteMapElemValue() + if yyxt27 := z.Extension(x.What); yyxt27 != nil { + z.EncExtension(x.What, yyxt27) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Order\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Order`) - } - r.WriteMapElemValue() - if x.Order == nil { - r.EncodeNil() - } else { - x.Order.CodecEncodeSelf(e) - } + r.EncodeString(`Cond`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Limit == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt25 := z.Extension(z.I2Rtid(x.Limit)); yyxt25 != nil { - z.EncExtension(x.Limit, yyxt25) - } else { - z.EncFallback(x.Limit) - } - } + z.EncWriteMapElemValue() + if yyxt28 := z.Extension(x.Cond); yyxt28 != nil { + z.EncExtension(x.Cond, yyxt28) } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Limit\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Limit`) - } - r.WriteMapElemValue() - if x.Limit == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt26 := z.Extension(z.I2Rtid(x.Limit)); yyxt26 != nil { - z.EncExtension(x.Limit, yyxt26) - } else { - z.EncFallback(x.Limit) - } - } + z.EncFallback(x.Cond) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Start == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt28 := z.Extension(z.I2Rtid(x.Start)); yyxt28 != nil { - z.EncExtension(x.Start, yyxt28) - } else { - z.EncFallback(x.Start) - } - } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fetch\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Start\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Start`) - } - r.WriteMapElemValue() - if x.Start == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt29 := z.Extension(z.I2Rtid(x.Start)); yyxt29 != nil { - z.EncExtension(x.Start, yyxt29) - } else { - z.EncFallback(x.Start) - } - } + r.EncodeString(`Fetch`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Fetch == nil { - r.EncodeNil() - } else { - x.Fetch.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Fetch\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Fetch`) - } - r.WriteMapElemValue() - if x.Fetch == nil { - r.EncodeNil() - } else { - x.Fetch.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Version == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt34 := z.Extension(z.I2Rtid(x.Version)); yyxt34 != nil { - z.EncExtension(x.Version, yyxt34) - } else { - z.EncFallback(x.Version) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Version\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Version`) - } - r.WriteMapElemValue() - if x.Version == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt35 := z.Extension(z.I2Rtid(x.Version)); yyxt35 != nil { - z.EncExtension(x.Version, yyxt35) - } else { - z.EncFallback(x.Version) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt37 := z.Extension(z.I2Rtid(x.Timeout)); yyxt37 != nil { - z.EncExtension(x.Timeout, yyxt37) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) - } - r.WriteMapElemValue() - if false { - } else if yyxt38 := z.Extension(z.I2Rtid(x.Timeout)); yyxt38 != nil { - z.EncExtension(x.Timeout, yyxt38) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + z.EncWriteMapElemValue() + if yyxt29 := z.Extension(x.Fetch); yyxt29 != nil { + z.EncExtension(x.Fetch, yyxt29) + x.Fetch.CodecEncodeSelf(e) } + z.EncWriteMapEnd() } } } -func (x *SelectStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *LiveStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = LiveStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *SelectStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *LiveStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -3201,5923 +1550,57 @@ func (x *SelectStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { - case "RW": - if r.TryDecodeAsNil() { - x.RW = false - } else { - x.RW = (bool)(r.DecodeBool()) - } + case "ID": + x.ID = (string)(string(r.DecodeStringAsBytes())) + case "FB": + x.FB = (string)(string(r.DecodeStringAsBytes())) + case "NS": + x.NS = (string)(string(r.DecodeStringAsBytes())) + case "DB": + x.DB = (string)(string(r.DecodeStringAsBytes())) + case "Diff": + x.Diff = (bool)(r.DecodeBool()) case "Expr": - if r.TryDecodeAsNil() { - x.Expr = nil + if yyxt10 := z.Extension(x.Expr); yyxt10 != nil { + z.DecExtension(&x.Expr, yyxt10) } else { x.Expr.CodecDecodeSelf(d) } case "What": - if r.TryDecodeAsNil() { - x.What = nil + if yyxt12 := z.Extension(x.What); yyxt12 != nil { + z.DecExtension(&x.What, yyxt12) } else { x.What.CodecDecodeSelf(d) } case "Cond": - if r.TryDecodeAsNil() { - x.Cond = nil + if yyxt14 := z.Extension(x.Cond); yyxt14 != nil { + z.DecExtension(&x.Cond, yyxt14) } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Cond)); yyxt8 != nil { - z.DecExtension(x.Cond, yyxt8) - } else { - z.DecFallback(&x.Cond, true) - } - } - case "Split": - if r.TryDecodeAsNil() { - x.Split = nil - } else { - x.Split.CodecDecodeSelf(d) - } - case "Group": - if r.TryDecodeAsNil() { - x.Group = nil - } else { - x.Group.CodecDecodeSelf(d) - } - case "Order": - if r.TryDecodeAsNil() { - x.Order = nil - } else { - x.Order.CodecDecodeSelf(d) - } - case "Limit": - if r.TryDecodeAsNil() { - x.Limit = nil - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Limit)); yyxt13 != nil { - z.DecExtension(x.Limit, yyxt13) - } else { - z.DecFallback(&x.Limit, true) - } - } - case "Start": - if r.TryDecodeAsNil() { - x.Start = nil - } else { - if false { - } else if yyxt15 := z.Extension(z.I2Rtid(x.Start)); yyxt15 != nil { - z.DecExtension(x.Start, yyxt15) - } else { - z.DecFallback(&x.Start, true) - } + z.DecFallback(&x.Cond, true) } case "Fetch": - if r.TryDecodeAsNil() { - x.Fetch = nil + if yyxt16 := z.Extension(x.Fetch); yyxt16 != nil { + z.DecExtension(&x.Fetch, yyxt16) } else { x.Fetch.CodecDecodeSelf(d) } - case "Version": - if r.TryDecodeAsNil() { - x.Version = nil - } else { - if false { - } else if yyxt18 := z.Extension(z.I2Rtid(x.Version)); yyxt18 != nil { - z.DecExtension(x.Version, yyxt18) - } else { - z.DecFallback(&x.Version, true) - } - } - case "Timeout": - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt20 := z.Extension(z.I2Rtid(x.Timeout)); yyxt20 != nil { - z.DecExtension(x.Timeout, yyxt20) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *SelectStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj21 int - var yyb21 bool - var yyhl21 bool = l >= 0 - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.RW = false - } else { - x.RW = (bool)(r.DecodeBool()) - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - x.Expr.CodecDecodeSelf(d) - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - if false { - } else if yyxt26 := z.Extension(z.I2Rtid(x.Cond)); yyxt26 != nil { - z.DecExtension(x.Cond, yyxt26) - } else { - z.DecFallback(&x.Cond, true) - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Split = nil - } else { - x.Split.CodecDecodeSelf(d) - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Group = nil - } else { - x.Group.CodecDecodeSelf(d) - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Order = nil - } else { - x.Order.CodecDecodeSelf(d) - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Limit = nil - } else { - if false { - } else if yyxt31 := z.Extension(z.I2Rtid(x.Limit)); yyxt31 != nil { - z.DecExtension(x.Limit, yyxt31) - } else { - z.DecFallback(&x.Limit, true) - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Start = nil - } else { - if false { - } else if yyxt33 := z.Extension(z.I2Rtid(x.Start)); yyxt33 != nil { - z.DecExtension(x.Start, yyxt33) - } else { - z.DecFallback(&x.Start, true) - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Fetch = nil - } else { - x.Fetch.CodecDecodeSelf(d) - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Version = nil - } else { - if false { - } else if yyxt36 := z.Extension(z.I2Rtid(x.Version)); yyxt36 != nil { - z.DecExtension(x.Version, yyxt36) - } else { - z.DecFallback(&x.Version, true) - } - } - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt38 := z.Extension(z.I2Rtid(x.Timeout)); yyxt38 != nil { - z.DecExtension(x.Timeout, yyxt38) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - for { - yyj21++ - if yyhl21 { - yyb21 = yyj21 > l - } else { - yyb21 = r.CheckBreak() - } - if yyb21 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj21-1, "") - } - r.ReadArrayEnd() -} - -func (x *CreateStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(4) - } else { - r.WriteMapStart(4) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Data)); yyxt7 != nil { - z.EncExtension(x.Data, yyxt7) - } else { - z.EncFallback(x.Data) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) - } - r.WriteMapElemValue() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { - z.EncExtension(x.Data, yyxt8) - } else { - z.EncFallback(x.Data) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Echo)); yyxt10 != nil { - z.EncExtension(x.Echo, yyxt10) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Echo\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) - } - r.WriteMapElemValue() - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.Echo)); yyxt11 != nil { - z.EncExtension(x.Echo, yyxt11) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Timeout)); yyxt13 != nil { - z.EncExtension(x.Timeout, yyxt13) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) - } - r.WriteMapElemValue() - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Timeout)); yyxt14 != nil { - z.EncExtension(x.Timeout, yyxt14) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *CreateStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *CreateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - case "Data": - if r.TryDecodeAsNil() { - x.Data = nil - } else { - if false { - } else if yyxt6 := z.Extension(z.I2Rtid(x.Data)); yyxt6 != nil { - z.DecExtension(x.Data, yyxt6) - } else { - z.DecFallback(&x.Data, true) - } - } - case "Echo": - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { - z.DecExtension(x.Echo, yyxt8) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "Timeout": - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { - z.DecExtension(x.Timeout, yyxt10) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *CreateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Data = nil - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Data)); yyxt14 != nil { - z.DecExtension(x.Data, yyxt14) - } else { - z.DecFallback(&x.Data, true) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.Echo)); yyxt16 != nil { - z.DecExtension(x.Echo, yyxt16) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt18 := z.Extension(z.I2Rtid(x.Timeout)); yyxt18 != nil { - z.DecExtension(x.Timeout, yyxt18) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj11-1, "") - } - r.ReadArrayEnd() -} - -func (x *UpdateStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(5) - } else { - r.WriteMapStart(5) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Data)); yyxt7 != nil { - z.EncExtension(x.Data, yyxt7) - } else { - z.EncFallback(x.Data) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) - } - r.WriteMapElemValue() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { - z.EncExtension(x.Data, yyxt8) - } else { - z.EncFallback(x.Data) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Cond)); yyxt10 != nil { - z.EncExtension(x.Cond, yyxt10) - } else { - z.EncFallback(x.Cond) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) - } - r.WriteMapElemValue() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.Cond)); yyxt11 != nil { - z.EncExtension(x.Cond, yyxt11) - } else { - z.EncFallback(x.Cond) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Echo)); yyxt13 != nil { - z.EncExtension(x.Echo, yyxt13) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Echo\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) - } - r.WriteMapElemValue() - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Echo)); yyxt14 != nil { - z.EncExtension(x.Echo, yyxt14) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.Timeout)); yyxt16 != nil { - z.EncExtension(x.Timeout, yyxt16) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) - } - r.WriteMapElemValue() - if false { - } else if yyxt17 := z.Extension(z.I2Rtid(x.Timeout)); yyxt17 != nil { - z.EncExtension(x.Timeout, yyxt17) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *UpdateStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *UpdateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - case "Data": - if r.TryDecodeAsNil() { - x.Data = nil - } else { - if false { - } else if yyxt6 := z.Extension(z.I2Rtid(x.Data)); yyxt6 != nil { - z.DecExtension(x.Data, yyxt6) - } else { - z.DecFallback(&x.Data, true) - } - } - case "Cond": - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Cond)); yyxt8 != nil { - z.DecExtension(x.Cond, yyxt8) - } else { - z.DecFallback(&x.Cond, true) - } - } - case "Echo": - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Echo)); yyxt10 != nil { - z.DecExtension(x.Echo, yyxt10) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "Timeout": - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt12 := z.Extension(z.I2Rtid(x.Timeout)); yyxt12 != nil { - z.DecExtension(x.Timeout, yyxt12) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *UpdateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Data = nil - } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.Data)); yyxt16 != nil { - z.DecExtension(x.Data, yyxt16) - } else { - z.DecFallback(&x.Data, true) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - if false { - } else if yyxt18 := z.Extension(z.I2Rtid(x.Cond)); yyxt18 != nil { - z.DecExtension(x.Cond, yyxt18) - } else { - z.DecFallback(&x.Cond, true) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt20 := z.Extension(z.I2Rtid(x.Echo)); yyxt20 != nil { - z.DecExtension(x.Echo, yyxt20) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt22 := z.Extension(z.I2Rtid(x.Timeout)); yyxt22 != nil { - z.DecExtension(x.Timeout, yyxt22) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj13-1, "") - } - r.ReadArrayEnd() -} - -func (x *DeleteStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(4) - } else { - r.WriteMapStart(4) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Cond)); yyxt7 != nil { - z.EncExtension(x.Cond, yyxt7) - } else { - z.EncFallback(x.Cond) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) - } - r.WriteMapElemValue() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Cond)); yyxt8 != nil { - z.EncExtension(x.Cond, yyxt8) - } else { - z.EncFallback(x.Cond) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Echo)); yyxt10 != nil { - z.EncExtension(x.Echo, yyxt10) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Echo\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) - } - r.WriteMapElemValue() - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.Echo)); yyxt11 != nil { - z.EncExtension(x.Echo, yyxt11) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Timeout)); yyxt13 != nil { - z.EncExtension(x.Timeout, yyxt13) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) - } - r.WriteMapElemValue() - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Timeout)); yyxt14 != nil { - z.EncExtension(x.Timeout, yyxt14) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *DeleteStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *DeleteStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - case "Cond": - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - if false { - } else if yyxt6 := z.Extension(z.I2Rtid(x.Cond)); yyxt6 != nil { - z.DecExtension(x.Cond, yyxt6) - } else { - z.DecFallback(&x.Cond, true) - } - } - case "Echo": - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { - z.DecExtension(x.Echo, yyxt8) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "Timeout": - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { - z.DecExtension(x.Timeout, yyxt10) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *DeleteStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Cond)); yyxt14 != nil { - z.DecExtension(x.Cond, yyxt14) - } else { - z.DecFallback(&x.Cond, true) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.Echo)); yyxt16 != nil { - z.DecExtension(x.Echo, yyxt16) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt18 := z.Extension(z.I2Rtid(x.Timeout)); yyxt18 != nil { - z.DecExtension(x.Timeout, yyxt18) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj11-1, "") - } - r.ReadArrayEnd() -} - -func (x *RelateStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(7) - } else { - r.WriteMapStart(7) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Type == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Type)); yyxt4 != nil { - z.EncExtension(x.Type, yyxt4) - } else { - z.EncFallback(x.Type) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Type\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Type`) - } - r.WriteMapElemValue() - if x.Type == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Type)); yyxt5 != nil { - z.EncExtension(x.Type, yyxt5) - } else { - z.EncFallback(x.Type) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.From == nil { - r.EncodeNil() - } else { - x.From.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"From\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `From`) - } - r.WriteMapElemValue() - if x.From == nil { - r.EncodeNil() - } else { - x.From.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.With == nil { - r.EncodeNil() - } else { - x.With.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"With\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `With`) - } - r.WriteMapElemValue() - if x.With == nil { - r.EncodeNil() - } else { - x.With.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Data)); yyxt13 != nil { - z.EncExtension(x.Data, yyxt13) - } else { - z.EncFallback(x.Data) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) - } - r.WriteMapElemValue() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Data)); yyxt14 != nil { - z.EncExtension(x.Data, yyxt14) - } else { - z.EncFallback(x.Data) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.Uniq)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Uniq\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Uniq`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.Uniq)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt19 := z.Extension(z.I2Rtid(x.Echo)); yyxt19 != nil { - z.EncExtension(x.Echo, yyxt19) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Echo\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) - } - r.WriteMapElemValue() - if false { - } else if yyxt20 := z.Extension(z.I2Rtid(x.Echo)); yyxt20 != nil { - z.EncExtension(x.Echo, yyxt20) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt22 := z.Extension(z.I2Rtid(x.Timeout)); yyxt22 != nil { - z.EncExtension(x.Timeout, yyxt22) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) - } - r.WriteMapElemValue() - if false { - } else if yyxt23 := z.Extension(z.I2Rtid(x.Timeout)); yyxt23 != nil { - z.EncExtension(x.Timeout, yyxt23) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *RelateStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *RelateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Type": - if r.TryDecodeAsNil() { - x.Type = nil - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Type)); yyxt5 != nil { - z.DecExtension(x.Type, yyxt5) - } else { - z.DecFallback(&x.Type, true) - } - } - case "From": - if r.TryDecodeAsNil() { - x.From = nil - } else { - x.From.CodecDecodeSelf(d) - } - case "With": - if r.TryDecodeAsNil() { - x.With = nil - } else { - x.With.CodecDecodeSelf(d) - } - case "Data": - if r.TryDecodeAsNil() { - x.Data = nil - } else { - if false { - } else if yyxt9 := z.Extension(z.I2Rtid(x.Data)); yyxt9 != nil { - z.DecExtension(x.Data, yyxt9) - } else { - z.DecFallback(&x.Data, true) - } - } - case "Uniq": - if r.TryDecodeAsNil() { - x.Uniq = false - } else { - x.Uniq = (bool)(r.DecodeBool()) - } - case "Echo": - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt12 := z.Extension(z.I2Rtid(x.Echo)); yyxt12 != nil { - z.DecExtension(x.Echo, yyxt12) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "Timeout": - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Timeout)); yyxt14 != nil { - z.DecExtension(x.Timeout, yyxt14) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *RelateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj15 int - var yyb15 bool - var yyhl15 bool = l >= 0 - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Type = nil - } else { - if false { - } else if yyxt17 := z.Extension(z.I2Rtid(x.Type)); yyxt17 != nil { - z.DecExtension(x.Type, yyxt17) - } else { - z.DecFallback(&x.Type, true) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.From = nil - } else { - x.From.CodecDecodeSelf(d) - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.With = nil - } else { - x.With.CodecDecodeSelf(d) - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Data = nil - } else { - if false { - } else if yyxt21 := z.Extension(z.I2Rtid(x.Data)); yyxt21 != nil { - z.DecExtension(x.Data, yyxt21) - } else { - z.DecFallback(&x.Data, true) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Uniq = false - } else { - x.Uniq = (bool)(r.DecodeBool()) - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt24 := z.Extension(z.I2Rtid(x.Echo)); yyxt24 != nil { - z.DecExtension(x.Echo, yyxt24) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt26 := z.Extension(z.I2Rtid(x.Timeout)); yyxt26 != nil { - z.DecExtension(x.Timeout, yyxt26) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - for { - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj15-1, "") - } - r.ReadArrayEnd() -} - -func (x *InsertStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(4) - } else { - r.WriteMapStart(4) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { - z.EncExtension(x.Data, yyxt4) - } else { - z.EncFallback(x.Data) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) - } - r.WriteMapElemValue() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.EncExtension(x.Data, yyxt5) - } else { - z.EncFallback(x.Data) - } - } - } - var yyn6 bool - if x.Into == nil { - yyn6 = true - goto LABEL6 - } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Into == nil { - r.EncodeNil() - } else { - x.Into.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Into\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Into`) - } - r.WriteMapElemValue() - if yyn6 { - r.EncodeNil() - } else { - if x.Into == nil { - r.EncodeNil() - } else { - x.Into.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Echo)); yyxt10 != nil { - z.EncExtension(x.Echo, yyxt10) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Echo\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) - } - r.WriteMapElemValue() - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.Echo)); yyxt11 != nil { - z.EncExtension(x.Echo, yyxt11) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Timeout)); yyxt13 != nil { - z.EncExtension(x.Timeout, yyxt13) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) - } - r.WriteMapElemValue() - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Timeout)); yyxt14 != nil { - z.EncExtension(x.Timeout, yyxt14) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *InsertStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *InsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Data": - if r.TryDecodeAsNil() { - x.Data = nil - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.DecExtension(x.Data, yyxt5) - } else { - z.DecFallback(&x.Data, true) - } - } - case "Into": - if r.TryDecodeAsNil() { - if true && x.Into != nil { - x.Into = nil - } - } else { - if x.Into == nil { - x.Into = new(Table) - } - - x.Into.CodecDecodeSelf(d) - } - case "Echo": - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { - z.DecExtension(x.Echo, yyxt8) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "Timeout": - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { - z.DecExtension(x.Timeout, yyxt10) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *InsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Data = nil - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Data)); yyxt13 != nil { - z.DecExtension(x.Data, yyxt13) - } else { - z.DecFallback(&x.Data, true) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Into != nil { - x.Into = nil - } - } else { - if x.Into == nil { - x.Into = new(Table) - } - - x.Into.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.Echo)); yyxt16 != nil { - z.DecExtension(x.Echo, yyxt16) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt18 := z.Extension(z.I2Rtid(x.Timeout)); yyxt18 != nil { - z.DecExtension(x.Timeout, yyxt18) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj11-1, "") - } - r.ReadArrayEnd() -} - -func (x *UpsertStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(4) - } else { - r.WriteMapStart(4) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { - z.EncExtension(x.Data, yyxt4) - } else { - z.EncFallback(x.Data) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) - } - r.WriteMapElemValue() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.EncExtension(x.Data, yyxt5) - } else { - z.EncFallback(x.Data) - } - } - } - var yyn6 bool - if x.Into == nil { - yyn6 = true - goto LABEL6 - } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Into == nil { - r.EncodeNil() - } else { - x.Into.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Into\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Into`) - } - r.WriteMapElemValue() - if yyn6 { - r.EncodeNil() - } else { - if x.Into == nil { - r.EncodeNil() - } else { - x.Into.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Echo)); yyxt10 != nil { - z.EncExtension(x.Echo, yyxt10) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Echo\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) - } - r.WriteMapElemValue() - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.Echo)); yyxt11 != nil { - z.EncExtension(x.Echo, yyxt11) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) - } else { - r.EncodeInt(int64(x.Echo)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Timeout)); yyxt13 != nil { - z.EncExtension(x.Timeout, yyxt13) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) - } - r.WriteMapElemValue() - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Timeout)); yyxt14 != nil { - z.EncExtension(x.Timeout, yyxt14) - } else { - r.EncodeInt(int64(x.Timeout)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *UpsertStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *UpsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Data": - if r.TryDecodeAsNil() { - x.Data = nil - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.DecExtension(x.Data, yyxt5) - } else { - z.DecFallback(&x.Data, true) - } - } - case "Into": - if r.TryDecodeAsNil() { - if true && x.Into != nil { - x.Into = nil - } - } else { - if x.Into == nil { - x.Into = new(Table) - } - - x.Into.CodecDecodeSelf(d) - } - case "Echo": - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { - z.DecExtension(x.Echo, yyxt8) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "Timeout": - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { - z.DecExtension(x.Timeout, yyxt10) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *UpsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Data = nil - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Data)); yyxt13 != nil { - z.DecExtension(x.Data, yyxt13) - } else { - z.DecFallback(&x.Data, true) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Into != nil { - x.Into = nil - } - } else { - if x.Into == nil { - x.Into = new(Table) - } - - x.Into.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Echo = 0 - } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.Echo)); yyxt16 != nil { - z.DecExtension(x.Echo, yyxt16) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Timeout = 0 - } else { - if false { - } else if yyxt18 := z.Extension(z.I2Rtid(x.Timeout)); yyxt18 != nil { - z.DecExtension(x.Timeout, yyxt18) - } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj11-1, "") - } - r.ReadArrayEnd() -} - -func (x *DefineNamespaceStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *DefineNamespaceStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *DefineNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *DefineNamespaceStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") - } - r.ReadArrayEnd() -} - -func (x *RemoveNamespaceStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *RemoveNamespaceStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *RemoveNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *RemoveNamespaceStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") - } - r.ReadArrayEnd() -} - -func (x *DefineDatabaseStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *DefineDatabaseStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *DefineDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *DefineDatabaseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") - } - r.ReadArrayEnd() -} - -func (x *RemoveDatabaseStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *RemoveDatabaseStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *RemoveDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *RemoveDatabaseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") - } - r.ReadArrayEnd() -} - -func (x *DefineLoginStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(5) - } else { - r.WriteMapStart(5) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil { - z.EncExtension(x.Kind, yyxt4) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Kind) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Kind) - } else { - r.EncodeInt(int64(x.Kind)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Kind\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) - } - r.WriteMapElemValue() - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.EncExtension(x.Kind, yyxt5) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Kind) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Kind) - } else { - r.EncodeInt(int64(x.Kind)) - } - } - var yyn6 bool - if x.User == nil { - yyn6 = true - goto LABEL6 - } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.User == nil { - r.EncodeNil() - } else { - x.User.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"User\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `User`) - } - r.WriteMapElemValue() - if yyn6 { - r.EncodeNil() - } else { - if x.User == nil { - r.EncodeNil() - } else { - x.User.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Pass == nil { - r.EncodeNil() - } else { - if false { - } else { - r.EncodeStringBytesRaw([]byte(x.Pass)) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Pass\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Pass`) - } - r.WriteMapElemValue() - if x.Pass == nil { - r.EncodeNil() - } else { - if false { - } else { - r.EncodeStringBytesRaw([]byte(x.Pass)) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Hash == nil { - r.EncodeNil() - } else { - if false { - } else { - r.EncodeStringBytesRaw([]byte(x.Hash)) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Hash\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Hash`) - } - r.WriteMapElemValue() - if x.Hash == nil { - r.EncodeNil() - } else { - if false { - } else { - r.EncodeStringBytesRaw([]byte(x.Hash)) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Code == nil { - r.EncodeNil() - } else { - if false { - } else { - r.EncodeStringBytesRaw([]byte(x.Code)) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Code\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Code`) - } - r.WriteMapElemValue() - if x.Code == nil { - r.EncodeNil() - } else { - if false { - } else { - r.EncodeStringBytesRaw([]byte(x.Code)) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *DefineLoginStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *DefineLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Kind": - if r.TryDecodeAsNil() { - x.Kind = 0 - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.DecExtension(x.Kind, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) - } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "User": - if r.TryDecodeAsNil() { - if true && x.User != nil { - x.User = nil - } - } else { - if x.User == nil { - x.User = new(Ident) - } - - x.User.CodecDecodeSelf(d) - } - case "Pass": - if r.TryDecodeAsNil() { - x.Pass = nil - } else { - if false { - } else { - x.Pass = r.DecodeBytes(([]byte)(x.Pass), false) - } - } - case "Hash": - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - if false { - } else { - x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) - } - } - case "Code": - if r.TryDecodeAsNil() { - x.Code = nil - } else { - if false { - } else { - x.Code = r.DecodeBytes(([]byte)(x.Code), false) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *DefineLoginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj13 int - var yyb13 bool - var yyhl13 bool = l >= 0 - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Kind = 0 - } else { - if false { - } else if yyxt15 := z.Extension(z.I2Rtid(x.Kind)); yyxt15 != nil { - z.DecExtension(x.Kind, yyxt15) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) - } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.User != nil { - x.User = nil - } - } else { - if x.User == nil { - x.User = new(Ident) - } - - x.User.CodecDecodeSelf(d) - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Pass = nil - } else { - if false { - } else { - x.Pass = r.DecodeBytes(([]byte)(x.Pass), false) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Hash = nil - } else { - if false { - } else { - x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) - } - } - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Code = nil - } else { - if false { - } else { - x.Code = r.DecodeBytes(([]byte)(x.Code), false) - } - } - for { - yyj13++ - if yyhl13 { - yyb13 = yyj13 > l - } else { - yyb13 = r.CheckBreak() - } - if yyb13 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj13-1, "") - } - r.ReadArrayEnd() -} - -func (x *RemoveLoginStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) - } else { - r.WriteMapStart(2) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil { - z.EncExtension(x.Kind, yyxt4) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Kind) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Kind) - } else { - r.EncodeInt(int64(x.Kind)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Kind\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) - } - r.WriteMapElemValue() - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.EncExtension(x.Kind, yyxt5) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Kind) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Kind) - } else { - r.EncodeInt(int64(x.Kind)) - } - } - var yyn6 bool - if x.User == nil { - yyn6 = true - goto LABEL6 - } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.User == nil { - r.EncodeNil() - } else { - x.User.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"User\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `User`) - } - r.WriteMapElemValue() - if yyn6 { - r.EncodeNil() - } else { - if x.User == nil { - r.EncodeNil() - } else { - x.User.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *RemoveLoginStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *RemoveLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Kind": - if r.TryDecodeAsNil() { - x.Kind = 0 - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.DecExtension(x.Kind, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) - } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "User": - if r.TryDecodeAsNil() { - if true && x.User != nil { - x.User = nil - } - } else { - if x.User == nil { - x.User = new(Ident) - } - - x.User.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *RemoveLoginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Kind = 0 - } else { - if false { - } else if yyxt9 := z.Extension(z.I2Rtid(x.Kind)); yyxt9 != nil { - z.DecExtension(x.Kind, yyxt9) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) - } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.User != nil { - x.User = nil - } - } else { - if x.User == nil { - x.User = new(Ident) - } - - x.User.CodecDecodeSelf(d) - } - for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj7-1, "") - } - r.ReadArrayEnd() -} - -func (x *DefineTokenStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(5) - } else { - r.WriteMapStart(5) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil { - z.EncExtension(x.Kind, yyxt4) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Kind) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Kind) - } else { - r.EncodeInt(int64(x.Kind)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Kind\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) - } - r.WriteMapElemValue() - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.EncExtension(x.Kind, yyxt5) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Kind) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Kind) - } else { - r.EncodeInt(int64(x.Kind)) - } - } - var yyn6 bool - if x.Name == nil { - yyn6 = true - goto LABEL6 - } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn6 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - var yyn9 bool - if x.What == nil { - yyn9 = true - goto LABEL9 - } - LABEL9: - if yyr2 || yy2arr2 { - if yyn9 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if yyn9 { - r.EncodeNil() - } else { - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Type)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Type\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Type`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Type)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Code == nil { - r.EncodeNil() - } else { - if false { - } else { - r.EncodeStringBytesRaw([]byte(x.Code)) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Code\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Code`) - } - r.WriteMapElemValue() - if x.Code == nil { - r.EncodeNil() - } else { - if false { - } else { - r.EncodeStringBytesRaw([]byte(x.Code)) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *DefineTokenStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *DefineTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Kind": - if r.TryDecodeAsNil() { - x.Kind = 0 - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.DecExtension(x.Kind, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) - } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "What": - if r.TryDecodeAsNil() { - if true && x.What != nil { - x.What = nil - } - } else { - if x.What == nil { - x.What = new(Ident) - } - - x.What.CodecDecodeSelf(d) - } - case "Type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = (string)(r.DecodeString()) - } - case "Code": - if r.TryDecodeAsNil() { - x.Code = nil - } else { - if false { - } else { - x.Code = r.DecodeBytes(([]byte)(x.Code), false) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *DefineTokenStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj11 int - var yyb11 bool - var yyhl11 bool = l >= 0 - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Kind = 0 - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Kind)); yyxt13 != nil { - z.DecExtension(x.Kind, yyxt13) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) - } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.What != nil { - x.What = nil - } - } else { - if x.What == nil { - x.What = new(Ident) - } - - x.What.CodecDecodeSelf(d) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = (string)(r.DecodeString()) - } - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Code = nil - } else { - if false { - } else { - x.Code = r.DecodeBytes(([]byte)(x.Code), false) - } - } - for { - yyj11++ - if yyhl11 { - yyb11 = yyj11 > l - } else { - yyb11 = r.CheckBreak() - } - if yyb11 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj11-1, "") - } - r.ReadArrayEnd() -} - -func (x *RemoveTokenStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(3) - } else { - r.WriteMapStart(3) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil { - z.EncExtension(x.Kind, yyxt4) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Kind) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Kind) - } else { - r.EncodeInt(int64(x.Kind)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Kind\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) - } - r.WriteMapElemValue() - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.EncExtension(x.Kind, yyxt5) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Kind) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Kind) - } else { - r.EncodeInt(int64(x.Kind)) - } - } - var yyn6 bool - if x.Name == nil { - yyn6 = true - goto LABEL6 - } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn6 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - var yyn9 bool - if x.What == nil { - yyn9 = true - goto LABEL9 - } - LABEL9: - if yyr2 || yy2arr2 { - if yyn9 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if yyn9 { - r.EncodeNil() - } else { - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *RemoveTokenStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *RemoveTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Kind": - if r.TryDecodeAsNil() { - x.Kind = 0 - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.DecExtension(x.Kind, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) - } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "What": - if r.TryDecodeAsNil() { - if true && x.What != nil { - x.What = nil - } - } else { - if x.What == nil { - x.What = new(Ident) - } - - x.What.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *RemoveTokenStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Kind = 0 - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Kind)); yyxt10 != nil { - z.DecExtension(x.Kind, yyxt10) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) - } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.What != nil { - x.What = nil - } - } else { - if x.What == nil { - x.What = new(Ident) - } - - x.What.CodecDecodeSelf(d) - } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj8-1, "") - } - r.ReadArrayEnd() -} - -func (x *DefineScopeStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(8) - } else { - r.WriteMapStart(8) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Time)); yyxt7 != nil { - z.EncExtension(x.Time, yyxt7) - } else { - r.EncodeInt(int64(x.Time)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Time\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Time`) - } - r.WriteMapElemValue() - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Time)); yyxt8 != nil { - z.EncExtension(x.Time, yyxt8) - } else { - r.EncodeInt(int64(x.Time)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Code == nil { - r.EncodeNil() - } else { - if false { - } else { - r.EncodeStringBytesRaw([]byte(x.Code)) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Code\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Code`) - } - r.WriteMapElemValue() - if x.Code == nil { - r.EncodeNil() - } else { - if false { - } else { - r.EncodeStringBytesRaw([]byte(x.Code)) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Signup == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Signup)); yyxt13 != nil { - z.EncExtension(x.Signup, yyxt13) - } else { - z.EncFallback(x.Signup) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Signup\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Signup`) - } - r.WriteMapElemValue() - if x.Signup == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Signup)); yyxt14 != nil { - z.EncExtension(x.Signup, yyxt14) - } else { - z.EncFallback(x.Signup) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Signin == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.Signin)); yyxt16 != nil { - z.EncExtension(x.Signin, yyxt16) - } else { - z.EncFallback(x.Signin) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Signin\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Signin`) - } - r.WriteMapElemValue() - if x.Signin == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt17 := z.Extension(z.I2Rtid(x.Signin)); yyxt17 != nil { - z.EncExtension(x.Signin, yyxt17) - } else { - z.EncFallback(x.Signin) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Connect == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt19 := z.Extension(z.I2Rtid(x.Connect)); yyxt19 != nil { - z.EncExtension(x.Connect, yyxt19) - } else { - z.EncFallback(x.Connect) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Connect\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Connect`) - } - r.WriteMapElemValue() - if x.Connect == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt20 := z.Extension(z.I2Rtid(x.Connect)); yyxt20 != nil { - z.EncExtension(x.Connect, yyxt20) - } else { - z.EncFallback(x.Connect) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.OnSignup == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt22 := z.Extension(z.I2Rtid(x.OnSignup)); yyxt22 != nil { - z.EncExtension(x.OnSignup, yyxt22) - } else { - z.EncFallback(x.OnSignup) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"OnSignup\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `OnSignup`) - } - r.WriteMapElemValue() - if x.OnSignup == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt23 := z.Extension(z.I2Rtid(x.OnSignup)); yyxt23 != nil { - z.EncExtension(x.OnSignup, yyxt23) - } else { - z.EncFallback(x.OnSignup) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.OnSignin == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt25 := z.Extension(z.I2Rtid(x.OnSignin)); yyxt25 != nil { - z.EncExtension(x.OnSignin, yyxt25) - } else { - z.EncFallback(x.OnSignin) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"OnSignin\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `OnSignin`) - } - r.WriteMapElemValue() - if x.OnSignin == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt26 := z.Extension(z.I2Rtid(x.OnSignin)); yyxt26 != nil { - z.EncExtension(x.OnSignin, yyxt26) - } else { - z.EncFallback(x.OnSignin) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *DefineScopeStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *DefineScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "Time": - if r.TryDecodeAsNil() { - x.Time = 0 - } else { - if false { - } else if yyxt6 := z.Extension(z.I2Rtid(x.Time)); yyxt6 != nil { - z.DecExtension(x.Time, yyxt6) - } else { - x.Time = (time.Duration)(r.DecodeInt64()) - } - } - case "Code": - if r.TryDecodeAsNil() { - x.Code = nil - } else { - if false { - } else { - x.Code = r.DecodeBytes(([]byte)(x.Code), false) - } - } - case "Signup": - if r.TryDecodeAsNil() { - x.Signup = nil - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Signup)); yyxt10 != nil { - z.DecExtension(x.Signup, yyxt10) - } else { - z.DecFallback(&x.Signup, true) - } - } - case "Signin": - if r.TryDecodeAsNil() { - x.Signin = nil - } else { - if false { - } else if yyxt12 := z.Extension(z.I2Rtid(x.Signin)); yyxt12 != nil { - z.DecExtension(x.Signin, yyxt12) - } else { - z.DecFallback(&x.Signin, true) - } - } - case "Connect": - if r.TryDecodeAsNil() { - x.Connect = nil - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Connect)); yyxt14 != nil { - z.DecExtension(x.Connect, yyxt14) - } else { - z.DecFallback(&x.Connect, true) - } - } - case "OnSignup": - if r.TryDecodeAsNil() { - x.OnSignup = nil - } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.OnSignup)); yyxt16 != nil { - z.DecExtension(x.OnSignup, yyxt16) - } else { - z.DecFallback(&x.OnSignup, true) - } - } - case "OnSignin": - if r.TryDecodeAsNil() { - x.OnSignin = nil - } else { - if false { - } else if yyxt18 := z.Extension(z.I2Rtid(x.OnSignin)); yyxt18 != nil { - z.DecExtension(x.OnSignin, yyxt18) - } else { - z.DecFallback(&x.OnSignin, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *DefineScopeStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj19 int - var yyb19 bool - var yyhl19 bool = l >= 0 - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Time = 0 - } else { - if false { - } else if yyxt22 := z.Extension(z.I2Rtid(x.Time)); yyxt22 != nil { - z.DecExtension(x.Time, yyxt22) - } else { - x.Time = (time.Duration)(r.DecodeInt64()) - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Code = nil - } else { - if false { - } else { - x.Code = r.DecodeBytes(([]byte)(x.Code), false) - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Signup = nil - } else { - if false { - } else if yyxt26 := z.Extension(z.I2Rtid(x.Signup)); yyxt26 != nil { - z.DecExtension(x.Signup, yyxt26) - } else { - z.DecFallback(&x.Signup, true) - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Signin = nil - } else { - if false { - } else if yyxt28 := z.Extension(z.I2Rtid(x.Signin)); yyxt28 != nil { - z.DecExtension(x.Signin, yyxt28) - } else { - z.DecFallback(&x.Signin, true) - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Connect = nil - } else { - if false { - } else if yyxt30 := z.Extension(z.I2Rtid(x.Connect)); yyxt30 != nil { - z.DecExtension(x.Connect, yyxt30) - } else { - z.DecFallback(&x.Connect, true) - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.OnSignup = nil - } else { - if false { - } else if yyxt32 := z.Extension(z.I2Rtid(x.OnSignup)); yyxt32 != nil { - z.DecExtension(x.OnSignup, yyxt32) - } else { - z.DecFallback(&x.OnSignup, true) - } - } - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.OnSignin = nil - } else { - if false { - } else if yyxt34 := z.Extension(z.I2Rtid(x.OnSignin)); yyxt34 != nil { - z.DecExtension(x.OnSignin, yyxt34) - } else { - z.DecFallback(&x.OnSignin, true) - } - } - for { - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l - } else { - yyb19 = r.CheckBreak() - } - if yyb19 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj19-1, "") - } - r.ReadArrayEnd() -} - -func (x *RemoveScopeStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *RemoveScopeStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *RemoveScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *RemoveScopeStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") - } - r.ReadArrayEnd() -} - -func (x *DefineTableStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(11) - } else { - r.WriteMapStart(11) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.Full)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Full\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Full`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.Full)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.Vers)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Vers\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Vers`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.Vers)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.Drop)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Drop\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Drop`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.Drop)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.Lock)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Lock\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Lock`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.Lock)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Expr == nil { - r.EncodeNil() - } else { - x.Expr.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) - } - r.WriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() - } else { - x.Expr.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.From == nil { - r.EncodeNil() - } else { - x.From.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"From\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `From`) - } - r.WriteMapElemValue() - if x.From == nil { - r.EncodeNil() - } else { - x.From.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt28 := z.Extension(z.I2Rtid(x.Cond)); yyxt28 != nil { - z.EncExtension(x.Cond, yyxt28) - } else { - z.EncFallback(x.Cond) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) - } - r.WriteMapElemValue() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt29 := z.Extension(z.I2Rtid(x.Cond)); yyxt29 != nil { - z.EncExtension(x.Cond, yyxt29) - } else { - z.EncFallback(x.Cond) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Group == nil { - r.EncodeNil() - } else { - x.Group.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Group\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Group`) - } - r.WriteMapElemValue() - if x.Group == nil { - r.EncodeNil() - } else { - x.Group.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Perms == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt34 := z.Extension(z.I2Rtid(x.Perms)); yyxt34 != nil { - z.EncExtension(x.Perms, yyxt34) - } else { - z.EncFallback(x.Perms) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Perms\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Perms`) - } - r.WriteMapElemValue() - if x.Perms == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt35 := z.Extension(z.I2Rtid(x.Perms)); yyxt35 != nil { - z.EncExtension(x.Perms, yyxt35) - } else { - z.EncFallback(x.Perms) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *DefineTableStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *DefineTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - case "Full": - if r.TryDecodeAsNil() { - x.Full = false - } else { - x.Full = (bool)(r.DecodeBool()) - } - case "Vers": - if r.TryDecodeAsNil() { - x.Vers = false - } else { - x.Vers = (bool)(r.DecodeBool()) - } - case "Drop": - if r.TryDecodeAsNil() { - x.Drop = false - } else { - x.Drop = (bool)(r.DecodeBool()) - } - case "Lock": - if r.TryDecodeAsNil() { - x.Lock = false - } else { - x.Lock = (bool)(r.DecodeBool()) - } - case "Expr": - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - x.Expr.CodecDecodeSelf(d) - } - case "From": - if r.TryDecodeAsNil() { - x.From = nil - } else { - x.From.CodecDecodeSelf(d) - } - case "Cond": - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Cond)); yyxt13 != nil { - z.DecExtension(x.Cond, yyxt13) - } else { - z.DecFallback(&x.Cond, true) - } - } - case "Group": - if r.TryDecodeAsNil() { - x.Group = nil - } else { - x.Group.CodecDecodeSelf(d) - } - case "Perms": - if r.TryDecodeAsNil() { - x.Perms = nil - } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.Perms)); yyxt16 != nil { - z.DecExtension(x.Perms, yyxt16) - } else { - z.DecFallback(&x.Perms, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *DefineTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *LiveStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj17 int var yyb17 bool @@ -9126,117 +1609,75 @@ func (x *DefineTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = r.CheckBreak() + yyb17 = z.DecCheckBreak() } if yyb17 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } + z.DecReadArrayElem() + x.ID = (string)(string(r.DecodeStringAsBytes())) yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = r.CheckBreak() + yyb17 = z.DecCheckBreak() } if yyb17 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } + z.DecReadArrayElem() + x.FB = (string)(string(r.DecodeStringAsBytes())) yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = r.CheckBreak() + yyb17 = z.DecCheckBreak() } if yyb17 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Full = false - } else { - x.Full = (bool)(r.DecodeBool()) - } + z.DecReadArrayElem() + x.NS = (string)(string(r.DecodeStringAsBytes())) yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = r.CheckBreak() + yyb17 = z.DecCheckBreak() } if yyb17 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Vers = false - } else { - x.Vers = (bool)(r.DecodeBool()) - } + z.DecReadArrayElem() + x.DB = (string)(string(r.DecodeStringAsBytes())) yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = r.CheckBreak() + yyb17 = z.DecCheckBreak() } if yyb17 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Drop = false - } else { - x.Drop = (bool)(r.DecodeBool()) - } + z.DecReadArrayElem() + x.Diff = (bool)(r.DecodeBool()) yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = r.CheckBreak() + yyb17 = z.DecCheckBreak() } if yyb17 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Lock = false - } else { - x.Lock = (bool)(r.DecodeBool()) - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Expr = nil + z.DecReadArrayElem() + if yyxt24 := z.Extension(x.Expr); yyxt24 != nil { + z.DecExtension(&x.Expr, yyxt24) } else { x.Expr.CodecDecodeSelf(d) } @@ -9244,174 +1685,143 @@ func (x *DefineTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = r.CheckBreak() + yyb17 = z.DecCheckBreak() } if yyb17 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.From = nil + z.DecReadArrayElem() + if yyxt26 := z.Extension(x.What); yyxt26 != nil { + z.DecExtension(&x.What, yyxt26) } else { - x.From.CodecDecodeSelf(d) + x.What.CodecDecodeSelf(d) } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = r.CheckBreak() + yyb17 = z.DecCheckBreak() } if yyb17 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Cond = nil + z.DecReadArrayElem() + if yyxt28 := z.Extension(x.Cond); yyxt28 != nil { + z.DecExtension(&x.Cond, yyxt28) } else { - if false { - } else if yyxt27 := z.Extension(z.I2Rtid(x.Cond)); yyxt27 != nil { - z.DecExtension(x.Cond, yyxt27) - } else { - z.DecFallback(&x.Cond, true) - } + z.DecFallback(&x.Cond, true) } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = r.CheckBreak() + yyb17 = z.DecCheckBreak() } if yyb17 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Group = nil + z.DecReadArrayElem() + if yyxt30 := z.Extension(x.Fetch); yyxt30 != nil { + z.DecExtension(&x.Fetch, yyxt30) } else { - x.Group.CodecDecodeSelf(d) - } - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = r.CheckBreak() - } - if yyb17 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Perms = nil - } else { - if false { - } else if yyxt30 := z.Extension(z.I2Rtid(x.Perms)); yyxt30 != nil { - z.DecExtension(x.Perms, yyxt30) - } else { - z.DecFallback(&x.Perms, true) - } + x.Fetch.CodecDecodeSelf(d) } for { yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = r.CheckBreak() + yyb17 = z.DecCheckBreak() } if yyb17 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj17-1, "") } - r.ReadArrayEnd() } -func (x *RemoveTableStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *LiveStatement) IsCodecEmpty() bool { + return !(x.ID != "" && x.FB != "" && x.NS != "" && x.DB != "" && bool(x.Diff) && len(x.Expr) != 0 && len(x.What) != 0 && x.Cond != nil && len(x.Fetch) != 0 && true) +} + +func (x *KillStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + z.EncWriteArrayElem() + r.EncodeString(string(x.FB)) + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.What); yyxt6 != nil { + z.EncExtension(x.What, yyxt6) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FB\"") } else { - r.WriteMapStart(1) + r.EncodeString(`FB`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } + z.EncWriteMapElemValue() + r.EncodeString(string(x.FB)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } + r.EncodeString(`What`) } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + z.EncWriteMapElemValue() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.EncExtension(x.What, yyxt8) + x.What.CodecEncodeSelf(e) } + z.EncWriteMapEnd() } } } -func (x *RemoveTableStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *KillStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = KillStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *RemoveTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *KillStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -9420,17 +1830,19 @@ func (x *RemoveTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { + case "FB": + x.FB = (string)(string(r.DecodeStringAsBytes())) case "What": - if r.TryDecodeAsNil() { - x.What = nil + if yyxt6 := z.Extension(x.What); yyxt6 != nil { + z.DecExtension(&x.What, yyxt6) } else { x.What.CodecDecodeSelf(d) } @@ -9438,3929 +1850,11 @@ func (x *RemoveTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *RemoveTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") - } - r.ReadArrayEnd() -} - -func (x *DefineEventStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(4) - } else { - r.WriteMapStart(4) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.When == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.When)); yyxt10 != nil { - z.EncExtension(x.When, yyxt10) - } else { - z.EncFallback(x.When) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"When\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `When`) - } - r.WriteMapElemValue() - if x.When == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.When)); yyxt11 != nil { - z.EncExtension(x.When, yyxt11) - } else { - z.EncFallback(x.When) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Then == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Then)); yyxt13 != nil { - z.EncExtension(x.Then, yyxt13) - } else { - z.EncFallback(x.Then) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Then\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Then`) - } - r.WriteMapElemValue() - if x.Then == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Then)); yyxt14 != nil { - z.EncExtension(x.Then, yyxt14) - } else { - z.EncFallback(x.Then) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *DefineEventStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *DefineEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - case "When": - if r.TryDecodeAsNil() { - x.When = nil - } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.When)); yyxt7 != nil { - z.DecExtension(x.When, yyxt7) - } else { - z.DecFallback(&x.When, true) - } - } - case "Then": - if r.TryDecodeAsNil() { - x.Then = nil - } else { - if false { - } else if yyxt9 := z.Extension(z.I2Rtid(x.Then)); yyxt9 != nil { - z.DecExtension(x.Then, yyxt9) - } else { - z.DecFallback(&x.Then, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *DefineEventStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.When = nil - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.When)); yyxt14 != nil { - z.DecExtension(x.When, yyxt14) - } else { - z.DecFallback(&x.When, true) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Then = nil - } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.Then)); yyxt16 != nil { - z.DecExtension(x.Then, yyxt16) - } else { - z.DecFallback(&x.Then, true) - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj10-1, "") - } - r.ReadArrayEnd() -} - -func (x *RemoveEventStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) - } else { - r.WriteMapStart(2) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *RemoveEventStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *RemoveEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *RemoveEventStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") - } - r.ReadArrayEnd() -} - -func (x *DefineFieldStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(8) - } else { - r.WriteMapStart(8) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Perms == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Perms)); yyxt10 != nil { - z.EncExtension(x.Perms, yyxt10) - } else { - z.EncFallback(x.Perms) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Perms\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Perms`) - } - r.WriteMapElemValue() - if x.Perms == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.Perms)); yyxt11 != nil { - z.EncExtension(x.Perms, yyxt11) - } else { - z.EncFallback(x.Perms) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Type)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Type\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Type`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Type)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Kind)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Kind\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Kind)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Value == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt19 := z.Extension(z.I2Rtid(x.Value)); yyxt19 != nil { - z.EncExtension(x.Value, yyxt19) - } else { - z.EncFallback(x.Value) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Value\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Value`) - } - r.WriteMapElemValue() - if x.Value == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt20 := z.Extension(z.I2Rtid(x.Value)); yyxt20 != nil { - z.EncExtension(x.Value, yyxt20) - } else { - z.EncFallback(x.Value) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Assert == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt22 := z.Extension(z.I2Rtid(x.Assert)); yyxt22 != nil { - z.EncExtension(x.Assert, yyxt22) - } else { - z.EncFallback(x.Assert) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Assert\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Assert`) - } - r.WriteMapElemValue() - if x.Assert == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt23 := z.Extension(z.I2Rtid(x.Assert)); yyxt23 != nil { - z.EncExtension(x.Assert, yyxt23) - } else { - z.EncFallback(x.Assert) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeFloat64(float64(x.Priority)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Priority\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Priority`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeFloat64(float64(x.Priority)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *DefineFieldStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *DefineFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - case "Perms": - if r.TryDecodeAsNil() { - x.Perms = nil - } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Perms)); yyxt7 != nil { - z.DecExtension(x.Perms, yyxt7) - } else { - z.DecFallback(&x.Perms, true) - } - } - case "Type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = (string)(r.DecodeString()) - } - case "Kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = (string)(r.DecodeString()) - } - case "Value": - if r.TryDecodeAsNil() { - x.Value = nil - } else { - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.Value)); yyxt11 != nil { - z.DecExtension(x.Value, yyxt11) - } else { - z.DecFallback(&x.Value, true) - } - } - case "Assert": - if r.TryDecodeAsNil() { - x.Assert = nil - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Assert)); yyxt13 != nil { - z.DecExtension(x.Assert, yyxt13) - } else { - z.DecFallback(&x.Assert, true) - } - } - case "Priority": - if r.TryDecodeAsNil() { - x.Priority = 0 - } else { - x.Priority = (float64)(r.DecodeFloat64()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *DefineFieldStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj15 int - var yyb15 bool - var yyhl15 bool = l >= 0 - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Perms = nil - } else { - if false { - } else if yyxt19 := z.Extension(z.I2Rtid(x.Perms)); yyxt19 != nil { - z.DecExtension(x.Perms, yyxt19) - } else { - z.DecFallback(&x.Perms, true) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = (string)(r.DecodeString()) - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = (string)(r.DecodeString()) - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Value = nil - } else { - if false { - } else if yyxt23 := z.Extension(z.I2Rtid(x.Value)); yyxt23 != nil { - z.DecExtension(x.Value, yyxt23) - } else { - z.DecFallback(&x.Value, true) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Assert = nil - } else { - if false { - } else if yyxt25 := z.Extension(z.I2Rtid(x.Assert)); yyxt25 != nil { - z.DecExtension(x.Assert, yyxt25) - } else { - z.DecFallback(&x.Assert, true) - } - } - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Priority = 0 - } else { - x.Priority = (float64)(r.DecodeFloat64()) - } - for { - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = r.CheckBreak() - } - if yyb15 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj15-1, "") - } - r.ReadArrayEnd() -} - -func (x *RemoveFieldStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) - } else { - r.WriteMapStart(2) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *RemoveFieldStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *RemoveFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *RemoveFieldStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") - } - r.ReadArrayEnd() -} - -func (x *DefineIndexStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(4) - } else { - r.WriteMapStart(4) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Cols == nil { - r.EncodeNil() - } else { - x.Cols.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cols\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Cols`) - } - r.WriteMapElemValue() - if x.Cols == nil { - r.EncodeNil() - } else { - x.Cols.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.Uniq)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Uniq\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Uniq`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.Uniq)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *DefineIndexStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *DefineIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - case "Cols": - if r.TryDecodeAsNil() { - x.Cols = nil - } else { - x.Cols.CodecDecodeSelf(d) - } - case "Uniq": - if r.TryDecodeAsNil() { - x.Uniq = false - } else { - x.Uniq = (bool)(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *DefineIndexStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Cols = nil - } else { - x.Cols.CodecDecodeSelf(d) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Uniq = false - } else { - x.Uniq = (bool)(r.DecodeBool()) - } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj8-1, "") - } - r.ReadArrayEnd() -} - -func (x *RemoveIndexStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) - } else { - r.WriteMapStart(2) - } - var yyn3 bool - if x.Name == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { - if yyn3 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *RemoveIndexStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *RemoveIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "What": - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *RemoveIndexStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil - } else { - x.What.CodecDecodeSelf(d) - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") - } - r.ReadArrayEnd() -} - -func (x Exprs) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encExprs((Exprs)(x), e) - } - } -} - -func (x *Exprs) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decExprs((*Exprs)(x), d) - } -} - -func (x *All) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(0) - } else { - r.WriteMapStart(0) - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *All) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *All) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *All) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4 int - var yyb4 bool - var yyhl4 bool = l >= 0 - for { - yyj4++ - if yyhl4 { - yyb4 = yyj4 > l - } else { - yyb4 = r.CheckBreak() - } - if yyb4 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj4-1, "") - } - r.ReadArrayEnd() -} - -func (x *Any) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(0) - } else { - r.WriteMapStart(0) - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Any) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Any) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Any) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4 int - var yyb4 bool - var yyhl4 bool = l >= 0 - for { - yyj4++ - if yyhl4 { - yyb4 = yyj4 > l - } else { - yyb4 = r.CheckBreak() - } - if yyb4 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj4-1, "") - } - r.ReadArrayEnd() -} - -func (x *Null) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(0) - } else { - r.WriteMapStart(0) - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Null) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Null) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Null) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4 int - var yyb4 bool - var yyhl4 bool = l >= 0 - for { - yyj4++ - if yyhl4 { - yyb4 = yyj4 > l - } else { - yyb4 = r.CheckBreak() - } - if yyb4 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj4-1, "") - } - r.ReadArrayEnd() -} - -func (x *Void) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(0) - } else { - r.WriteMapStart(0) - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Void) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Void) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Void) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4 int - var yyb4 bool - var yyhl4 bool = l >= 0 - for { - yyj4++ - if yyhl4 { - yyb4 = yyj4 > l - } else { - yyb4 = r.CheckBreak() - } - if yyb4 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj4-1, "") - } - r.ReadArrayEnd() -} - -func (x *Empty) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(0) - } else { - r.WriteMapStart(0) - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Empty) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Empty) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Empty) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4 int - var yyb4 bool - var yyhl4 bool = l >= 0 - for { - yyj4++ - if yyhl4 { - yyb4 = yyj4 > l - } else { - yyb4 = r.CheckBreak() - } - if yyb4 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj4-1, "") - } - r.ReadArrayEnd() -} - -func (x *Field) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(3) - } else { - r.WriteMapStart(3) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { - z.EncExtension(x.Expr, yyxt4) - } else { - z.EncFallback(x.Expr) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) - } - r.WriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.EncExtension(x.Expr, yyxt5) - } else { - z.EncFallback(x.Expr) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Field)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Field\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Field`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Field)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Alias)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Alias\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Alias`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Alias)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Field) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Field) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Expr": - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.DecExtension(x.Expr, yyxt5) - } else { - z.DecFallback(&x.Expr, true) - } - } - case "Field": - if r.TryDecodeAsNil() { - x.Field = "" - } else { - x.Field = (string)(r.DecodeString()) - } - case "Alias": - if r.TryDecodeAsNil() { - x.Alias = "" - } else { - x.Alias = (string)(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Field) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Expr)); yyxt10 != nil { - z.DecExtension(x.Expr, yyxt10) - } else { - z.DecFallback(&x.Expr, true) - } - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Field = "" - } else { - x.Field = (string)(r.DecodeString()) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Alias = "" - } else { - x.Alias = (string)(r.DecodeString()) - } - for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj8-1, "") - } - r.ReadArrayEnd() -} - -func (x Fields) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encFields((Fields)(x), e) - } - } -} - -func (x *Fields) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decFields((*Fields)(x), d) - } -} - -func (x *Group) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { - z.EncExtension(x.Expr, yyxt4) - } else { - z.EncFallback(x.Expr) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) - } - r.WriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.EncExtension(x.Expr, yyxt5) - } else { - z.EncFallback(x.Expr) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Group) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Group) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Expr": - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.DecExtension(x.Expr, yyxt5) - } else { - z.DecFallback(&x.Expr, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Group) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { - z.DecExtension(x.Expr, yyxt8) - } else { - z.DecFallback(&x.Expr, true) - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") - } - r.ReadArrayEnd() -} - -func (x Groups) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encGroups((Groups)(x), e) - } - } -} - -func (x *Groups) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decGroups((*Groups)(x), d) - } -} - -func (x *Order) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(3) - } else { - r.WriteMapStart(3) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { - z.EncExtension(x.Expr, yyxt4) - } else { - z.EncFallback(x.Expr) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) - } - r.WriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.EncExtension(x.Expr, yyxt5) - } else { - z.EncFallback(x.Expr) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.Dir)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Dir\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Dir`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.Dir)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - yy10 := &x.Tag - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(yy10)); yyxt11 != nil { - z.EncExtension(yy10, yyxt11) - } else if !z.EncBinary() { - z.EncTextMarshal(yy10) - } else { - z.EncFallback(yy10) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Tag\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Tag`) - } - r.WriteMapElemValue() - yy12 := &x.Tag - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(yy12)); yyxt13 != nil { - z.EncExtension(yy12, yyxt13) - } else if !z.EncBinary() { - z.EncTextMarshal(yy12) - } else { - z.EncFallback(yy12) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Order) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Order) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Expr": - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.DecExtension(x.Expr, yyxt5) - } else { - z.DecFallback(&x.Expr, true) - } - } - case "Dir": - if r.TryDecodeAsNil() { - x.Dir = false - } else { - x.Dir = (bool)(r.DecodeBool()) - } - case "Tag": - if r.TryDecodeAsNil() { - x.Tag = pkg1_language.Tag{} - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Tag)); yyxt8 != nil { - z.DecExtension(x.Tag, yyxt8) - } else if !z.DecBinary() { - z.DecTextUnmarshal(&x.Tag) - } else { - z.DecFallback(&x.Tag, false) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Order) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj9 int - var yyb9 bool - var yyhl9 bool = l >= 0 - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.Expr)); yyxt11 != nil { - z.DecExtension(x.Expr, yyxt11) - } else { - z.DecFallback(&x.Expr, true) - } - } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Dir = false - } else { - x.Dir = (bool)(r.DecodeBool()) - } - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Tag = pkg1_language.Tag{} - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Tag)); yyxt14 != nil { - z.DecExtension(x.Tag, yyxt14) - } else if !z.DecBinary() { - z.DecTextUnmarshal(&x.Tag) - } else { - z.DecFallback(&x.Tag, false) - } - } - for { - yyj9++ - if yyhl9 { - yyb9 = yyj9 > l - } else { - yyb9 = r.CheckBreak() - } - if yyb9 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj9-1, "") - } - r.ReadArrayEnd() -} - -func (x Orders) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encOrders((Orders)(x), e) - } - } -} - -func (x *Orders) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decOrders((*Orders)(x), d) - } -} - -func (x *Fetch) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { - z.EncExtension(x.Expr, yyxt4) - } else { - z.EncFallback(x.Expr) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) - } - r.WriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.EncExtension(x.Expr, yyxt5) - } else { - z.EncFallback(x.Expr) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Fetch) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Fetch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Expr": - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.DecExtension(x.Expr, yyxt5) - } else { - z.DecFallback(&x.Expr, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Fetch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { - z.DecExtension(x.Expr, yyxt8) - } else { - z.DecFallback(&x.Expr, true) - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") - } - r.ReadArrayEnd() -} - -func (x Fetchs) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encFetchs((Fetchs)(x), e) - } - } -} - -func (x *Fetchs) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decFetchs((*Fetchs)(x), d) - } -} - -func (x *SubExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { - z.EncExtension(x.Expr, yyxt4) - } else { - z.EncFallback(x.Expr) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) - } - r.WriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.EncExtension(x.Expr, yyxt5) - } else { - z.EncFallback(x.Expr) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *SubExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *SubExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Expr": - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.DecExtension(x.Expr, yyxt5) - } else { - z.DecFallback(&x.Expr, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *SubExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { - z.DecExtension(x.Expr, yyxt8) - } else { - z.DecFallback(&x.Expr, true) - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") - } - r.ReadArrayEnd() -} - -func (x *MultExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else { - h.encSliceExpr(([]Expr)(x.Expr), e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) - } - r.WriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() - } else { - if false { - } else { - h.encSliceExpr(([]Expr)(x.Expr), e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *MultExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *MultExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Expr": - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else { - h.decSliceExpr((*[]Expr)(&x.Expr), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *MultExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - if false { - } else { - h.decSliceExpr((*[]Expr)(&x.Expr), d) - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") - } - r.ReadArrayEnd() -} - -func (x *FuncExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(3) - } else { - r.WriteMapStart(3) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Name)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Name)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Args == nil { - r.EncodeNil() - } else { - x.Args.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Args\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Args`) - } - r.WriteMapElemValue() - if x.Args == nil { - r.EncodeNil() - } else { - x.Args.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeBool(bool(x.Aggr)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Aggr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Aggr`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeBool(bool(x.Aggr)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *FuncExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *FuncExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = (string)(r.DecodeString()) - } - case "Args": - if r.TryDecodeAsNil() { - x.Args = nil - } else { - x.Args.CodecDecodeSelf(d) - } - case "Aggr": - if r.TryDecodeAsNil() { - x.Aggr = false - } else { - x.Aggr = (bool)(r.DecodeBool()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *FuncExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *KillStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj7 int var yyb7 bool @@ -13369,220 +1863,123 @@ func (x *FuncExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } if yyb7 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = (string)(r.DecodeString()) - } + z.DecReadArrayElem() + x.FB = (string)(string(r.DecodeStringAsBytes())) yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } if yyb7 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Args = nil + z.DecReadArrayElem() + if yyxt10 := z.Extension(x.What); yyxt10 != nil { + z.DecExtension(&x.What, yyxt10) } else { - x.Args.CodecDecodeSelf(d) - } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Aggr = false - } else { - x.Aggr = (bool)(r.DecodeBool()) + x.What.CodecDecodeSelf(d) } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } if yyb7 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } - r.ReadArrayEnd() } -func (x *ItemExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *KillStatement) IsCodecEmpty() bool { + return !(x.FB != "" && len(x.What) != 0 && true) +} + +func (x *ReturnStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + z.EncWriteArrayElem() + r.EncodeBool(bool(x.RW)) + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.What); yyxt6 != nil { + z.EncExtension(x.What, yyxt6) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(3) + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RW\"") } else { - r.WriteMapStart(3) + r.EncodeString(`RW`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.LHS == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.LHS)); yyxt4 != nil { - z.EncExtension(x.LHS, yyxt4) - } else { - z.EncFallback(x.LHS) - } - } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.RW)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"LHS\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `LHS`) - } - r.WriteMapElemValue() - if x.LHS == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.LHS)); yyxt5 != nil { - z.EncExtension(x.LHS, yyxt5) - } else { - z.EncFallback(x.LHS) - } - } + r.EncodeString(`What`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil { - z.EncExtension(x.Op, yyxt7) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Op) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Op) - } else { - r.EncodeInt(int64(x.Op)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Op\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Op`) - } - r.WriteMapElemValue() - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Op)); yyxt8 != nil { - z.EncExtension(x.Op, yyxt8) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Op) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Op) - } else { - r.EncodeInt(int64(x.Op)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.RHS == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.RHS)); yyxt10 != nil { - z.EncExtension(x.RHS, yyxt10) - } else { - z.EncFallback(x.RHS) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RHS\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `RHS`) - } - r.WriteMapElemValue() - if x.RHS == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.RHS)); yyxt11 != nil { - z.EncExtension(x.RHS, yyxt11) - } else { - z.EncFallback(x.RHS) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + z.EncWriteMapElemValue() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.EncExtension(x.What, yyxt8) + x.What.CodecEncodeSelf(e) } + z.EncWriteMapEnd() } } } -func (x *ItemExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *ReturnStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = ReturnStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *ItemExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *ReturnStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -13591,1406 +1988,190 @@ func (x *ItemExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "LHS": - if r.TryDecodeAsNil() { - x.LHS = nil - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.LHS)); yyxt5 != nil { - z.DecExtension(x.LHS, yyxt5) - } else { - z.DecFallback(&x.LHS, true) - } - } - case "Op": - if r.TryDecodeAsNil() { - x.Op = 0 - } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil { - z.DecExtension(x.Op, yyxt7) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Op) - } else { - x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "RHS": - if r.TryDecodeAsNil() { - x.RHS = nil - } else { - if false { - } else if yyxt9 := z.Extension(z.I2Rtid(x.RHS)); yyxt9 != nil { - z.DecExtension(x.RHS, yyxt9) - } else { - z.DecFallback(&x.RHS, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *ItemExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.LHS = nil - } else { - if false { - } else if yyxt12 := z.Extension(z.I2Rtid(x.LHS)); yyxt12 != nil { - z.DecExtension(x.LHS, yyxt12) - } else { - z.DecFallback(&x.LHS, true) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Op = 0 - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Op)); yyxt14 != nil { - z.DecExtension(x.Op, yyxt14) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Op) - } else { - x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.RHS = nil - } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.RHS)); yyxt16 != nil { - z.DecExtension(x.RHS, yyxt16) - } else { - z.DecFallback(&x.RHS, true) - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj10-1, "") - } - r.ReadArrayEnd() -} - -func (x *BinaryExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(3) - } else { - r.WriteMapStart(3) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.LHS == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.LHS)); yyxt4 != nil { - z.EncExtension(x.LHS, yyxt4) - } else { - z.EncFallback(x.LHS) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"LHS\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `LHS`) - } - r.WriteMapElemValue() - if x.LHS == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.LHS)); yyxt5 != nil { - z.EncExtension(x.LHS, yyxt5) - } else { - z.EncFallback(x.LHS) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil { - z.EncExtension(x.Op, yyxt7) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Op) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Op) - } else { - r.EncodeInt(int64(x.Op)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Op\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Op`) - } - r.WriteMapElemValue() - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Op)); yyxt8 != nil { - z.EncExtension(x.Op, yyxt8) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Op) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Op) - } else { - r.EncodeInt(int64(x.Op)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.RHS == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.RHS)); yyxt10 != nil { - z.EncExtension(x.RHS, yyxt10) - } else { - z.EncFallback(x.RHS) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RHS\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `RHS`) - } - r.WriteMapElemValue() - if x.RHS == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.RHS)); yyxt11 != nil { - z.EncExtension(x.RHS, yyxt11) - } else { - z.EncFallback(x.RHS) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *BinaryExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *BinaryExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "LHS": - if r.TryDecodeAsNil() { - x.LHS = nil - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.LHS)); yyxt5 != nil { - z.DecExtension(x.LHS, yyxt5) - } else { - z.DecFallback(&x.LHS, true) - } - } - case "Op": - if r.TryDecodeAsNil() { - x.Op = 0 - } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil { - z.DecExtension(x.Op, yyxt7) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Op) - } else { - x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - case "RHS": - if r.TryDecodeAsNil() { - x.RHS = nil - } else { - if false { - } else if yyxt9 := z.Extension(z.I2Rtid(x.RHS)); yyxt9 != nil { - z.DecExtension(x.RHS, yyxt9) - } else { - z.DecFallback(&x.RHS, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *BinaryExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj10 int - var yyb10 bool - var yyhl10 bool = l >= 0 - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.LHS = nil - } else { - if false { - } else if yyxt12 := z.Extension(z.I2Rtid(x.LHS)); yyxt12 != nil { - z.DecExtension(x.LHS, yyxt12) - } else { - z.DecFallback(&x.LHS, true) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Op = 0 - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Op)); yyxt14 != nil { - z.DecExtension(x.Op, yyxt14) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Op) - } else { - x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.RHS = nil - } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.RHS)); yyxt16 != nil { - z.DecExtension(x.RHS, yyxt16) - } else { - z.DecFallback(&x.RHS, true) - } - } - for { - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l - } else { - yyb10 = r.CheckBreak() - } - if yyb10 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj10-1, "") - } - r.ReadArrayEnd() -} - -func (x *PathExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Expr == nil { - r.EncodeNil() - } else { - x.Expr.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) - } - r.WriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() - } else { - x.Expr.CodecEncodeSelf(e) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *PathExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *PathExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Expr": - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - x.Expr.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *PathExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Expr = nil - } else { - x.Expr.CodecDecodeSelf(d) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") - } - r.ReadArrayEnd() -} - -func (x *PartExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Part == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Part)); yyxt4 != nil { - z.EncExtension(x.Part, yyxt4) - } else { - z.EncFallback(x.Part) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Part\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Part`) - } - r.WriteMapElemValue() - if x.Part == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Part)); yyxt5 != nil { - z.EncExtension(x.Part, yyxt5) - } else { - z.EncFallback(x.Part) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *PartExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *PartExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Part": - if r.TryDecodeAsNil() { - x.Part = nil - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Part)); yyxt5 != nil { - z.DecExtension(x.Part, yyxt5) - } else { - z.DecFallback(&x.Part, true) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *PartExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Part = nil - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Part)); yyxt8 != nil { - z.DecExtension(x.Part, yyxt8) - } else { - z.DecFallback(&x.Part, true) - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") - } - r.ReadArrayEnd() -} - -func (x *JoinExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Join)); yyxt4 != nil { - z.EncExtension(x.Join, yyxt4) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Join) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Join) - } else { - r.EncodeInt(int64(x.Join)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Join\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Join`) - } - r.WriteMapElemValue() - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Join)); yyxt5 != nil { - z.EncExtension(x.Join, yyxt5) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Join) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Join) - } else { - r.EncodeInt(int64(x.Join)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *JoinExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *JoinExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "Join": - if r.TryDecodeAsNil() { - x.Join = 0 - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Join)); yyxt5 != nil { - z.DecExtension(x.Join, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Join) - } else { - x.Join = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *JoinExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Join = 0 - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Join)); yyxt8 != nil { - z.DecExtension(x.Join, yyxt8) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Join) - } else { - x.Join = (Token)(z.C.IntV(r.DecodeInt64(), 16)) - } - } - for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l - } else { - yyb6 = r.CheckBreak() - } - if yyb6 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") - } - r.ReadArrayEnd() -} - -func (x *SubpExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(3) - } else { - r.WriteMapStart(3) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `What`) - } - r.WriteMapElemValue() - if x.What == nil { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - } - var yyn6 bool - if x.Name == nil { - yyn6 = true - goto LABEL6 - } - LABEL6: - if yyr2 || yy2arr2 { - if yyn6 { - r.WriteArrayElem() - r.EncodeNil() - } else { - r.WriteArrayElem() - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) - } - r.WriteMapElemValue() - if yyn6 { - r.EncodeNil() - } else { - if x.Name == nil { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Cond)); yyxt10 != nil { - z.EncExtension(x.Cond, yyxt10) - } else { - z.EncFallback(x.Cond) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) - } - r.WriteMapElemValue() - if x.Cond == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.Cond)); yyxt11 != nil { - z.EncExtension(x.Cond, yyxt11) - } else { - z.EncFallback(x.Cond) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *SubpExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *SubpExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { + case "RW": + x.RW = (bool)(r.DecodeBool()) case "What": - if r.TryDecodeAsNil() { - x.What = nil + if yyxt6 := z.Extension(x.What); yyxt6 != nil { + z.DecExtension(&x.What, yyxt6) } else { x.What.CodecDecodeSelf(d) } - case "Name": - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - case "Cond": - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Cond)); yyxt7 != nil { - z.DecExtension(x.Cond, yyxt7) - } else { - z.DecFallback(&x.Cond, true) - } - } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *SubpExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *ReturnStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - var yyj8 int - var yyb8 bool - var yyhl8 bool = l >= 0 - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l } else { - yyb8 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } - if yyb8 { - r.ReadArrayEnd() + if yyb7 { + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.What = nil + z.DecReadArrayElem() + x.RW = (bool)(r.DecodeBool()) + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = z.DecCheckBreak() + } + if yyb7 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt10 := z.Extension(x.What); yyxt10 != nil { + z.DecExtension(&x.What, yyxt10) } else { x.What.CodecDecodeSelf(d) } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.Name != nil { - x.Name = nil - } - } else { - if x.Name == nil { - x.Name = new(Ident) - } - - x.Name.CodecDecodeSelf(d) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Cond = nil - } else { - if false { - } else if yyxt12 := z.Extension(z.I2Rtid(x.Cond)); yyxt12 != nil { - z.DecExtension(x.Cond, yyxt12) - } else { - z.DecFallback(&x.Cond, true) - } - } for { - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l } else { - yyb8 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } - if yyb8 { + if yyb7 { break } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj8-1, "") + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") } - r.ReadArrayEnd() } -func (x *PermExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *ReturnStatement) IsCodecEmpty() bool { + return !(bool(x.RW) && len(x.What) != 0 && true) +} + +func (x *IfelseStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(4) + z.EncWriteArrayElem() + r.EncodeBool(bool(x.RW)) + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.Cond); yyxt8 != nil { + z.EncExtension(x.Cond, yyxt8) + x.Cond.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt9 := z.Extension(x.Then); yyxt9 != nil { + z.EncExtension(x.Then, yyxt9) + x.Then.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt10 := z.Extension(x.Else); yyxt10 != nil { + z.EncExtension(x.Else, yyxt10) + } else { + z.EncFallback(x.Else) + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(4) + z.EncWriteMapStart(4) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RW\"") } else { - r.WriteMapStart(4) + r.EncodeString(`RW`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Select == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Select)); yyxt4 != nil { - z.EncExtension(x.Select, yyxt4) - } else { - z.EncFallback(x.Select) - } - } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.RW)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Select\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Select`) - } - r.WriteMapElemValue() - if x.Select == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Select)); yyxt5 != nil { - z.EncExtension(x.Select, yyxt5) - } else { - z.EncFallback(x.Select) - } - } + r.EncodeString(`Cond`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Create == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Create)); yyxt7 != nil { - z.EncExtension(x.Create, yyxt7) - } else { - z.EncFallback(x.Create) - } - } + z.EncWriteMapElemValue() + if yyxt12 := z.Extension(x.Cond); yyxt12 != nil { + z.EncExtension(x.Cond, yyxt12) + x.Cond.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Then\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Create\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Create`) - } - r.WriteMapElemValue() - if x.Create == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Create)); yyxt8 != nil { - z.EncExtension(x.Create, yyxt8) - } else { - z.EncFallback(x.Create) - } - } + r.EncodeString(`Then`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Update == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt10 := z.Extension(z.I2Rtid(x.Update)); yyxt10 != nil { - z.EncExtension(x.Update, yyxt10) - } else { - z.EncFallback(x.Update) - } - } + z.EncWriteMapElemValue() + if yyxt13 := z.Extension(x.Then); yyxt13 != nil { + z.EncExtension(x.Then, yyxt13) + x.Then.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Else\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Update\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Update`) - } - r.WriteMapElemValue() - if x.Update == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.Update)); yyxt11 != nil { - z.EncExtension(x.Update, yyxt11) - } else { - z.EncFallback(x.Update) - } - } + r.EncodeString(`Else`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Delete == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt13 := z.Extension(z.I2Rtid(x.Delete)); yyxt13 != nil { - z.EncExtension(x.Delete, yyxt13) - } else { - z.EncFallback(x.Delete) - } - } + z.EncWriteMapElemValue() + if yyxt14 := z.Extension(x.Else); yyxt14 != nil { + z.EncExtension(x.Else, yyxt14) } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Delete\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Delete`) - } - r.WriteMapElemValue() - if x.Delete == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Delete)); yyxt14 != nil { - z.EncExtension(x.Delete, yyxt14) - } else { - z.EncFallback(x.Delete) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + z.EncFallback(x.Else) } + z.EncWriteMapEnd() } } } -func (x *PermExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *IfelseStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = IfelseStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *PermExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *IfelseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -14999,68 +2180,851 @@ func (x *PermExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { - case "Select": - if r.TryDecodeAsNil() { - x.Select = nil + case "RW": + x.RW = (bool)(r.DecodeBool()) + case "Cond": + if yyxt6 := z.Extension(x.Cond); yyxt6 != nil { + z.DecExtension(&x.Cond, yyxt6) } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Select)); yyxt5 != nil { - z.DecExtension(x.Select, yyxt5) - } else { - z.DecFallback(&x.Select, true) - } + x.Cond.CodecDecodeSelf(d) } - case "Create": - if r.TryDecodeAsNil() { - x.Create = nil + case "Then": + if yyxt8 := z.Extension(x.Then); yyxt8 != nil { + z.DecExtension(&x.Then, yyxt8) } else { - if false { - } else if yyxt7 := z.Extension(z.I2Rtid(x.Create)); yyxt7 != nil { - z.DecExtension(x.Create, yyxt7) - } else { - z.DecFallback(&x.Create, true) - } + x.Then.CodecDecodeSelf(d) } - case "Update": - if r.TryDecodeAsNil() { - x.Update = nil + case "Else": + if yyxt10 := z.Extension(x.Else); yyxt10 != nil { + z.DecExtension(&x.Else, yyxt10) } else { - if false { - } else if yyxt9 := z.Extension(z.I2Rtid(x.Update)); yyxt9 != nil { - z.DecExtension(x.Update, yyxt9) - } else { - z.DecFallback(&x.Update, true) - } - } - case "Delete": - if r.TryDecodeAsNil() { - x.Delete = nil - } else { - if false { - } else if yyxt11 := z.Extension(z.I2Rtid(x.Delete)); yyxt11 != nil { - z.DecExtension(x.Delete, yyxt11) - } else { - z.DecFallback(&x.Delete, true) - } + z.DecFallback(&x.Else, true) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *PermExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *IfelseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = z.DecCheckBreak() + } + if yyb11 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.RW = (bool)(r.DecodeBool()) + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = z.DecCheckBreak() + } + if yyb11 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt14 := z.Extension(x.Cond); yyxt14 != nil { + z.DecExtension(&x.Cond, yyxt14) + } else { + x.Cond.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = z.DecCheckBreak() + } + if yyb11 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt16 := z.Extension(x.Then); yyxt16 != nil { + z.DecExtension(&x.Then, yyxt16) + } else { + x.Then.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = z.DecCheckBreak() + } + if yyb11 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt18 := z.Extension(x.Else); yyxt18 != nil { + z.DecExtension(&x.Else, yyxt18) + } else { + z.DecFallback(&x.Else, true) + } + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = z.DecCheckBreak() + } + if yyb11 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } +} + +func (x *IfelseStatement) IsCodecEmpty() bool { + return !(bool(x.RW) && len(x.Cond) != 0 && len(x.Then) != 0 && x.Else != nil && true) +} + +func (x *SelectStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(12) + z.EncWriteArrayElem() + r.EncodeBool(bool(x.RW)) + z.EncWriteArrayElem() + if yyxt16 := z.Extension(x.Expr); yyxt16 != nil { + z.EncExtension(x.Expr, yyxt16) + x.Expr.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt17 := z.Extension(x.What); yyxt17 != nil { + z.EncExtension(x.What, yyxt17) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt18 := z.Extension(x.Cond); yyxt18 != nil { + z.EncExtension(x.Cond, yyxt18) + } else { + z.EncFallback(x.Cond) + } + z.EncWriteArrayElem() + if yyxt19 := z.Extension(x.Split); yyxt19 != nil { + z.EncExtension(x.Split, yyxt19) + x.Split.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt20 := z.Extension(x.Group); yyxt20 != nil { + z.EncExtension(x.Group, yyxt20) + x.Group.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt21 := z.Extension(x.Order); yyxt21 != nil { + z.EncExtension(x.Order, yyxt21) + x.Order.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt22 := z.Extension(x.Limit); yyxt22 != nil { + z.EncExtension(x.Limit, yyxt22) + } else { + z.EncFallback(x.Limit) + } + z.EncWriteArrayElem() + if yyxt23 := z.Extension(x.Start); yyxt23 != nil { + z.EncExtension(x.Start, yyxt23) + } else { + z.EncFallback(x.Start) + } + z.EncWriteArrayElem() + if yyxt24 := z.Extension(x.Fetch); yyxt24 != nil { + z.EncExtension(x.Fetch, yyxt24) + x.Fetch.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt25 := z.Extension(x.Version); yyxt25 != nil { + z.EncExtension(x.Version, yyxt25) + } else { + z.EncFallback(x.Version) + } + z.EncWriteArrayElem() + if yyxt26 := z.Extension(x.Timeout); yyxt26 != nil { + z.EncExtension(x.Timeout, yyxt26) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(12) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RW\"") + } else { + r.EncodeString(`RW`) + } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.RW)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeString(`Expr`) + } + z.EncWriteMapElemValue() + if yyxt28 := z.Extension(x.Expr); yyxt28 != nil { + z.EncExtension(x.Expr, yyxt28) + x.Expr.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt29 := z.Extension(x.What); yyxt29 != nil { + z.EncExtension(x.What, yyxt29) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeString(`Cond`) + } + z.EncWriteMapElemValue() + if yyxt30 := z.Extension(x.Cond); yyxt30 != nil { + z.EncExtension(x.Cond, yyxt30) + } else { + z.EncFallback(x.Cond) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Split\"") + } else { + r.EncodeString(`Split`) + } + z.EncWriteMapElemValue() + if yyxt31 := z.Extension(x.Split); yyxt31 != nil { + z.EncExtension(x.Split, yyxt31) + x.Split.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Group\"") + } else { + r.EncodeString(`Group`) + } + z.EncWriteMapElemValue() + if yyxt32 := z.Extension(x.Group); yyxt32 != nil { + z.EncExtension(x.Group, yyxt32) + x.Group.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Order\"") + } else { + r.EncodeString(`Order`) + } + z.EncWriteMapElemValue() + if yyxt33 := z.Extension(x.Order); yyxt33 != nil { + z.EncExtension(x.Order, yyxt33) + x.Order.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Limit\"") + } else { + r.EncodeString(`Limit`) + } + z.EncWriteMapElemValue() + if yyxt34 := z.Extension(x.Limit); yyxt34 != nil { + z.EncExtension(x.Limit, yyxt34) + } else { + z.EncFallback(x.Limit) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Start\"") + } else { + r.EncodeString(`Start`) + } + z.EncWriteMapElemValue() + if yyxt35 := z.Extension(x.Start); yyxt35 != nil { + z.EncExtension(x.Start, yyxt35) + } else { + z.EncFallback(x.Start) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fetch\"") + } else { + r.EncodeString(`Fetch`) + } + z.EncWriteMapElemValue() + if yyxt36 := z.Extension(x.Fetch); yyxt36 != nil { + z.EncExtension(x.Fetch, yyxt36) + x.Fetch.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeString(`Version`) + } + z.EncWriteMapElemValue() + if yyxt37 := z.Extension(x.Version); yyxt37 != nil { + z.EncExtension(x.Version, yyxt37) + } else { + z.EncFallback(x.Version) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeString(`Timeout`) + } + z.EncWriteMapElemValue() + if yyxt38 := z.Extension(x.Timeout); yyxt38 != nil { + z.EncExtension(x.Timeout, yyxt38) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteMapEnd() + } + } +} + +func (x *SelectStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = SelectStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *SelectStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "RW": + x.RW = (bool)(r.DecodeBool()) + case "Expr": + if yyxt6 := z.Extension(x.Expr); yyxt6 != nil { + z.DecExtension(&x.Expr, yyxt6) + } else { + x.Expr.CodecDecodeSelf(d) + } + case "What": + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.DecExtension(&x.What, yyxt8) + } else { + x.What.CodecDecodeSelf(d) + } + case "Cond": + if yyxt10 := z.Extension(x.Cond); yyxt10 != nil { + z.DecExtension(&x.Cond, yyxt10) + } else { + z.DecFallback(&x.Cond, true) + } + case "Split": + if yyxt12 := z.Extension(x.Split); yyxt12 != nil { + z.DecExtension(&x.Split, yyxt12) + } else { + x.Split.CodecDecodeSelf(d) + } + case "Group": + if yyxt14 := z.Extension(x.Group); yyxt14 != nil { + z.DecExtension(&x.Group, yyxt14) + } else { + x.Group.CodecDecodeSelf(d) + } + case "Order": + if yyxt16 := z.Extension(x.Order); yyxt16 != nil { + z.DecExtension(&x.Order, yyxt16) + } else { + x.Order.CodecDecodeSelf(d) + } + case "Limit": + if yyxt18 := z.Extension(x.Limit); yyxt18 != nil { + z.DecExtension(&x.Limit, yyxt18) + } else { + z.DecFallback(&x.Limit, true) + } + case "Start": + if yyxt20 := z.Extension(x.Start); yyxt20 != nil { + z.DecExtension(&x.Start, yyxt20) + } else { + z.DecFallback(&x.Start, true) + } + case "Fetch": + if yyxt22 := z.Extension(x.Fetch); yyxt22 != nil { + z.DecExtension(&x.Fetch, yyxt22) + } else { + x.Fetch.CodecDecodeSelf(d) + } + case "Version": + if yyxt24 := z.Extension(x.Version); yyxt24 != nil { + z.DecExtension(&x.Version, yyxt24) + } else { + z.DecFallback(&x.Version, true) + } + case "Timeout": + if yyxt26 := z.Extension(x.Timeout); yyxt26 != nil { + z.DecExtension(&x.Timeout, yyxt26) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *SelectStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj27 int + var yyb27 bool + var yyhl27 bool = l >= 0 + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.RW = (bool)(r.DecodeBool()) + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt30 := z.Extension(x.Expr); yyxt30 != nil { + z.DecExtension(&x.Expr, yyxt30) + } else { + x.Expr.CodecDecodeSelf(d) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt32 := z.Extension(x.What); yyxt32 != nil { + z.DecExtension(&x.What, yyxt32) + } else { + x.What.CodecDecodeSelf(d) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt34 := z.Extension(x.Cond); yyxt34 != nil { + z.DecExtension(&x.Cond, yyxt34) + } else { + z.DecFallback(&x.Cond, true) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt36 := z.Extension(x.Split); yyxt36 != nil { + z.DecExtension(&x.Split, yyxt36) + } else { + x.Split.CodecDecodeSelf(d) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt38 := z.Extension(x.Group); yyxt38 != nil { + z.DecExtension(&x.Group, yyxt38) + } else { + x.Group.CodecDecodeSelf(d) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt40 := z.Extension(x.Order); yyxt40 != nil { + z.DecExtension(&x.Order, yyxt40) + } else { + x.Order.CodecDecodeSelf(d) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt42 := z.Extension(x.Limit); yyxt42 != nil { + z.DecExtension(&x.Limit, yyxt42) + } else { + z.DecFallback(&x.Limit, true) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt44 := z.Extension(x.Start); yyxt44 != nil { + z.DecExtension(&x.Start, yyxt44) + } else { + z.DecFallback(&x.Start, true) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt46 := z.Extension(x.Fetch); yyxt46 != nil { + z.DecExtension(&x.Fetch, yyxt46) + } else { + x.Fetch.CodecDecodeSelf(d) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt48 := z.Extension(x.Version); yyxt48 != nil { + z.DecExtension(&x.Version, yyxt48) + } else { + z.DecFallback(&x.Version, true) + } + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt50 := z.Extension(x.Timeout); yyxt50 != nil { + z.DecExtension(&x.Timeout, yyxt50) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + for { + yyj27++ + if yyhl27 { + yyb27 = yyj27 > l + } else { + yyb27 = z.DecCheckBreak() + } + if yyb27 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj27-1, "") + } +} + +func (x *SelectStatement) IsCodecEmpty() bool { + return !(bool(x.RW) && len(x.Expr) != 0 && len(x.What) != 0 && x.Cond != nil && len(x.Split) != 0 && len(x.Group) != 0 && len(x.Order) != 0 && x.Limit != nil && x.Start != nil && len(x.Fetch) != 0 && x.Version != nil && x.Timeout != 0 && true) +} + +func (x *CreateStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(4) + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.What); yyxt7 != nil { + z.EncExtension(x.What, yyxt7) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.Data); yyxt8 != nil { + z.EncExtension(x.Data, yyxt8) + } else { + z.EncFallback(x.Data) + } + z.EncWriteArrayElem() + if yyxt9 := z.Extension(x.Echo); yyxt9 != nil { + z.EncExtension(x.Echo, yyxt9) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteArrayElem() + if yyxt10 := z.Extension(x.Timeout); yyxt10 != nil { + z.EncExtension(x.Timeout, yyxt10) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(4) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt11 := z.Extension(x.What); yyxt11 != nil { + z.EncExtension(x.What, yyxt11) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeString(`Data`) + } + z.EncWriteMapElemValue() + if yyxt12 := z.Extension(x.Data); yyxt12 != nil { + z.EncExtension(x.Data, yyxt12) + } else { + z.EncFallback(x.Data) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeString(`Echo`) + } + z.EncWriteMapElemValue() + if yyxt13 := z.Extension(x.Echo); yyxt13 != nil { + z.EncExtension(x.Echo, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeString(`Timeout`) + } + z.EncWriteMapElemValue() + if yyxt14 := z.Extension(x.Timeout); yyxt14 != nil { + z.EncExtension(x.Timeout, yyxt14) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteMapEnd() + } + } +} + +func (x *CreateStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = CreateStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *CreateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "What": + if yyxt5 := z.Extension(x.What); yyxt5 != nil { + z.DecExtension(&x.What, yyxt5) + } else { + x.What.CodecDecodeSelf(d) + } + case "Data": + if yyxt7 := z.Extension(x.Data); yyxt7 != nil { + z.DecExtension(&x.Data, yyxt7) + } else { + z.DecFallback(&x.Data, true) + } + case "Echo": + if yyxt9 := z.Extension(x.Echo); yyxt9 != nil { + z.DecExtension(&x.Echo, yyxt9) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + case "Timeout": + if yyxt11 := z.Extension(x.Timeout); yyxt11 != nil { + z.DecExtension(&x.Timeout, yyxt11) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *CreateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj12 int var yyb12 bool @@ -15069,190 +3033,231 @@ func (x *PermExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = r.CheckBreak() + yyb12 = z.DecCheckBreak() } if yyb12 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Select = nil + z.DecReadArrayElem() + if yyxt14 := z.Extension(x.What); yyxt14 != nil { + z.DecExtension(&x.What, yyxt14) } else { - if false { - } else if yyxt14 := z.Extension(z.I2Rtid(x.Select)); yyxt14 != nil { - z.DecExtension(x.Select, yyxt14) - } else { - z.DecFallback(&x.Select, true) - } + x.What.CodecDecodeSelf(d) } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = r.CheckBreak() + yyb12 = z.DecCheckBreak() } if yyb12 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Create = nil + z.DecReadArrayElem() + if yyxt16 := z.Extension(x.Data); yyxt16 != nil { + z.DecExtension(&x.Data, yyxt16) } else { - if false { - } else if yyxt16 := z.Extension(z.I2Rtid(x.Create)); yyxt16 != nil { - z.DecExtension(x.Create, yyxt16) - } else { - z.DecFallback(&x.Create, true) - } + z.DecFallback(&x.Data, true) } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = r.CheckBreak() + yyb12 = z.DecCheckBreak() } if yyb12 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Update = nil + z.DecReadArrayElem() + if yyxt18 := z.Extension(x.Echo); yyxt18 != nil { + z.DecExtension(&x.Echo, yyxt18) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) } else { - if false { - } else if yyxt18 := z.Extension(z.I2Rtid(x.Update)); yyxt18 != nil { - z.DecExtension(x.Update, yyxt18) - } else { - z.DecFallback(&x.Update, true) - } + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = r.CheckBreak() + yyb12 = z.DecCheckBreak() } if yyb12 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Delete = nil + z.DecReadArrayElem() + if yyxt20 := z.Extension(x.Timeout); yyxt20 != nil { + z.DecExtension(&x.Timeout, yyxt20) } else { - if false { - } else if yyxt20 := z.Extension(z.I2Rtid(x.Delete)); yyxt20 != nil { - z.DecExtension(x.Delete, yyxt20) - } else { - z.DecFallback(&x.Delete, true) - } + x.Timeout = (time.Duration)(r.DecodeInt64()) } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = r.CheckBreak() + yyb12 = z.DecCheckBreak() } if yyb12 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj12-1, "") } - r.ReadArrayEnd() } -func (x *DataExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *CreateStatement) IsCodecEmpty() bool { + return !(len(x.What) != 0 && x.Data != nil && x.Echo != 0 && x.Timeout != 0 && true) +} + +func (x *UpdateStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(5) + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.EncExtension(x.What, yyxt8) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt9 := z.Extension(x.Data); yyxt9 != nil { + z.EncExtension(x.Data, yyxt9) + } else { + z.EncFallback(x.Data) + } + z.EncWriteArrayElem() + if yyxt10 := z.Extension(x.Cond); yyxt10 != nil { + z.EncExtension(x.Cond, yyxt10) + } else { + z.EncFallback(x.Cond) + } + z.EncWriteArrayElem() + if yyxt11 := z.Extension(x.Echo); yyxt11 != nil { + z.EncExtension(x.Echo, yyxt11) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteArrayElem() + if yyxt12 := z.Extension(x.Timeout); yyxt12 != nil { + z.EncExtension(x.Timeout, yyxt12) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) + z.EncWriteMapStart(5) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") } else { - r.WriteMapStart(1) + r.EncodeString(`What`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else { - h.encSlicePtrtoItemExpression(([]*ItemExpression)(x.Data), e) - } - } + z.EncWriteMapElemValue() + if yyxt13 := z.Extension(x.What); yyxt13 != nil { + z.EncExtension(x.What, yyxt13) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) - } - r.WriteMapElemValue() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else { - h.encSlicePtrtoItemExpression(([]*ItemExpression)(x.Data), e) - } - } + r.EncodeString(`Data`) } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() + z.EncWriteMapElemValue() + if yyxt14 := z.Extension(x.Data); yyxt14 != nil { + z.EncExtension(x.Data, yyxt14) } else { - r.WriteMapEnd() + z.EncFallback(x.Data) } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeString(`Cond`) + } + z.EncWriteMapElemValue() + if yyxt15 := z.Extension(x.Cond); yyxt15 != nil { + z.EncExtension(x.Cond, yyxt15) + } else { + z.EncFallback(x.Cond) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeString(`Echo`) + } + z.EncWriteMapElemValue() + if yyxt16 := z.Extension(x.Echo); yyxt16 != nil { + z.EncExtension(x.Echo, yyxt16) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeString(`Timeout`) + } + z.EncWriteMapElemValue() + if yyxt17 := z.Extension(x.Timeout); yyxt17 != nil { + z.EncExtension(x.Timeout, yyxt17) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteMapEnd() } } } -func (x *DataExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *UpdateStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = UpdateStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *DataExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *UpdateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -15261,33 +3266,1496 @@ func (x *DataExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() + switch yys3 { + case "What": + if yyxt5 := z.Extension(x.What); yyxt5 != nil { + z.DecExtension(&x.What, yyxt5) + } else { + x.What.CodecDecodeSelf(d) + } + case "Data": + if yyxt7 := z.Extension(x.Data); yyxt7 != nil { + z.DecExtension(&x.Data, yyxt7) + } else { + z.DecFallback(&x.Data, true) + } + case "Cond": + if yyxt9 := z.Extension(x.Cond); yyxt9 != nil { + z.DecExtension(&x.Cond, yyxt9) + } else { + z.DecFallback(&x.Cond, true) + } + case "Echo": + if yyxt11 := z.Extension(x.Echo); yyxt11 != nil { + z.DecExtension(&x.Echo, yyxt11) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + case "Timeout": + if yyxt13 := z.Extension(x.Timeout); yyxt13 != nil { + z.DecExtension(&x.Timeout, yyxt13) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *UpdateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = z.DecCheckBreak() + } + if yyb14 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt16 := z.Extension(x.What); yyxt16 != nil { + z.DecExtension(&x.What, yyxt16) + } else { + x.What.CodecDecodeSelf(d) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = z.DecCheckBreak() + } + if yyb14 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt18 := z.Extension(x.Data); yyxt18 != nil { + z.DecExtension(&x.Data, yyxt18) + } else { + z.DecFallback(&x.Data, true) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = z.DecCheckBreak() + } + if yyb14 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt20 := z.Extension(x.Cond); yyxt20 != nil { + z.DecExtension(&x.Cond, yyxt20) + } else { + z.DecFallback(&x.Cond, true) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = z.DecCheckBreak() + } + if yyb14 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt22 := z.Extension(x.Echo); yyxt22 != nil { + z.DecExtension(&x.Echo, yyxt22) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = z.DecCheckBreak() + } + if yyb14 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt24 := z.Extension(x.Timeout); yyxt24 != nil { + z.DecExtension(&x.Timeout, yyxt24) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = z.DecCheckBreak() + } + if yyb14 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") + } +} + +func (x *UpdateStatement) IsCodecEmpty() bool { + return !(len(x.What) != 0 && x.Data != nil && x.Cond != nil && x.Echo != 0 && x.Timeout != 0 && true) +} + +func (x *DeleteStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(4) + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.What); yyxt7 != nil { + z.EncExtension(x.What, yyxt7) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.Cond); yyxt8 != nil { + z.EncExtension(x.Cond, yyxt8) + } else { + z.EncFallback(x.Cond) + } + z.EncWriteArrayElem() + if yyxt9 := z.Extension(x.Echo); yyxt9 != nil { + z.EncExtension(x.Echo, yyxt9) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteArrayElem() + if yyxt10 := z.Extension(x.Timeout); yyxt10 != nil { + z.EncExtension(x.Timeout, yyxt10) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(4) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt11 := z.Extension(x.What); yyxt11 != nil { + z.EncExtension(x.What, yyxt11) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeString(`Cond`) + } + z.EncWriteMapElemValue() + if yyxt12 := z.Extension(x.Cond); yyxt12 != nil { + z.EncExtension(x.Cond, yyxt12) + } else { + z.EncFallback(x.Cond) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeString(`Echo`) + } + z.EncWriteMapElemValue() + if yyxt13 := z.Extension(x.Echo); yyxt13 != nil { + z.EncExtension(x.Echo, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeString(`Timeout`) + } + z.EncWriteMapElemValue() + if yyxt14 := z.Extension(x.Timeout); yyxt14 != nil { + z.EncExtension(x.Timeout, yyxt14) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteMapEnd() + } + } +} + +func (x *DeleteStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DeleteStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *DeleteStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "What": + if yyxt5 := z.Extension(x.What); yyxt5 != nil { + z.DecExtension(&x.What, yyxt5) + } else { + x.What.CodecDecodeSelf(d) + } + case "Cond": + if yyxt7 := z.Extension(x.Cond); yyxt7 != nil { + z.DecExtension(&x.Cond, yyxt7) + } else { + z.DecFallback(&x.Cond, true) + } + case "Echo": + if yyxt9 := z.Extension(x.Echo); yyxt9 != nil { + z.DecExtension(&x.Echo, yyxt9) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + case "Timeout": + if yyxt11 := z.Extension(x.Timeout); yyxt11 != nil { + z.DecExtension(&x.Timeout, yyxt11) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *DeleteStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt14 := z.Extension(x.What); yyxt14 != nil { + z.DecExtension(&x.What, yyxt14) + } else { + x.What.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt16 := z.Extension(x.Cond); yyxt16 != nil { + z.DecExtension(&x.Cond, yyxt16) + } else { + z.DecFallback(&x.Cond, true) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt18 := z.Extension(x.Echo); yyxt18 != nil { + z.DecExtension(&x.Echo, yyxt18) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt20 := z.Extension(x.Timeout); yyxt20 != nil { + z.DecExtension(&x.Timeout, yyxt20) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } +} + +func (x *DeleteStatement) IsCodecEmpty() bool { + return !(len(x.What) != 0 && x.Cond != nil && x.Echo != 0 && x.Timeout != 0 && true) +} + +func (x *RelateStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(7) + z.EncWriteArrayElem() + if yyxt10 := z.Extension(x.Type); yyxt10 != nil { + z.EncExtension(x.Type, yyxt10) + } else { + z.EncFallback(x.Type) + } + z.EncWriteArrayElem() + if yyxt11 := z.Extension(x.From); yyxt11 != nil { + z.EncExtension(x.From, yyxt11) + x.From.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt12 := z.Extension(x.With); yyxt12 != nil { + z.EncExtension(x.With, yyxt12) + x.With.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt13 := z.Extension(x.Data); yyxt13 != nil { + z.EncExtension(x.Data, yyxt13) + } else { + z.EncFallback(x.Data) + } + z.EncWriteArrayElem() + r.EncodeBool(bool(x.Uniq)) + z.EncWriteArrayElem() + if yyxt15 := z.Extension(x.Echo); yyxt15 != nil { + z.EncExtension(x.Echo, yyxt15) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteArrayElem() + if yyxt16 := z.Extension(x.Timeout); yyxt16 != nil { + z.EncExtension(x.Timeout, yyxt16) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(7) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeString(`Type`) + } + z.EncWriteMapElemValue() + if yyxt17 := z.Extension(x.Type); yyxt17 != nil { + z.EncExtension(x.Type, yyxt17) + } else { + z.EncFallback(x.Type) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"From\"") + } else { + r.EncodeString(`From`) + } + z.EncWriteMapElemValue() + if yyxt18 := z.Extension(x.From); yyxt18 != nil { + z.EncExtension(x.From, yyxt18) + x.From.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"With\"") + } else { + r.EncodeString(`With`) + } + z.EncWriteMapElemValue() + if yyxt19 := z.Extension(x.With); yyxt19 != nil { + z.EncExtension(x.With, yyxt19) + x.With.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeString(`Data`) + } + z.EncWriteMapElemValue() + if yyxt20 := z.Extension(x.Data); yyxt20 != nil { + z.EncExtension(x.Data, yyxt20) + } else { + z.EncFallback(x.Data) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Uniq\"") + } else { + r.EncodeString(`Uniq`) + } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.Uniq)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeString(`Echo`) + } + z.EncWriteMapElemValue() + if yyxt22 := z.Extension(x.Echo); yyxt22 != nil { + z.EncExtension(x.Echo, yyxt22) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeString(`Timeout`) + } + z.EncWriteMapElemValue() + if yyxt23 := z.Extension(x.Timeout); yyxt23 != nil { + z.EncExtension(x.Timeout, yyxt23) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteMapEnd() + } + } +} + +func (x *RelateStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = RelateStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *RelateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Type": + if yyxt5 := z.Extension(x.Type); yyxt5 != nil { + z.DecExtension(&x.Type, yyxt5) + } else { + z.DecFallback(&x.Type, true) + } + case "From": + if yyxt7 := z.Extension(x.From); yyxt7 != nil { + z.DecExtension(&x.From, yyxt7) + } else { + x.From.CodecDecodeSelf(d) + } + case "With": + if yyxt9 := z.Extension(x.With); yyxt9 != nil { + z.DecExtension(&x.With, yyxt9) + } else { + x.With.CodecDecodeSelf(d) + } + case "Data": + if yyxt11 := z.Extension(x.Data); yyxt11 != nil { + z.DecExtension(&x.Data, yyxt11) + } else { + z.DecFallback(&x.Data, true) + } + case "Uniq": + x.Uniq = (bool)(r.DecodeBool()) + case "Echo": + if yyxt14 := z.Extension(x.Echo); yyxt14 != nil { + z.DecExtension(&x.Echo, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + case "Timeout": + if yyxt16 := z.Extension(x.Timeout); yyxt16 != nil { + z.DecExtension(&x.Timeout, yyxt16) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *RelateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt19 := z.Extension(x.Type); yyxt19 != nil { + z.DecExtension(&x.Type, yyxt19) + } else { + z.DecFallback(&x.Type, true) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt21 := z.Extension(x.From); yyxt21 != nil { + z.DecExtension(&x.From, yyxt21) + } else { + x.From.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt23 := z.Extension(x.With); yyxt23 != nil { + z.DecExtension(&x.With, yyxt23) + } else { + x.With.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt25 := z.Extension(x.Data); yyxt25 != nil { + z.DecExtension(&x.Data, yyxt25) + } else { + z.DecFallback(&x.Data, true) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Uniq = (bool)(r.DecodeBool()) + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt28 := z.Extension(x.Echo); yyxt28 != nil { + z.DecExtension(&x.Echo, yyxt28) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt30 := z.Extension(x.Timeout); yyxt30 != nil { + z.DecExtension(&x.Timeout, yyxt30) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } +} + +func (x *RelateStatement) IsCodecEmpty() bool { + return !(x.Type != nil && len(x.From) != 0 && len(x.With) != 0 && x.Data != nil && bool(x.Uniq) && x.Echo != 0 && x.Timeout != 0 && true) +} + +func (x *InsertStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn4 bool = x.Into == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(4) + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.Data); yyxt7 != nil { + z.EncExtension(x.Data, yyxt7) + } else { + z.EncFallback(x.Data) + } + if yyn4 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.Into); yyxt8 != nil { + z.EncExtension(x.Into, yyxt8) + x.Into.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt9 := z.Extension(x.Echo); yyxt9 != nil { + z.EncExtension(x.Echo, yyxt9) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteArrayElem() + if yyxt10 := z.Extension(x.Timeout); yyxt10 != nil { + z.EncExtension(x.Timeout, yyxt10) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(4) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeString(`Data`) + } + z.EncWriteMapElemValue() + if yyxt11 := z.Extension(x.Data); yyxt11 != nil { + z.EncExtension(x.Data, yyxt11) + } else { + z.EncFallback(x.Data) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Into\"") + } else { + r.EncodeString(`Into`) + } + z.EncWriteMapElemValue() + if yyn4 { + r.EncodeNil() + } else { + if yyxt12 := z.Extension(x.Into); yyxt12 != nil { + z.EncExtension(x.Into, yyxt12) + x.Into.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeString(`Echo`) + } + z.EncWriteMapElemValue() + if yyxt13 := z.Extension(x.Echo); yyxt13 != nil { + z.EncExtension(x.Echo, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeString(`Timeout`) + } + z.EncWriteMapElemValue() + if yyxt14 := z.Extension(x.Timeout); yyxt14 != nil { + z.EncExtension(x.Timeout, yyxt14) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteMapEnd() + } + } +} + +func (x *InsertStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = InsertStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *InsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() switch yys3 { case "Data": - if r.TryDecodeAsNil() { - x.Data = nil + if yyxt5 := z.Extension(x.Data); yyxt5 != nil { + z.DecExtension(&x.Data, yyxt5) } else { - if false { + z.DecFallback(&x.Data, true) + } + case "Into": + if r.TryNil() { + if x.Into != nil { // remove the if-true + x.Into = nil + } + } else { + if x.Into == nil { + x.Into = new(Table) + } + if yyxt7 := z.Extension(x.Into); yyxt7 != nil { + z.DecExtension(x.Into, yyxt7) } else { - h.decSlicePtrtoItemExpression((*[]*ItemExpression)(&x.Data), d) + x.Into.CodecDecodeSelf(d) + } + } + case "Echo": + if yyxt9 := z.Extension(x.Echo); yyxt9 != nil { + z.DecExtension(&x.Echo, yyxt9) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + case "Timeout": + if yyxt11 := z.Extension(x.Timeout); yyxt11 != nil { + z.DecExtension(&x.Timeout, yyxt11) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *InsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt14 := z.Extension(x.Data); yyxt14 != nil { + z.DecExtension(&x.Data, yyxt14) + } else { + z.DecFallback(&x.Data, true) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Into != nil { // remove the if-true + x.Into = nil + } + } else { + if x.Into == nil { + x.Into = new(Table) + } + if yyxt16 := z.Extension(x.Into); yyxt16 != nil { + z.DecExtension(x.Into, yyxt16) + } else { + x.Into.CodecDecodeSelf(d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt18 := z.Extension(x.Echo); yyxt18 != nil { + z.DecExtension(&x.Echo, yyxt18) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt20 := z.Extension(x.Timeout); yyxt20 != nil { + z.DecExtension(&x.Timeout, yyxt20) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } +} + +func (x *InsertStatement) IsCodecEmpty() bool { + return !(x.Data != nil && x.Echo != 0 && x.Timeout != 0 && true) +} + +func (x *UpsertStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn4 bool = x.Into == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(4) + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.Data); yyxt7 != nil { + z.EncExtension(x.Data, yyxt7) + } else { + z.EncFallback(x.Data) + } + if yyn4 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.Into); yyxt8 != nil { + z.EncExtension(x.Into, yyxt8) + x.Into.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt9 := z.Extension(x.Echo); yyxt9 != nil { + z.EncExtension(x.Echo, yyxt9) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteArrayElem() + if yyxt10 := z.Extension(x.Timeout); yyxt10 != nil { + z.EncExtension(x.Timeout, yyxt10) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(4) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeString(`Data`) + } + z.EncWriteMapElemValue() + if yyxt11 := z.Extension(x.Data); yyxt11 != nil { + z.EncExtension(x.Data, yyxt11) + } else { + z.EncFallback(x.Data) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Into\"") + } else { + r.EncodeString(`Into`) + } + z.EncWriteMapElemValue() + if yyn4 { + r.EncodeNil() + } else { + if yyxt12 := z.Extension(x.Into); yyxt12 != nil { + z.EncExtension(x.Into, yyxt12) + x.Into.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeString(`Echo`) + } + z.EncWriteMapElemValue() + if yyxt13 := z.Extension(x.Echo); yyxt13 != nil { + z.EncExtension(x.Echo, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Echo) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Echo) + } else { + r.EncodeInt(int64(x.Echo)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeString(`Timeout`) + } + z.EncWriteMapElemValue() + if yyxt14 := z.Extension(x.Timeout); yyxt14 != nil { + z.EncExtension(x.Timeout, yyxt14) + } else { + r.EncodeInt(int64(x.Timeout)) + } + z.EncWriteMapEnd() + } + } +} + +func (x *UpsertStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = UpsertStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *UpsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Data": + if yyxt5 := z.Extension(x.Data); yyxt5 != nil { + z.DecExtension(&x.Data, yyxt5) + } else { + z.DecFallback(&x.Data, true) + } + case "Into": + if r.TryNil() { + if x.Into != nil { // remove the if-true + x.Into = nil + } + } else { + if x.Into == nil { + x.Into = new(Table) + } + if yyxt7 := z.Extension(x.Into); yyxt7 != nil { + z.DecExtension(x.Into, yyxt7) + } else { + x.Into.CodecDecodeSelf(d) + } + } + case "Echo": + if yyxt9 := z.Extension(x.Echo); yyxt9 != nil { + z.DecExtension(&x.Echo, yyxt9) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + case "Timeout": + if yyxt11 := z.Extension(x.Timeout); yyxt11 != nil { + z.DecExtension(&x.Timeout, yyxt11) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *UpsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt14 := z.Extension(x.Data); yyxt14 != nil { + z.DecExtension(&x.Data, yyxt14) + } else { + z.DecFallback(&x.Data, true) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Into != nil { // remove the if-true + x.Into = nil + } + } else { + if x.Into == nil { + x.Into = new(Table) + } + if yyxt16 := z.Extension(x.Into); yyxt16 != nil { + z.DecExtension(x.Into, yyxt16) + } else { + x.Into.CodecDecodeSelf(d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt18 := z.Extension(x.Echo); yyxt18 != nil { + z.DecExtension(&x.Echo, yyxt18) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt20 := z.Extension(x.Timeout); yyxt20 != nil { + z.DecExtension(&x.Timeout, yyxt20) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } +} + +func (x *UpsertStatement) IsCodecEmpty() bool { + return !(x.Data != nil && x.Echo != 0 && x.Timeout != 0 && true) +} + +func (x *DefineNamespaceStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Name); yyxt4 != nil { + z.EncExtension(x.Name, yyxt4) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.EncExtension(x.Name, yyxt5) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapEnd() + } + } +} + +func (x *DefineNamespaceStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DefineNamespaceStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *DefineNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) + } else { + x.Name.CodecDecodeSelf(d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *DataExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *DefineNamespaceStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool @@ -15296,19 +4764,25 @@ func (x *DataExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Data = nil + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } } else { - if false { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt8 := z.Extension(x.Name); yyxt8 != nil { + z.DecExtension(x.Name, yyxt8) } else { - h.decSlicePtrtoItemExpression((*[]*ItemExpression)(&x.Data), d) + x.Name.CodecDecodeSelf(d) } } for { @@ -15316,109 +4790,94 @@ func (x *DataExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } - r.ReadArrayEnd() } -func (x *DiffExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *DefineNamespaceStatement) IsCodecEmpty() bool { + return !(true) +} + +func (x *RemoveNamespaceStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Name); yyxt4 != nil { + z.EncExtension(x.Name, yyxt4) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") } else { - r.WriteMapStart(1) + r.EncodeString(`Name`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { - z.EncExtension(x.Data, yyxt4) - } else { - z.EncFallback(x.Data) - } - } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) - } - r.WriteMapElemValue() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.EncExtension(x.Data, yyxt5) - } else { - z.EncFallback(x.Data) - } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.EncExtension(x.Name, yyxt5) + x.Name.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } + z.EncWriteMapEnd() } } } -func (x *DiffExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RemoveNamespaceStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = RemoveNamespaceStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *DiffExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RemoveNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -15427,35 +4886,38 @@ func (x *DiffExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { - case "Data": - if r.TryDecodeAsNil() { - x.Data = nil + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.DecExtension(x.Data, yyxt5) + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) } else { - z.DecFallback(&x.Data, true) + x.Name.CodecDecodeSelf(d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *DiffExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RemoveNamespaceStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool @@ -15464,21 +4926,25 @@ func (x *DiffExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Data = nil + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { - z.DecExtension(x.Data, yyxt8) + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt8 := z.Extension(x.Name); yyxt8 != nil { + z.DecExtension(x.Name, yyxt8) } else { - z.DecFallback(&x.Data, true) + x.Name.CodecDecodeSelf(d) } } for { @@ -15486,109 +4952,94 @@ func (x *DiffExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } - r.ReadArrayEnd() } -func (x *MergeExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *RemoveNamespaceStatement) IsCodecEmpty() bool { + return !(true) +} + +func (x *DefineDatabaseStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Name); yyxt4 != nil { + z.EncExtension(x.Name, yyxt4) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") } else { - r.WriteMapStart(1) + r.EncodeString(`Name`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { - z.EncExtension(x.Data, yyxt4) - } else { - z.EncFallback(x.Data) - } - } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) - } - r.WriteMapElemValue() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.EncExtension(x.Data, yyxt5) - } else { - z.EncFallback(x.Data) - } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.EncExtension(x.Name, yyxt5) + x.Name.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } + z.EncWriteMapEnd() } } } -func (x *MergeExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *DefineDatabaseStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DefineDatabaseStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *MergeExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *DefineDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -15597,35 +5048,38 @@ func (x *MergeExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { - case "Data": - if r.TryDecodeAsNil() { - x.Data = nil + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.DecExtension(x.Data, yyxt5) + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) } else { - z.DecFallback(&x.Data, true) + x.Name.CodecDecodeSelf(d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *MergeExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *DefineDatabaseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool @@ -15634,21 +5088,25 @@ func (x *MergeExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Data = nil + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { - z.DecExtension(x.Data, yyxt8) + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt8 := z.Extension(x.Name); yyxt8 != nil { + z.DecExtension(x.Name, yyxt8) } else { - z.DecFallback(&x.Data, true) + x.Name.CodecDecodeSelf(d) } } for { @@ -15656,109 +5114,94 @@ func (x *MergeExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } - r.ReadArrayEnd() } -func (x *ContentExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *DefineDatabaseStatement) IsCodecEmpty() bool { + return !(true) +} + +func (x *RemoveDatabaseStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Name); yyxt4 != nil { + z.EncExtension(x.Name, yyxt4) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayEnd() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") } else { - r.WriteMapStart(1) + r.EncodeString(`Name`) } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { - z.EncExtension(x.Data, yyxt4) - } else { - z.EncFallback(x.Data) - } - } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) - } - r.WriteMapElemValue() - if x.Data == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.EncExtension(x.Data, yyxt5) - } else { - z.EncFallback(x.Data) - } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.EncExtension(x.Name, yyxt5) + x.Name.CodecEncodeSelf(e) } } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } + z.EncWriteMapEnd() } } } -func (x *ContentExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RemoveDatabaseStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = RemoveDatabaseStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *ContentExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RemoveDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -15767,35 +5210,38 @@ func (x *ContentExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { - case "Data": - if r.TryDecodeAsNil() { - x.Data = nil + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } } else { - if false { - } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.DecExtension(x.Data, yyxt5) + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) } else { - z.DecFallback(&x.Data, true) + x.Name.CodecDecodeSelf(d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *ContentExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RemoveDatabaseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool @@ -15804,21 +5250,25 @@ func (x *ContentExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.Data = nil + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } } else { - if false { - } else if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { - z.DecExtension(x.Data, yyxt8) + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt8 := z.Extension(x.Name); yyxt8 != nil { + z.DecExtension(x.Name, yyxt8) } else { - z.DecFallback(&x.Data, true) + x.Name.CodecDecodeSelf(d) } } for { @@ -15826,125 +5276,174 @@ func (x *ContentExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } - r.ReadArrayEnd() } -func (x Params) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *RemoveDatabaseStatement) IsCodecEmpty() bool { + return !(true) +} + +func (x *DefineLoginStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn4 bool = x.User == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(5) + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.Kind); yyxt8 != nil { + z.EncExtension(x.Kind, yyxt8) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Kind) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Kind) + } else { + r.EncodeInt(int64(x.Kind)) + } + if yyn4 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt9 := z.Extension(x.User); yyxt9 != nil { + z.EncExtension(x.User, yyxt9) + x.User.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if x.Pass == nil { + r.EncodeNil() + } else { + r.EncodeStringBytesRaw([]byte(x.Pass)) + } // end block: if x.Pass slice == nil + z.EncWriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } // end block: if x.Hash slice == nil + z.EncWriteArrayElem() + if x.Code == nil { + r.EncodeNil() + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } // end block: if x.Code slice == nil + z.EncWriteArrayEnd() } else { - h.encParams((Params)(x), e) + z.EncWriteMapStart(5) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeString(`Kind`) + } + z.EncWriteMapElemValue() + if yyxt13 := z.Extension(x.Kind); yyxt13 != nil { + z.EncExtension(x.Kind, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Kind) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Kind) + } else { + r.EncodeInt(int64(x.Kind)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"User\"") + } else { + r.EncodeString(`User`) + } + z.EncWriteMapElemValue() + if yyn4 { + r.EncodeNil() + } else { + if yyxt14 := z.Extension(x.User); yyxt14 != nil { + z.EncExtension(x.User, yyxt14) + x.User.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Pass\"") + } else { + r.EncodeString(`Pass`) + } + z.EncWriteMapElemValue() + if x.Pass == nil { + r.EncodeNil() + } else { + r.EncodeStringBytesRaw([]byte(x.Pass)) + } // end block: if x.Pass slice == nil + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeString(`Hash`) + } + z.EncWriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } // end block: if x.Hash slice == nil + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Code\"") + } else { + r.EncodeString(`Code`) + } + z.EncWriteMapElemValue() + if x.Code == nil { + r.EncodeNil() + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } // end block: if x.Code slice == nil + z.EncWriteMapEnd() } } } -func (x *Params) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *DefineLoginStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decParams((*Params)(x), d) - } -} - -func (x *Param) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DefineLoginStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"VA\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `VA`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } + x.codecDecodeSelfFromMap(yyl2, d) } - } -} - -func (x *Param) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *Param) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *DefineLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -15953,174 +5452,254 @@ func (x *Param) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { - case "VA": - if r.TryDecodeAsNil() { - x.VA = "" + case "Kind": + if yyxt5 := z.Extension(x.Kind); yyxt5 != nil { + z.DecExtension(&x.Kind, yyxt5) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Kind) } else { - x.VA = (string)(r.DecodeString()) + x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } + case "User": + if r.TryNil() { + if x.User != nil { // remove the if-true + x.User = nil + } + } else { + if x.User == nil { + x.User = new(Ident) + } + if yyxt7 := z.Extension(x.User); yyxt7 != nil { + z.DecExtension(x.User, yyxt7) + } else { + x.User.CodecDecodeSelf(d) + } + } + case "Pass": + x.Pass = r.DecodeBytes(([]byte)(x.Pass), false) + case "Hash": + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + case "Code": + x.Code = r.DecodeBytes(([]byte)(x.Code), false) default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *Param) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *DefineLoginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l + var yyj14 int + var yyb14 bool + var yyhl14 bool = l >= 0 + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l } else { - yyb5 = r.CheckBreak() + yyb14 = z.DecCheckBreak() } - if yyb5 { - r.ReadArrayEnd() + if yyb14 { + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.VA = "" + z.DecReadArrayElem() + if yyxt16 := z.Extension(x.Kind); yyxt16 != nil { + z.DecExtension(&x.Kind, yyxt16) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Kind) } else { - x.VA = (string)(r.DecodeString()) + x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = z.DecCheckBreak() + } + if yyb14 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.User != nil { // remove the if-true + x.User = nil } - if yyb5 { + } else { + if x.User == nil { + x.User = new(Ident) + } + if yyxt18 := z.Extension(x.User); yyxt18 != nil { + z.DecExtension(x.User, yyxt18) + } else { + x.User.CodecDecodeSelf(d) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = z.DecCheckBreak() + } + if yyb14 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Pass = r.DecodeBytes(([]byte)(x.Pass), false) + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = z.DecCheckBreak() + } + if yyb14 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = z.DecCheckBreak() + } + if yyb14 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Code = r.DecodeBytes(([]byte)(x.Code), false) + for { + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = z.DecCheckBreak() + } + if yyb14 { break } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj14-1, "") } - r.ReadArrayEnd() } -func (x Idents) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *DefineLoginStatement) IsCodecEmpty() bool { + return !(x.Kind != 0 && len(x.Pass) != 0 && len(x.Hash) != 0 && len(x.Code) != 0 && true) +} + +func (x *RemoveLoginStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn4 bool = x.User == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + z.EncWriteArrayElem() + if yyxt5 := z.Extension(x.Kind); yyxt5 != nil { + z.EncExtension(x.Kind, yyxt5) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Kind) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Kind) + } else { + r.EncodeInt(int64(x.Kind)) + } + if yyn4 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.User); yyxt6 != nil { + z.EncExtension(x.User, yyxt6) + x.User.CodecEncodeSelf(e) + } + } + z.EncWriteArrayEnd() } else { - h.encIdents((Idents)(x), e) + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeString(`Kind`) + } + z.EncWriteMapElemValue() + if yyxt7 := z.Extension(x.Kind); yyxt7 != nil { + z.EncExtension(x.Kind, yyxt7) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Kind) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Kind) + } else { + r.EncodeInt(int64(x.Kind)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"User\"") + } else { + r.EncodeString(`User`) + } + z.EncWriteMapElemValue() + if yyn4 { + r.EncodeNil() + } else { + if yyxt8 := z.Extension(x.User); yyxt8 != nil { + z.EncExtension(x.User, yyxt8) + x.User.CodecEncodeSelf(e) + } + } + z.EncWriteMapEnd() } } } -func (x *Idents) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RemoveLoginStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decIdents((*Idents)(x), d) - } -} - -func (x *Ident) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = RemoveLoginStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"VA\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `VA`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } + x.codecDecodeSelfFromMap(yyl2, d) } - } -} - -func (x *Ident) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *Ident) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RemoveLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -16129,1040 +5708,46 @@ func (x *Ident) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { - case "VA": - if r.TryDecodeAsNil() { - x.VA = "" + case "Kind": + if yyxt5 := z.Extension(x.Kind); yyxt5 != nil { + z.DecExtension(&x.Kind, yyxt5) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Kind) } else { - x.VA = (string)(r.DecodeString()) + x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Ident) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.VA = "" - } else { - x.VA = (string)(r.DecodeString()) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") - } - r.ReadArrayEnd() -} - -func (x Values) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encValues((Values)(x), e) - } - } -} - -func (x *Values) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decValues((*Values)(x), d) - } -} - -func (x *Value) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) + case "User": + if r.TryNil() { + if x.User != nil { // remove the if-true + x.User = nil } } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"VA\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `VA`) + if x.User == nil { + x.User = new(Ident) } - r.WriteMapElemValue() - if false { + if yyxt7 := z.Extension(x.User); yyxt7 != nil { + z.DecExtension(x.User, yyxt7) } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Value) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Value) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "VA": - if r.TryDecodeAsNil() { - x.VA = "" - } else { - x.VA = (string)(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Value) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.VA = "" - } else { - x.VA = (string)(r.DecodeString()) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") - } - r.ReadArrayEnd() -} - -func (x Regexs) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encRegexs((Regexs)(x), e) - } - } -} - -func (x *Regexs) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decRegexs((*Regexs)(x), d) - } -} - -func (x *Regex) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"VA\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `VA`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Regex) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Regex) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "VA": - if r.TryDecodeAsNil() { - x.VA = "" - } else { - x.VA = (string)(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Regex) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.VA = "" - } else { - x.VA = (string)(r.DecodeString()) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") - } - r.ReadArrayEnd() -} - -func (x Tables) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encTables((Tables)(x), e) - } - } -} - -func (x *Tables) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decTables((*Tables)(x), d) - } -} - -func (x *Table) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"TB\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `TB`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Table) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Table) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "TB": - if r.TryDecodeAsNil() { - x.TB = "" - } else { - x.TB = (string)(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Table) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj5 int - var yyb5 bool - var yyhl5 bool = l >= 0 - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.TB = "" - } else { - x.TB = (string)(r.DecodeString()) - } - for { - yyj5++ - if yyhl5 { - yyb5 = yyj5 > l - } else { - yyb5 = r.CheckBreak() - } - if yyb5 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj5-1, "") - } - r.ReadArrayEnd() -} - -func (x Batchs) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encBatchs((Batchs)(x), e) - } - } -} - -func (x *Batchs) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decBatchs((*Batchs)(x), d) - } -} - -func (x *Batch) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) - } else { - r.WriteMapStart(2) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"TB\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `TB`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.BA == nil { - r.EncodeNil() - } else { - if false { - } else { - h.encSlicePtrtoThing(([]*Thing)(x.BA), e) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"BA\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `BA`) - } - r.WriteMapElemValue() - if x.BA == nil { - r.EncodeNil() - } else { - if false { - } else { - h.encSlicePtrtoThing(([]*Thing)(x.BA), e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Batch) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Batch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "TB": - if r.TryDecodeAsNil() { - x.TB = "" - } else { - x.TB = (string)(r.DecodeString()) - } - case "BA": - if r.TryDecodeAsNil() { - x.BA = nil - } else { - if false { - } else { - h.decSlicePtrtoThing((*[]*Thing)(&x.BA), d) + x.User.CodecDecodeSelf(d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *Batch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj7 int - var yyb7 bool - var yyhl7 bool = l >= 0 - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.TB = "" - } else { - x.TB = (string)(r.DecodeString()) - } - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.BA = nil - } else { - if false { - } else { - h.decSlicePtrtoThing((*[]*Thing)(&x.BA), d) - } - } - for { - yyj7++ - if yyhl7 { - yyb7 = yyj7 > l - } else { - yyb7 = r.CheckBreak() - } - if yyb7 { - break - } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj7-1, "") - } - r.ReadArrayEnd() -} - -func (x Models) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encModels((Models)(x), e) - } - } -} - -func (x *Models) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decModels((*Models)(x), d) - } -} - -func (x *Model) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(4) - } else { - r.WriteMapStart(4) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"TB\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `TB`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeFloat64(float64(x.MIN)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"MIN\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `MIN`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeFloat64(float64(x.MIN)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeFloat64(float64(x.INC)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"INC\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `INC`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeFloat64(float64(x.INC)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeFloat64(float64(x.MAX)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"MAX\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `MAX`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeFloat64(float64(x.MAX)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } - } - } -} - -func (x *Model) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } - } -} - -func (x *Model) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - 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() - yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() - switch yys3 { - case "TB": - if r.TryDecodeAsNil() { - x.TB = "" - } else { - x.TB = (string)(r.DecodeString()) - } - case "MIN": - if r.TryDecodeAsNil() { - x.MIN = 0 - } else { - x.MIN = (float64)(r.DecodeFloat64()) - } - case "INC": - if r.TryDecodeAsNil() { - x.INC = 0 - } else { - x.INC = (float64)(r.DecodeFloat64()) - } - case "MAX": - if r.TryDecodeAsNil() { - x.MAX = 0 - } else { - x.MAX = (float64)(r.DecodeFloat64()) - } - default: - z.DecStructFieldNotFound(-1, yys3) - } // end switch yys3 - } // end for yyj3 - r.ReadMapEnd() -} - -func (x *Model) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RemoveLoginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj8 int var yyb8 bool @@ -17171,219 +5756,218 @@ func (x *Model) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = r.CheckBreak() + yyb8 = z.DecCheckBreak() } if yyb8 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.TB = "" + z.DecReadArrayElem() + if yyxt10 := z.Extension(x.Kind); yyxt10 != nil { + z.DecExtension(&x.Kind, yyxt10) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Kind) } else { - x.TB = (string)(r.DecodeString()) + x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = r.CheckBreak() + yyb8 = z.DecCheckBreak() } if yyb8 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.MIN = 0 + z.DecReadArrayElem() + if r.TryNil() { + if x.User != nil { // remove the if-true + x.User = nil + } } else { - x.MIN = (float64)(r.DecodeFloat64()) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.INC = 0 - } else { - x.INC = (float64)(r.DecodeFloat64()) - } - yyj8++ - if yyhl8 { - yyb8 = yyj8 > l - } else { - yyb8 = r.CheckBreak() - } - if yyb8 { - r.ReadArrayEnd() - return - } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.MAX = 0 - } else { - x.MAX = (float64)(r.DecodeFloat64()) + if x.User == nil { + x.User = new(Ident) + } + if yyxt12 := z.Extension(x.User); yyxt12 != nil { + z.DecExtension(x.User, yyxt12) + } else { + x.User.CodecDecodeSelf(d) + } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = r.CheckBreak() + yyb8 = z.DecCheckBreak() } if yyb8 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } - r.ReadArrayEnd() } -func (x Things) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *RemoveLoginStatement) IsCodecEmpty() bool { + return !(x.Kind != 0 && true) +} + +func (x *DefineTokenStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn4 bool = x.Name == nil + var yyn5 bool = x.What == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(5) + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.Kind); yyxt8 != nil { + z.EncExtension(x.Kind, yyxt8) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Kind) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Kind) + } else { + r.EncodeInt(int64(x.Kind)) + } + if yyn4 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt9 := z.Extension(x.Name); yyxt9 != nil { + z.EncExtension(x.Name, yyxt9) + x.Name.CodecEncodeSelf(e) + } + } + if yyn5 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt10 := z.Extension(x.What); yyxt10 != nil { + z.EncExtension(x.What, yyxt10) + x.What.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + r.EncodeString(string(x.Type)) + z.EncWriteArrayElem() + if x.Code == nil { + r.EncodeNil() + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } // end block: if x.Code slice == nil + z.EncWriteArrayEnd() } else { - h.encThings((Things)(x), e) + z.EncWriteMapStart(5) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeString(`Kind`) + } + z.EncWriteMapElemValue() + if yyxt13 := z.Extension(x.Kind); yyxt13 != nil { + z.EncExtension(x.Kind, yyxt13) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Kind) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Kind) + } else { + r.EncodeInt(int64(x.Kind)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn4 { + r.EncodeNil() + } else { + if yyxt14 := z.Extension(x.Name); yyxt14 != nil { + z.EncExtension(x.Name, yyxt14) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyn5 { + r.EncodeNil() + } else { + if yyxt15 := z.Extension(x.What); yyxt15 != nil { + z.EncExtension(x.What, yyxt15) + x.What.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeString(`Type`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Type)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Code\"") + } else { + r.EncodeString(`Code`) + } + z.EncWriteMapElemValue() + if x.Code == nil { + r.EncodeNil() + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } // end block: if x.Code slice == nil + z.EncWriteMapEnd() } } } -func (x *Things) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *DefineTokenStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decThings((*Things)(x), d) - } -} - -func (x *Thing) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else if !z.EncBinary() { - z.EncTextMarshal(x) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DefineTokenStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - r.WriteArrayStart(2) - } else { - r.WriteMapStart(2) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"TB\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `TB`) - } - r.WriteMapElemValue() - if false { - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if x.ID == nil { - r.EncodeNil() - } else { - if false { - } else { - z.EncFallback(x.ID) - } - } - } else { - r.WriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"ID\"") - } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `ID`) - } - r.WriteMapElemValue() - if x.ID == nil { - r.EncodeNil() - } else { - if false { - } else { - z.EncFallback(x.ID) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() - } + x.codecDecodeSelfFromMap(yyl2, d) } - } -} - -func (x *Thing) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } - } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) - } + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *Thing) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *DefineTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -17392,39 +5976,7621 @@ func (x *Thing) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { - case "TB": - if r.TryDecodeAsNil() { - x.TB = "" + case "Kind": + if yyxt5 := z.Extension(x.Kind); yyxt5 != nil { + z.DecExtension(&x.Kind, yyxt5) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Kind) } else { - x.TB = (string)(r.DecodeString()) + x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } - case "ID": - if r.TryDecodeAsNil() { - x.ID = nil + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } } else { - if false { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt7 := z.Extension(x.Name); yyxt7 != nil { + z.DecExtension(x.Name, yyxt7) } else { - z.DecFallback(&x.ID, true) + x.Name.CodecDecodeSelf(d) + } + } + case "What": + if r.TryNil() { + if x.What != nil { // remove the if-true + x.What = nil + } + } else { + if x.What == nil { + x.What = new(Ident) + } + if yyxt9 := z.Extension(x.What); yyxt9 != nil { + z.DecExtension(x.What, yyxt9) + } else { + x.What.CodecDecodeSelf(d) + } + } + case "Type": + x.Type = (string)(string(r.DecodeStringAsBytes())) + case "Code": + x.Code = r.DecodeBytes(([]byte)(x.Code), false) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *DefineTokenStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj13 int + var yyb13 bool + var yyhl13 bool = l >= 0 + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = z.DecCheckBreak() + } + if yyb13 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt15 := z.Extension(x.Kind); yyxt15 != nil { + z.DecExtension(&x.Kind, yyxt15) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Kind) + } else { + x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = z.DecCheckBreak() + } + if yyb13 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt17 := z.Extension(x.Name); yyxt17 != nil { + z.DecExtension(x.Name, yyxt17) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = z.DecCheckBreak() + } + if yyb13 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.What != nil { // remove the if-true + x.What = nil + } + } else { + if x.What == nil { + x.What = new(Ident) + } + if yyxt19 := z.Extension(x.What); yyxt19 != nil { + z.DecExtension(x.What, yyxt19) + } else { + x.What.CodecDecodeSelf(d) + } + } + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = z.DecCheckBreak() + } + if yyb13 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Type = (string)(string(r.DecodeStringAsBytes())) + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = z.DecCheckBreak() + } + if yyb13 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Code = r.DecodeBytes(([]byte)(x.Code), false) + for { + yyj13++ + if yyhl13 { + yyb13 = yyj13 > l + } else { + yyb13 = z.DecCheckBreak() + } + if yyb13 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj13-1, "") + } +} + +func (x *DefineTokenStatement) IsCodecEmpty() bool { + return !(x.Kind != 0 && x.Type != "" && len(x.Code) != 0 && true) +} + +func (x *RemoveTokenStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn4 bool = x.Name == nil + var yyn5 bool = x.What == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(3) + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.Kind); yyxt6 != nil { + z.EncExtension(x.Kind, yyxt6) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Kind) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Kind) + } else { + r.EncodeInt(int64(x.Kind)) + } + if yyn4 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.Name); yyxt7 != nil { + z.EncExtension(x.Name, yyxt7) + x.Name.CodecEncodeSelf(e) + } + } + if yyn5 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.EncExtension(x.What, yyxt8) + x.What.CodecEncodeSelf(e) + } + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(3) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeString(`Kind`) + } + z.EncWriteMapElemValue() + if yyxt9 := z.Extension(x.Kind); yyxt9 != nil { + z.EncExtension(x.Kind, yyxt9) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Kind) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Kind) + } else { + r.EncodeInt(int64(x.Kind)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn4 { + r.EncodeNil() + } else { + if yyxt10 := z.Extension(x.Name); yyxt10 != nil { + z.EncExtension(x.Name, yyxt10) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyn5 { + r.EncodeNil() + } else { + if yyxt11 := z.Extension(x.What); yyxt11 != nil { + z.EncExtension(x.What, yyxt11) + x.What.CodecEncodeSelf(e) + } + } + z.EncWriteMapEnd() + } + } +} + +func (x *RemoveTokenStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = RemoveTokenStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *RemoveTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Kind": + if yyxt5 := z.Extension(x.Kind); yyxt5 != nil { + z.DecExtension(&x.Kind, yyxt5) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Kind) + } else { + x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt7 := z.Extension(x.Name); yyxt7 != nil { + z.DecExtension(x.Name, yyxt7) + } else { + x.Name.CodecDecodeSelf(d) + } + } + case "What": + if r.TryNil() { + if x.What != nil { // remove the if-true + x.What = nil + } + } else { + if x.What == nil { + x.What = new(Ident) + } + if yyxt9 := z.Extension(x.What); yyxt9 != nil { + z.DecExtension(x.What, yyxt9) + } else { + x.What.CodecDecodeSelf(d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } -func (x *Thing) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *RemoveTokenStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt12 := z.Extension(x.Kind); yyxt12 != nil { + z.DecExtension(&x.Kind, yyxt12) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Kind) + } else { + x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt14 := z.Extension(x.Name); yyxt14 != nil { + z.DecExtension(x.Name, yyxt14) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.What != nil { // remove the if-true + x.What = nil + } + } else { + if x.What == nil { + x.What = new(Ident) + } + if yyxt16 := z.Extension(x.What); yyxt16 != nil { + z.DecExtension(x.What, yyxt16) + } else { + x.What.CodecDecodeSelf(d) + } + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } +} + +func (x *RemoveTokenStatement) IsCodecEmpty() bool { + return !(x.Kind != 0 && true) +} + +func (x *DefineScopeStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(8) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt11 := z.Extension(x.Name); yyxt11 != nil { + z.EncExtension(x.Name, yyxt11) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt12 := z.Extension(x.Time); yyxt12 != nil { + z.EncExtension(x.Time, yyxt12) + } else { + r.EncodeInt(int64(x.Time)) + } + z.EncWriteArrayElem() + if x.Code == nil { + r.EncodeNil() + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } // end block: if x.Code slice == nil + z.EncWriteArrayElem() + if yyxt14 := z.Extension(x.Signup); yyxt14 != nil { + z.EncExtension(x.Signup, yyxt14) + } else { + z.EncFallback(x.Signup) + } + z.EncWriteArrayElem() + if yyxt15 := z.Extension(x.Signin); yyxt15 != nil { + z.EncExtension(x.Signin, yyxt15) + } else { + z.EncFallback(x.Signin) + } + z.EncWriteArrayElem() + if yyxt16 := z.Extension(x.Connect); yyxt16 != nil { + z.EncExtension(x.Connect, yyxt16) + } else { + z.EncFallback(x.Connect) + } + z.EncWriteArrayElem() + if yyxt17 := z.Extension(x.OnSignup); yyxt17 != nil { + z.EncExtension(x.OnSignup, yyxt17) + } else { + z.EncFallback(x.OnSignup) + } + z.EncWriteArrayElem() + if yyxt18 := z.Extension(x.OnSignin); yyxt18 != nil { + z.EncExtension(x.OnSignin, yyxt18) + } else { + z.EncFallback(x.OnSignin) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(8) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if yyxt19 := z.Extension(x.Name); yyxt19 != nil { + z.EncExtension(x.Name, yyxt19) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Time\"") + } else { + r.EncodeString(`Time`) + } + z.EncWriteMapElemValue() + if yyxt20 := z.Extension(x.Time); yyxt20 != nil { + z.EncExtension(x.Time, yyxt20) + } else { + r.EncodeInt(int64(x.Time)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Code\"") + } else { + r.EncodeString(`Code`) + } + z.EncWriteMapElemValue() + if x.Code == nil { + r.EncodeNil() + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } // end block: if x.Code slice == nil + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Signup\"") + } else { + r.EncodeString(`Signup`) + } + z.EncWriteMapElemValue() + if yyxt22 := z.Extension(x.Signup); yyxt22 != nil { + z.EncExtension(x.Signup, yyxt22) + } else { + z.EncFallback(x.Signup) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Signin\"") + } else { + r.EncodeString(`Signin`) + } + z.EncWriteMapElemValue() + if yyxt23 := z.Extension(x.Signin); yyxt23 != nil { + z.EncExtension(x.Signin, yyxt23) + } else { + z.EncFallback(x.Signin) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Connect\"") + } else { + r.EncodeString(`Connect`) + } + z.EncWriteMapElemValue() + if yyxt24 := z.Extension(x.Connect); yyxt24 != nil { + z.EncExtension(x.Connect, yyxt24) + } else { + z.EncFallback(x.Connect) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OnSignup\"") + } else { + r.EncodeString(`OnSignup`) + } + z.EncWriteMapElemValue() + if yyxt25 := z.Extension(x.OnSignup); yyxt25 != nil { + z.EncExtension(x.OnSignup, yyxt25) + } else { + z.EncFallback(x.OnSignup) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OnSignin\"") + } else { + r.EncodeString(`OnSignin`) + } + z.EncWriteMapElemValue() + if yyxt26 := z.Extension(x.OnSignin); yyxt26 != nil { + z.EncExtension(x.OnSignin, yyxt26) + } else { + z.EncFallback(x.OnSignin) + } + z.EncWriteMapEnd() + } + } +} + +func (x *DefineScopeStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DefineScopeStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *DefineScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) + } else { + x.Name.CodecDecodeSelf(d) + } + } + case "Time": + if yyxt7 := z.Extension(x.Time); yyxt7 != nil { + z.DecExtension(&x.Time, yyxt7) + } else { + x.Time = (time.Duration)(r.DecodeInt64()) + } + case "Code": + x.Code = r.DecodeBytes(([]byte)(x.Code), false) + case "Signup": + if yyxt11 := z.Extension(x.Signup); yyxt11 != nil { + z.DecExtension(&x.Signup, yyxt11) + } else { + z.DecFallback(&x.Signup, true) + } + case "Signin": + if yyxt13 := z.Extension(x.Signin); yyxt13 != nil { + z.DecExtension(&x.Signin, yyxt13) + } else { + z.DecFallback(&x.Signin, true) + } + case "Connect": + if yyxt15 := z.Extension(x.Connect); yyxt15 != nil { + z.DecExtension(&x.Connect, yyxt15) + } else { + z.DecFallback(&x.Connect, true) + } + case "OnSignup": + if yyxt17 := z.Extension(x.OnSignup); yyxt17 != nil { + z.DecExtension(&x.OnSignup, yyxt17) + } else { + z.DecFallback(&x.OnSignup, true) + } + case "OnSignin": + if yyxt19 := z.Extension(x.OnSignin); yyxt19 != nil { + z.DecExtension(&x.OnSignin, yyxt19) + } else { + z.DecFallback(&x.OnSignin, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *DefineScopeStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj20 int + var yyb20 bool + var yyhl20 bool = l >= 0 + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = z.DecCheckBreak() + } + if yyb20 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt22 := z.Extension(x.Name); yyxt22 != nil { + z.DecExtension(x.Name, yyxt22) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = z.DecCheckBreak() + } + if yyb20 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt24 := z.Extension(x.Time); yyxt24 != nil { + z.DecExtension(&x.Time, yyxt24) + } else { + x.Time = (time.Duration)(r.DecodeInt64()) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = z.DecCheckBreak() + } + if yyb20 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Code = r.DecodeBytes(([]byte)(x.Code), false) + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = z.DecCheckBreak() + } + if yyb20 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt28 := z.Extension(x.Signup); yyxt28 != nil { + z.DecExtension(&x.Signup, yyxt28) + } else { + z.DecFallback(&x.Signup, true) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = z.DecCheckBreak() + } + if yyb20 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt30 := z.Extension(x.Signin); yyxt30 != nil { + z.DecExtension(&x.Signin, yyxt30) + } else { + z.DecFallback(&x.Signin, true) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = z.DecCheckBreak() + } + if yyb20 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt32 := z.Extension(x.Connect); yyxt32 != nil { + z.DecExtension(&x.Connect, yyxt32) + } else { + z.DecFallback(&x.Connect, true) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = z.DecCheckBreak() + } + if yyb20 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt34 := z.Extension(x.OnSignup); yyxt34 != nil { + z.DecExtension(&x.OnSignup, yyxt34) + } else { + z.DecFallback(&x.OnSignup, true) + } + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = z.DecCheckBreak() + } + if yyb20 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt36 := z.Extension(x.OnSignin); yyxt36 != nil { + z.DecExtension(&x.OnSignin, yyxt36) + } else { + z.DecFallback(&x.OnSignin, true) + } + for { + yyj20++ + if yyhl20 { + yyb20 = yyj20 > l + } else { + yyb20 = z.DecCheckBreak() + } + if yyb20 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj20-1, "") + } +} + +func (x *DefineScopeStatement) IsCodecEmpty() bool { + return !(x.Time != 0 && len(x.Code) != 0 && x.Signup != nil && x.Signin != nil && x.Connect != nil && x.OnSignup != nil && x.OnSignin != nil && true) +} + +func (x *RemoveScopeStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Name); yyxt4 != nil { + z.EncExtension(x.Name, yyxt4) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.EncExtension(x.Name, yyxt5) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapEnd() + } + } +} + +func (x *RemoveScopeStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = RemoveScopeStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *RemoveScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) + } else { + x.Name.CodecDecodeSelf(d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *RemoveScopeStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt8 := z.Extension(x.Name); yyxt8 != nil { + z.DecExtension(x.Name, yyxt8) + } else { + x.Name.CodecDecodeSelf(d) + } + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *RemoveScopeStatement) IsCodecEmpty() bool { + return !(true) +} + +func (x *DefineTableStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(11) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt14 := z.Extension(x.Name); yyxt14 != nil { + z.EncExtension(x.Name, yyxt14) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt15 := z.Extension(x.What); yyxt15 != nil { + z.EncExtension(x.What, yyxt15) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + r.EncodeBool(bool(x.Full)) + z.EncWriteArrayElem() + r.EncodeBool(bool(x.Vers)) + z.EncWriteArrayElem() + r.EncodeBool(bool(x.Drop)) + z.EncWriteArrayElem() + r.EncodeBool(bool(x.Lock)) + z.EncWriteArrayElem() + if yyxt20 := z.Extension(x.Expr); yyxt20 != nil { + z.EncExtension(x.Expr, yyxt20) + x.Expr.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt21 := z.Extension(x.From); yyxt21 != nil { + z.EncExtension(x.From, yyxt21) + x.From.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt22 := z.Extension(x.Cond); yyxt22 != nil { + z.EncExtension(x.Cond, yyxt22) + } else { + z.EncFallback(x.Cond) + } + z.EncWriteArrayElem() + if yyxt23 := z.Extension(x.Group); yyxt23 != nil { + z.EncExtension(x.Group, yyxt23) + x.Group.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt24 := z.Extension(x.Perms); yyxt24 != nil { + z.EncExtension(x.Perms, yyxt24) + } else { + z.EncFallback(x.Perms) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(11) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if yyxt25 := z.Extension(x.Name); yyxt25 != nil { + z.EncExtension(x.Name, yyxt25) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt26 := z.Extension(x.What); yyxt26 != nil { + z.EncExtension(x.What, yyxt26) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Full\"") + } else { + r.EncodeString(`Full`) + } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.Full)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Vers\"") + } else { + r.EncodeString(`Vers`) + } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.Vers)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drop\"") + } else { + r.EncodeString(`Drop`) + } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.Drop)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Lock\"") + } else { + r.EncodeString(`Lock`) + } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.Lock)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeString(`Expr`) + } + z.EncWriteMapElemValue() + if yyxt31 := z.Extension(x.Expr); yyxt31 != nil { + z.EncExtension(x.Expr, yyxt31) + x.Expr.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"From\"") + } else { + r.EncodeString(`From`) + } + z.EncWriteMapElemValue() + if yyxt32 := z.Extension(x.From); yyxt32 != nil { + z.EncExtension(x.From, yyxt32) + x.From.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeString(`Cond`) + } + z.EncWriteMapElemValue() + if yyxt33 := z.Extension(x.Cond); yyxt33 != nil { + z.EncExtension(x.Cond, yyxt33) + } else { + z.EncFallback(x.Cond) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Group\"") + } else { + r.EncodeString(`Group`) + } + z.EncWriteMapElemValue() + if yyxt34 := z.Extension(x.Group); yyxt34 != nil { + z.EncExtension(x.Group, yyxt34) + x.Group.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Perms\"") + } else { + r.EncodeString(`Perms`) + } + z.EncWriteMapElemValue() + if yyxt35 := z.Extension(x.Perms); yyxt35 != nil { + z.EncExtension(x.Perms, yyxt35) + } else { + z.EncFallback(x.Perms) + } + z.EncWriteMapEnd() + } + } +} + +func (x *DefineTableStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DefineTableStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *DefineTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) + } else { + x.Name.CodecDecodeSelf(d) + } + } + case "What": + if yyxt7 := z.Extension(x.What); yyxt7 != nil { + z.DecExtension(&x.What, yyxt7) + } else { + x.What.CodecDecodeSelf(d) + } + case "Full": + x.Full = (bool)(r.DecodeBool()) + case "Vers": + x.Vers = (bool)(r.DecodeBool()) + case "Drop": + x.Drop = (bool)(r.DecodeBool()) + case "Lock": + x.Lock = (bool)(r.DecodeBool()) + case "Expr": + if yyxt13 := z.Extension(x.Expr); yyxt13 != nil { + z.DecExtension(&x.Expr, yyxt13) + } else { + x.Expr.CodecDecodeSelf(d) + } + case "From": + if yyxt15 := z.Extension(x.From); yyxt15 != nil { + z.DecExtension(&x.From, yyxt15) + } else { + x.From.CodecDecodeSelf(d) + } + case "Cond": + if yyxt17 := z.Extension(x.Cond); yyxt17 != nil { + z.DecExtension(&x.Cond, yyxt17) + } else { + z.DecFallback(&x.Cond, true) + } + case "Group": + if yyxt19 := z.Extension(x.Group); yyxt19 != nil { + z.DecExtension(&x.Group, yyxt19) + } else { + x.Group.CodecDecodeSelf(d) + } + case "Perms": + if yyxt21 := z.Extension(x.Perms); yyxt21 != nil { + z.DecExtension(&x.Perms, yyxt21) + } else { + z.DecFallback(&x.Perms, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *DefineTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj22 int + var yyb22 bool + var yyhl22 bool = l >= 0 + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt24 := z.Extension(x.Name); yyxt24 != nil { + z.DecExtension(x.Name, yyxt24) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt26 := z.Extension(x.What); yyxt26 != nil { + z.DecExtension(&x.What, yyxt26) + } else { + x.What.CodecDecodeSelf(d) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Full = (bool)(r.DecodeBool()) + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Vers = (bool)(r.DecodeBool()) + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Drop = (bool)(r.DecodeBool()) + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Lock = (bool)(r.DecodeBool()) + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt32 := z.Extension(x.Expr); yyxt32 != nil { + z.DecExtension(&x.Expr, yyxt32) + } else { + x.Expr.CodecDecodeSelf(d) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt34 := z.Extension(x.From); yyxt34 != nil { + z.DecExtension(&x.From, yyxt34) + } else { + x.From.CodecDecodeSelf(d) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt36 := z.Extension(x.Cond); yyxt36 != nil { + z.DecExtension(&x.Cond, yyxt36) + } else { + z.DecFallback(&x.Cond, true) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt38 := z.Extension(x.Group); yyxt38 != nil { + z.DecExtension(&x.Group, yyxt38) + } else { + x.Group.CodecDecodeSelf(d) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt40 := z.Extension(x.Perms); yyxt40 != nil { + z.DecExtension(&x.Perms, yyxt40) + } else { + z.DecFallback(&x.Perms, true) + } + for { + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = z.DecCheckBreak() + } + if yyb22 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj22-1, "") + } +} + +func (x *DefineTableStatement) IsCodecEmpty() bool { + return !(len(x.What) != 0 && bool(x.Full) && bool(x.Vers) && bool(x.Drop) && bool(x.Lock) && len(x.Expr) != 0 && len(x.From) != 0 && x.Cond != nil && len(x.Group) != 0 && x.Perms != nil && true) +} + +func (x *RemoveTableStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.What); yyxt4 != nil { + z.EncExtension(x.What, yyxt4) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt5 := z.Extension(x.What); yyxt5 != nil { + z.EncExtension(x.What, yyxt5) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapEnd() + } + } +} + +func (x *RemoveTableStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = RemoveTableStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *RemoveTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "What": + if yyxt5 := z.Extension(x.What); yyxt5 != nil { + z.DecExtension(&x.What, yyxt5) + } else { + x.What.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *RemoveTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.DecExtension(&x.What, yyxt8) + } else { + x.What.CodecDecodeSelf(d) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *RemoveTableStatement) IsCodecEmpty() bool { + return !(len(x.What) != 0 && true) +} + +func (x *DefineEventStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(4) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.Name); yyxt7 != nil { + z.EncExtension(x.Name, yyxt7) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.EncExtension(x.What, yyxt8) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt9 := z.Extension(x.When); yyxt9 != nil { + z.EncExtension(x.When, yyxt9) + } else { + z.EncFallback(x.When) + } + z.EncWriteArrayElem() + if yyxt10 := z.Extension(x.Then); yyxt10 != nil { + z.EncExtension(x.Then, yyxt10) + } else { + z.EncFallback(x.Then) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(4) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if yyxt11 := z.Extension(x.Name); yyxt11 != nil { + z.EncExtension(x.Name, yyxt11) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt12 := z.Extension(x.What); yyxt12 != nil { + z.EncExtension(x.What, yyxt12) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"When\"") + } else { + r.EncodeString(`When`) + } + z.EncWriteMapElemValue() + if yyxt13 := z.Extension(x.When); yyxt13 != nil { + z.EncExtension(x.When, yyxt13) + } else { + z.EncFallback(x.When) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Then\"") + } else { + r.EncodeString(`Then`) + } + z.EncWriteMapElemValue() + if yyxt14 := z.Extension(x.Then); yyxt14 != nil { + z.EncExtension(x.Then, yyxt14) + } else { + z.EncFallback(x.Then) + } + z.EncWriteMapEnd() + } + } +} + +func (x *DefineEventStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DefineEventStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *DefineEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) + } else { + x.Name.CodecDecodeSelf(d) + } + } + case "What": + if yyxt7 := z.Extension(x.What); yyxt7 != nil { + z.DecExtension(&x.What, yyxt7) + } else { + x.What.CodecDecodeSelf(d) + } + case "When": + if yyxt9 := z.Extension(x.When); yyxt9 != nil { + z.DecExtension(&x.When, yyxt9) + } else { + z.DecFallback(&x.When, true) + } + case "Then": + if yyxt11 := z.Extension(x.Then); yyxt11 != nil { + z.DecExtension(&x.Then, yyxt11) + } else { + z.DecFallback(&x.Then, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *DefineEventStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt14 := z.Extension(x.Name); yyxt14 != nil { + z.DecExtension(x.Name, yyxt14) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt16 := z.Extension(x.What); yyxt16 != nil { + z.DecExtension(&x.What, yyxt16) + } else { + x.What.CodecDecodeSelf(d) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt18 := z.Extension(x.When); yyxt18 != nil { + z.DecExtension(&x.When, yyxt18) + } else { + z.DecFallback(&x.When, true) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt20 := z.Extension(x.Then); yyxt20 != nil { + z.DecExtension(&x.Then, yyxt20) + } else { + z.DecFallback(&x.Then, true) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } +} + +func (x *DefineEventStatement) IsCodecEmpty() bool { + return !(len(x.What) != 0 && x.When != nil && x.Then != nil && true) +} + +func (x *RemoveEventStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.EncExtension(x.Name, yyxt5) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.What); yyxt6 != nil { + z.EncExtension(x.What, yyxt6) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if yyxt7 := z.Extension(x.Name); yyxt7 != nil { + z.EncExtension(x.Name, yyxt7) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.EncExtension(x.What, yyxt8) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapEnd() + } + } +} + +func (x *RemoveEventStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = RemoveEventStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *RemoveEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) + } else { + x.Name.CodecDecodeSelf(d) + } + } + case "What": + if yyxt7 := z.Extension(x.What); yyxt7 != nil { + z.DecExtension(&x.What, yyxt7) + } else { + x.What.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *RemoveEventStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt10 := z.Extension(x.Name); yyxt10 != nil { + z.DecExtension(x.Name, yyxt10) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt12 := z.Extension(x.What); yyxt12 != nil { + z.DecExtension(&x.What, yyxt12) + } else { + x.What.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } +} + +func (x *RemoveEventStatement) IsCodecEmpty() bool { + return !(len(x.What) != 0 && true) +} + +func (x *DefineFieldStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(8) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt11 := z.Extension(x.Name); yyxt11 != nil { + z.EncExtension(x.Name, yyxt11) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt12 := z.Extension(x.What); yyxt12 != nil { + z.EncExtension(x.What, yyxt12) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt13 := z.Extension(x.Perms); yyxt13 != nil { + z.EncExtension(x.Perms, yyxt13) + } else { + z.EncFallback(x.Perms) + } + z.EncWriteArrayElem() + r.EncodeString(string(x.Type)) + z.EncWriteArrayElem() + r.EncodeString(string(x.Kind)) + z.EncWriteArrayElem() + if yyxt16 := z.Extension(x.Value); yyxt16 != nil { + z.EncExtension(x.Value, yyxt16) + } else { + z.EncFallback(x.Value) + } + z.EncWriteArrayElem() + if yyxt17 := z.Extension(x.Assert); yyxt17 != nil { + z.EncExtension(x.Assert, yyxt17) + } else { + z.EncFallback(x.Assert) + } + z.EncWriteArrayElem() + r.EncodeFloat64(float64(x.Priority)) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(8) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if yyxt19 := z.Extension(x.Name); yyxt19 != nil { + z.EncExtension(x.Name, yyxt19) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt20 := z.Extension(x.What); yyxt20 != nil { + z.EncExtension(x.What, yyxt20) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Perms\"") + } else { + r.EncodeString(`Perms`) + } + z.EncWriteMapElemValue() + if yyxt21 := z.Extension(x.Perms); yyxt21 != nil { + z.EncExtension(x.Perms, yyxt21) + } else { + z.EncFallback(x.Perms) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeString(`Type`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Type)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeString(`Kind`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Kind)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Value\"") + } else { + r.EncodeString(`Value`) + } + z.EncWriteMapElemValue() + if yyxt24 := z.Extension(x.Value); yyxt24 != nil { + z.EncExtension(x.Value, yyxt24) + } else { + z.EncFallback(x.Value) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Assert\"") + } else { + r.EncodeString(`Assert`) + } + z.EncWriteMapElemValue() + if yyxt25 := z.Extension(x.Assert); yyxt25 != nil { + z.EncExtension(x.Assert, yyxt25) + } else { + z.EncFallback(x.Assert) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeString(`Priority`) + } + z.EncWriteMapElemValue() + r.EncodeFloat64(float64(x.Priority)) + z.EncWriteMapEnd() + } + } +} + +func (x *DefineFieldStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DefineFieldStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *DefineFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) + } else { + x.Name.CodecDecodeSelf(d) + } + } + case "What": + if yyxt7 := z.Extension(x.What); yyxt7 != nil { + z.DecExtension(&x.What, yyxt7) + } else { + x.What.CodecDecodeSelf(d) + } + case "Perms": + if yyxt9 := z.Extension(x.Perms); yyxt9 != nil { + z.DecExtension(&x.Perms, yyxt9) + } else { + z.DecFallback(&x.Perms, true) + } + case "Type": + x.Type = (string)(string(r.DecodeStringAsBytes())) + case "Kind": + x.Kind = (string)(string(r.DecodeStringAsBytes())) + case "Value": + if yyxt13 := z.Extension(x.Value); yyxt13 != nil { + z.DecExtension(&x.Value, yyxt13) + } else { + z.DecFallback(&x.Value, true) + } + case "Assert": + if yyxt15 := z.Extension(x.Assert); yyxt15 != nil { + z.DecExtension(&x.Assert, yyxt15) + } else { + z.DecFallback(&x.Assert, true) + } + case "Priority": + x.Priority = (float64)(r.DecodeFloat64()) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *DefineFieldStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj17 int + var yyb17 bool + var yyhl17 bool = l >= 0 + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt19 := z.Extension(x.Name); yyxt19 != nil { + z.DecExtension(x.Name, yyxt19) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt21 := z.Extension(x.What); yyxt21 != nil { + z.DecExtension(&x.What, yyxt21) + } else { + x.What.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt23 := z.Extension(x.Perms); yyxt23 != nil { + z.DecExtension(&x.Perms, yyxt23) + } else { + z.DecFallback(&x.Perms, true) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Type = (string)(string(r.DecodeStringAsBytes())) + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Kind = (string)(string(r.DecodeStringAsBytes())) + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt27 := z.Extension(x.Value); yyxt27 != nil { + z.DecExtension(&x.Value, yyxt27) + } else { + z.DecFallback(&x.Value, true) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt29 := z.Extension(x.Assert); yyxt29 != nil { + z.DecExtension(&x.Assert, yyxt29) + } else { + z.DecFallback(&x.Assert, true) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Priority = (float64)(r.DecodeFloat64()) + for { + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = z.DecCheckBreak() + } + if yyb17 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj17-1, "") + } +} + +func (x *DefineFieldStatement) IsCodecEmpty() bool { + return !(len(x.What) != 0 && x.Perms != nil && x.Type != "" && x.Kind != "" && x.Value != nil && x.Assert != nil && x.Priority != 0 && true) +} + +func (x *RemoveFieldStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.EncExtension(x.Name, yyxt5) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.What); yyxt6 != nil { + z.EncExtension(x.What, yyxt6) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if yyxt7 := z.Extension(x.Name); yyxt7 != nil { + z.EncExtension(x.Name, yyxt7) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.EncExtension(x.What, yyxt8) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapEnd() + } + } +} + +func (x *RemoveFieldStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = RemoveFieldStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *RemoveFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) + } else { + x.Name.CodecDecodeSelf(d) + } + } + case "What": + if yyxt7 := z.Extension(x.What); yyxt7 != nil { + z.DecExtension(&x.What, yyxt7) + } else { + x.What.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *RemoveFieldStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt10 := z.Extension(x.Name); yyxt10 != nil { + z.DecExtension(x.Name, yyxt10) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt12 := z.Extension(x.What); yyxt12 != nil { + z.DecExtension(&x.What, yyxt12) + } else { + x.What.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } +} + +func (x *RemoveFieldStatement) IsCodecEmpty() bool { + return !(len(x.What) != 0 && true) +} + +func (x *DefineIndexStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(4) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.Name); yyxt7 != nil { + z.EncExtension(x.Name, yyxt7) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.EncExtension(x.What, yyxt8) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + if yyxt9 := z.Extension(x.Cols); yyxt9 != nil { + z.EncExtension(x.Cols, yyxt9) + x.Cols.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + r.EncodeBool(bool(x.Uniq)) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(4) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if yyxt11 := z.Extension(x.Name); yyxt11 != nil { + z.EncExtension(x.Name, yyxt11) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt12 := z.Extension(x.What); yyxt12 != nil { + z.EncExtension(x.What, yyxt12) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cols\"") + } else { + r.EncodeString(`Cols`) + } + z.EncWriteMapElemValue() + if yyxt13 := z.Extension(x.Cols); yyxt13 != nil { + z.EncExtension(x.Cols, yyxt13) + x.Cols.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Uniq\"") + } else { + r.EncodeString(`Uniq`) + } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.Uniq)) + z.EncWriteMapEnd() + } + } +} + +func (x *DefineIndexStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DefineIndexStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *DefineIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) + } else { + x.Name.CodecDecodeSelf(d) + } + } + case "What": + if yyxt7 := z.Extension(x.What); yyxt7 != nil { + z.DecExtension(&x.What, yyxt7) + } else { + x.What.CodecDecodeSelf(d) + } + case "Cols": + if yyxt9 := z.Extension(x.Cols); yyxt9 != nil { + z.DecExtension(&x.Cols, yyxt9) + } else { + x.Cols.CodecDecodeSelf(d) + } + case "Uniq": + x.Uniq = (bool)(r.DecodeBool()) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *DefineIndexStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj11 int + var yyb11 bool + var yyhl11 bool = l >= 0 + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = z.DecCheckBreak() + } + if yyb11 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt13 := z.Extension(x.Name); yyxt13 != nil { + z.DecExtension(x.Name, yyxt13) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = z.DecCheckBreak() + } + if yyb11 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt15 := z.Extension(x.What); yyxt15 != nil { + z.DecExtension(&x.What, yyxt15) + } else { + x.What.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = z.DecCheckBreak() + } + if yyb11 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt17 := z.Extension(x.Cols); yyxt17 != nil { + z.DecExtension(&x.Cols, yyxt17) + } else { + x.Cols.CodecDecodeSelf(d) + } + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = z.DecCheckBreak() + } + if yyb11 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Uniq = (bool)(r.DecodeBool()) + for { + yyj11++ + if yyhl11 { + yyb11 = yyj11 > l + } else { + yyb11 = z.DecCheckBreak() + } + if yyb11 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj11-1, "") + } +} + +func (x *DefineIndexStatement) IsCodecEmpty() bool { + return !(len(x.What) != 0 && len(x.Cols) != 0 && bool(x.Uniq) && true) +} + +func (x *RemoveIndexStatement) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + if yyn3 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.EncExtension(x.Name, yyxt5) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.What); yyxt6 != nil { + z.EncExtension(x.What, yyxt6) + x.What.CodecEncodeSelf(e) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if yyxt7 := z.Extension(x.Name); yyxt7 != nil { + z.EncExtension(x.Name, yyxt7) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt8 := z.Extension(x.What); yyxt8 != nil { + z.EncExtension(x.What, yyxt8) + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapEnd() + } + } +} + +func (x *RemoveIndexStatement) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = RemoveIndexStatement{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *RemoveIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt5 := z.Extension(x.Name); yyxt5 != nil { + z.DecExtension(x.Name, yyxt5) + } else { + x.Name.CodecDecodeSelf(d) + } + } + case "What": + if yyxt7 := z.Extension(x.What); yyxt7 != nil { + z.DecExtension(&x.What, yyxt7) + } else { + x.What.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *RemoveIndexStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt10 := z.Extension(x.Name); yyxt10 != nil { + z.DecExtension(x.Name, yyxt10) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt12 := z.Extension(x.What); yyxt12 != nil { + z.DecExtension(&x.What, yyxt12) + } else { + x.What.CodecDecodeSelf(d) + } + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } +} + +func (x *RemoveIndexStatement) IsCodecEmpty() bool { + return !(len(x.What) != 0 && true) +} + +func (x Exprs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encExprs((Exprs)(x), e) + } // end block: if x slice == nil +} + +func (x *Exprs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decExprs((*Exprs)(x), d) +} + +func (x *All) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(0) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(0) + z.EncWriteMapEnd() + } + } +} + +func (x *All) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = All{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *All) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *All) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = z.DecCheckBreak() + } + if yyb4 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } +} + +func (x *All) IsCodecEmpty() bool { + return !(true) +} + +func (x *Any) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(0) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(0) + z.EncWriteMapEnd() + } + } +} + +func (x *Any) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Any{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Any) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Any) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = z.DecCheckBreak() + } + if yyb4 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } +} + +func (x *Any) IsCodecEmpty() bool { + return !(true) +} + +func (x *Null) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(0) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(0) + z.EncWriteMapEnd() + } + } +} + +func (x *Null) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Null{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Null) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Null) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = z.DecCheckBreak() + } + if yyb4 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } +} + +func (x *Null) IsCodecEmpty() bool { + return !(true) +} + +func (x *Void) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(0) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(0) + z.EncWriteMapEnd() + } + } +} + +func (x *Void) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Void{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Void) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Void) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = z.DecCheckBreak() + } + if yyb4 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } +} + +func (x *Void) IsCodecEmpty() bool { + return !(true) +} + +func (x *Empty) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(0) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(0) + z.EncWriteMapEnd() + } + } +} + +func (x *Empty) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Empty{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Empty) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Empty) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj4 int + var yyb4 bool + var yyhl4 bool = l >= 0 + for { + yyj4++ + if yyhl4 { + yyb4 = yyj4 > l + } else { + yyb4 = z.DecCheckBreak() + } + if yyb4 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj4-1, "") + } +} + +func (x *Empty) IsCodecEmpty() bool { + return !(true) +} + +func (x *Field) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(3) + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.Expr); yyxt6 != nil { + z.EncExtension(x.Expr, yyxt6) + } else { + z.EncFallback(x.Expr) + } + z.EncWriteArrayElem() + r.EncodeString(string(x.Field)) + z.EncWriteArrayElem() + r.EncodeString(string(x.Alias)) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(3) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeString(`Expr`) + } + z.EncWriteMapElemValue() + if yyxt9 := z.Extension(x.Expr); yyxt9 != nil { + z.EncExtension(x.Expr, yyxt9) + } else { + z.EncFallback(x.Expr) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Field\"") + } else { + r.EncodeString(`Field`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Field)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Alias\"") + } else { + r.EncodeString(`Alias`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Alias)) + z.EncWriteMapEnd() + } + } +} + +func (x *Field) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Field{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Field) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Expr": + if yyxt5 := z.Extension(x.Expr); yyxt5 != nil { + z.DecExtension(&x.Expr, yyxt5) + } else { + z.DecFallback(&x.Expr, true) + } + case "Field": + x.Field = (string)(string(r.DecodeStringAsBytes())) + case "Alias": + x.Alias = (string)(string(r.DecodeStringAsBytes())) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Field) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt10 := z.Extension(x.Expr); yyxt10 != nil { + z.DecExtension(&x.Expr, yyxt10) + } else { + z.DecFallback(&x.Expr, true) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Field = (string)(string(r.DecodeStringAsBytes())) + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Alias = (string)(string(r.DecodeStringAsBytes())) + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } +} + +func (x *Field) IsCodecEmpty() bool { + return !(x.Expr != nil && x.Field != "" && x.Alias != "" && true) +} + +func (x Fields) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encFields((Fields)(x), e) + } // end block: if x slice == nil +} + +func (x *Fields) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decFields((*Fields)(x), d) +} + +func (x *Group) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Expr); yyxt4 != nil { + z.EncExtension(x.Expr, yyxt4) + } else { + z.EncFallback(x.Expr) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeString(`Expr`) + } + z.EncWriteMapElemValue() + if yyxt5 := z.Extension(x.Expr); yyxt5 != nil { + z.EncExtension(x.Expr, yyxt5) + } else { + z.EncFallback(x.Expr) + } + z.EncWriteMapEnd() + } + } +} + +func (x *Group) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Group{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Group) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Expr": + if yyxt5 := z.Extension(x.Expr); yyxt5 != nil { + z.DecExtension(&x.Expr, yyxt5) + } else { + z.DecFallback(&x.Expr, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Group) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt8 := z.Extension(x.Expr); yyxt8 != nil { + z.DecExtension(&x.Expr, yyxt8) + } else { + z.DecFallback(&x.Expr, true) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *Group) IsCodecEmpty() bool { + return !(x.Expr != nil && true) +} + +func (x Groups) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encGroups((Groups)(x), e) + } // end block: if x slice == nil +} + +func (x *Groups) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decGroups((*Groups)(x), d) +} + +func (x *Order) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(3) + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.Expr); yyxt6 != nil { + z.EncExtension(x.Expr, yyxt6) + } else { + z.EncFallback(x.Expr) + } + z.EncWriteArrayElem() + r.EncodeBool(bool(x.Dir)) + z.EncWriteArrayElem() + yy8 := &x.Tag + if yyxt9 := z.Extension(yy8); yyxt9 != nil { + z.EncExtension(yy8, yyxt9) + } else if !z.EncBinary() { + z.EncTextMarshal(*yy8) + } else { + z.EncFallback(yy8) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(3) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeString(`Expr`) + } + z.EncWriteMapElemValue() + if yyxt10 := z.Extension(x.Expr); yyxt10 != nil { + z.EncExtension(x.Expr, yyxt10) + } else { + z.EncFallback(x.Expr) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Dir\"") + } else { + r.EncodeString(`Dir`) + } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.Dir)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tag\"") + } else { + r.EncodeString(`Tag`) + } + z.EncWriteMapElemValue() + yy12 := &x.Tag + if yyxt13 := z.Extension(yy12); yyxt13 != nil { + z.EncExtension(yy12, yyxt13) + } else if !z.EncBinary() { + z.EncTextMarshal(*yy12) + } else { + z.EncFallback(yy12) + } + z.EncWriteMapEnd() + } + } +} + +func (x *Order) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Order{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Order) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Expr": + if yyxt5 := z.Extension(x.Expr); yyxt5 != nil { + z.DecExtension(&x.Expr, yyxt5) + } else { + z.DecFallback(&x.Expr, true) + } + case "Dir": + x.Dir = (bool)(r.DecodeBool()) + case "Tag": + if yyxt8 := z.Extension(x.Tag); yyxt8 != nil { + z.DecExtension(&x.Tag, yyxt8) + } else if !z.DecBinary() { + z.DecTextUnmarshal(&x.Tag) + } else { + z.DecFallback(&x.Tag, false) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Order) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj9 int + var yyb9 bool + var yyhl9 bool = l >= 0 + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = z.DecCheckBreak() + } + if yyb9 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt11 := z.Extension(x.Expr); yyxt11 != nil { + z.DecExtension(&x.Expr, yyxt11) + } else { + z.DecFallback(&x.Expr, true) + } + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = z.DecCheckBreak() + } + if yyb9 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Dir = (bool)(r.DecodeBool()) + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = z.DecCheckBreak() + } + if yyb9 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt14 := z.Extension(x.Tag); yyxt14 != nil { + z.DecExtension(&x.Tag, yyxt14) + } else if !z.DecBinary() { + z.DecTextUnmarshal(&x.Tag) + } else { + z.DecFallback(&x.Tag, false) + } + for { + yyj9++ + if yyhl9 { + yyb9 = yyj9 > l + } else { + yyb9 = z.DecCheckBreak() + } + if yyb9 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj9-1, "") + } +} + +func (x *Order) IsCodecEmpty() bool { + return !(x.Expr != nil && bool(x.Dir) && x.Tag != pkg1_language.Tag{} && true) +} + +func (x Orders) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encOrders((Orders)(x), e) + } // end block: if x slice == nil +} + +func (x *Orders) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decOrders((*Orders)(x), d) +} + +func (x *Fetch) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Expr); yyxt4 != nil { + z.EncExtension(x.Expr, yyxt4) + } else { + z.EncFallback(x.Expr) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeString(`Expr`) + } + z.EncWriteMapElemValue() + if yyxt5 := z.Extension(x.Expr); yyxt5 != nil { + z.EncExtension(x.Expr, yyxt5) + } else { + z.EncFallback(x.Expr) + } + z.EncWriteMapEnd() + } + } +} + +func (x *Fetch) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Fetch{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Fetch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Expr": + if yyxt5 := z.Extension(x.Expr); yyxt5 != nil { + z.DecExtension(&x.Expr, yyxt5) + } else { + z.DecFallback(&x.Expr, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Fetch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt8 := z.Extension(x.Expr); yyxt8 != nil { + z.DecExtension(&x.Expr, yyxt8) + } else { + z.DecFallback(&x.Expr, true) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *Fetch) IsCodecEmpty() bool { + return !(x.Expr != nil && true) +} + +func (x Fetchs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encFetchs((Fetchs)(x), e) + } // end block: if x slice == nil +} + +func (x *Fetchs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decFetchs((*Fetchs)(x), d) +} + +func (x *SubExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Expr); yyxt4 != nil { + z.EncExtension(x.Expr, yyxt4) + } else { + z.EncFallback(x.Expr) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeString(`Expr`) + } + z.EncWriteMapElemValue() + if yyxt5 := z.Extension(x.Expr); yyxt5 != nil { + z.EncExtension(x.Expr, yyxt5) + } else { + z.EncFallback(x.Expr) + } + z.EncWriteMapEnd() + } + } +} + +func (x *SubExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = SubExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *SubExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Expr": + if yyxt5 := z.Extension(x.Expr); yyxt5 != nil { + z.DecExtension(&x.Expr, yyxt5) + } else { + z.DecFallback(&x.Expr, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *SubExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt8 := z.Extension(x.Expr); yyxt8 != nil { + z.DecExtension(&x.Expr, yyxt8) + } else { + z.DecFallback(&x.Expr, true) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *SubExpression) IsCodecEmpty() bool { + return !(x.Expr != nil && true) +} + +func (x *MultExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if x.Expr == nil { + r.EncodeNil() + } else { + h.encSliceExpr(([]Expr)(x.Expr), e) + } // end block: if x.Expr slice == nil + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeString(`Expr`) + } + z.EncWriteMapElemValue() + if x.Expr == nil { + r.EncodeNil() + } else { + h.encSliceExpr(([]Expr)(x.Expr), e) + } // end block: if x.Expr slice == nil + z.EncWriteMapEnd() + } + } +} + +func (x *MultExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = MultExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *MultExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Expr": + h.decSliceExpr((*[]Expr)(&x.Expr), d) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *MultExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + h.decSliceExpr((*[]Expr)(&x.Expr), d) + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *MultExpression) IsCodecEmpty() bool { + return !(len(x.Expr) != 0 && true) +} + +func (x *FuncExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(3) + z.EncWriteArrayElem() + r.EncodeString(string(x.Name)) + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.Args); yyxt7 != nil { + z.EncExtension(x.Args, yyxt7) + } else { + x.Args.CodecEncodeSelf(e) + } + z.EncWriteArrayElem() + r.EncodeBool(bool(x.Aggr)) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(3) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.Name)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Args\"") + } else { + r.EncodeString(`Args`) + } + z.EncWriteMapElemValue() + if yyxt10 := z.Extension(x.Args); yyxt10 != nil { + z.EncExtension(x.Args, yyxt10) + } else { + x.Args.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Aggr\"") + } else { + r.EncodeString(`Aggr`) + } + z.EncWriteMapElemValue() + r.EncodeBool(bool(x.Aggr)) + z.EncWriteMapEnd() + } + } +} + +func (x *FuncExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = FuncExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *FuncExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Name": + x.Name = (string)(string(r.DecodeStringAsBytes())) + case "Args": + if yyxt6 := z.Extension(x.Args); yyxt6 != nil { + z.DecExtension(&x.Args, yyxt6) + } else { + x.Args.CodecDecodeSelf(d) + } + case "Aggr": + x.Aggr = (bool)(r.DecodeBool()) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *FuncExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Name = (string)(string(r.DecodeStringAsBytes())) + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt11 := z.Extension(x.Args); yyxt11 != nil { + z.DecExtension(&x.Args, yyxt11) + } else { + x.Args.CodecDecodeSelf(d) + } + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.Aggr = (bool)(r.DecodeBool()) + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } +} + +func (x *FuncExpression) IsCodecEmpty() bool { + return !(x.Name != "" && len(x.Args) != 0 && bool(x.Aggr) && true) +} + +func (x *ItemExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(3) + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.LHS); yyxt6 != nil { + z.EncExtension(x.LHS, yyxt6) + } else { + z.EncFallback(x.LHS) + } + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.Op); yyxt7 != nil { + z.EncExtension(x.Op, yyxt7) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Op) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Op) + } else { + r.EncodeInt(int64(x.Op)) + } + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.RHS); yyxt8 != nil { + z.EncExtension(x.RHS, yyxt8) + } else { + z.EncFallback(x.RHS) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(3) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LHS\"") + } else { + r.EncodeString(`LHS`) + } + z.EncWriteMapElemValue() + if yyxt9 := z.Extension(x.LHS); yyxt9 != nil { + z.EncExtension(x.LHS, yyxt9) + } else { + z.EncFallback(x.LHS) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Op\"") + } else { + r.EncodeString(`Op`) + } + z.EncWriteMapElemValue() + if yyxt10 := z.Extension(x.Op); yyxt10 != nil { + z.EncExtension(x.Op, yyxt10) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Op) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Op) + } else { + r.EncodeInt(int64(x.Op)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RHS\"") + } else { + r.EncodeString(`RHS`) + } + z.EncWriteMapElemValue() + if yyxt11 := z.Extension(x.RHS); yyxt11 != nil { + z.EncExtension(x.RHS, yyxt11) + } else { + z.EncFallback(x.RHS) + } + z.EncWriteMapEnd() + } + } +} + +func (x *ItemExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = ItemExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *ItemExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "LHS": + if yyxt5 := z.Extension(x.LHS); yyxt5 != nil { + z.DecExtension(&x.LHS, yyxt5) + } else { + z.DecFallback(&x.LHS, true) + } + case "Op": + if yyxt7 := z.Extension(x.Op); yyxt7 != nil { + z.DecExtension(&x.Op, yyxt7) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Op) + } else { + x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + case "RHS": + if yyxt9 := z.Extension(x.RHS); yyxt9 != nil { + z.DecExtension(&x.RHS, yyxt9) + } else { + z.DecFallback(&x.RHS, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *ItemExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt12 := z.Extension(x.LHS); yyxt12 != nil { + z.DecExtension(&x.LHS, yyxt12) + } else { + z.DecFallback(&x.LHS, true) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt14 := z.Extension(x.Op); yyxt14 != nil { + z.DecExtension(&x.Op, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Op) + } else { + x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt16 := z.Extension(x.RHS); yyxt16 != nil { + z.DecExtension(&x.RHS, yyxt16) + } else { + z.DecFallback(&x.RHS, true) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } +} + +func (x *ItemExpression) IsCodecEmpty() bool { + return !(x.LHS != nil && x.Op != 0 && x.RHS != nil && true) +} + +func (x *BinaryExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(3) + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.LHS); yyxt6 != nil { + z.EncExtension(x.LHS, yyxt6) + } else { + z.EncFallback(x.LHS) + } + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.Op); yyxt7 != nil { + z.EncExtension(x.Op, yyxt7) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Op) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Op) + } else { + r.EncodeInt(int64(x.Op)) + } + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.RHS); yyxt8 != nil { + z.EncExtension(x.RHS, yyxt8) + } else { + z.EncFallback(x.RHS) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(3) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LHS\"") + } else { + r.EncodeString(`LHS`) + } + z.EncWriteMapElemValue() + if yyxt9 := z.Extension(x.LHS); yyxt9 != nil { + z.EncExtension(x.LHS, yyxt9) + } else { + z.EncFallback(x.LHS) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Op\"") + } else { + r.EncodeString(`Op`) + } + z.EncWriteMapElemValue() + if yyxt10 := z.Extension(x.Op); yyxt10 != nil { + z.EncExtension(x.Op, yyxt10) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Op) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Op) + } else { + r.EncodeInt(int64(x.Op)) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RHS\"") + } else { + r.EncodeString(`RHS`) + } + z.EncWriteMapElemValue() + if yyxt11 := z.Extension(x.RHS); yyxt11 != nil { + z.EncExtension(x.RHS, yyxt11) + } else { + z.EncFallback(x.RHS) + } + z.EncWriteMapEnd() + } + } +} + +func (x *BinaryExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = BinaryExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *BinaryExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "LHS": + if yyxt5 := z.Extension(x.LHS); yyxt5 != nil { + z.DecExtension(&x.LHS, yyxt5) + } else { + z.DecFallback(&x.LHS, true) + } + case "Op": + if yyxt7 := z.Extension(x.Op); yyxt7 != nil { + z.DecExtension(&x.Op, yyxt7) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Op) + } else { + x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + case "RHS": + if yyxt9 := z.Extension(x.RHS); yyxt9 != nil { + z.DecExtension(&x.RHS, yyxt9) + } else { + z.DecFallback(&x.RHS, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *BinaryExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt12 := z.Extension(x.LHS); yyxt12 != nil { + z.DecExtension(&x.LHS, yyxt12) + } else { + z.DecFallback(&x.LHS, true) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt14 := z.Extension(x.Op); yyxt14 != nil { + z.DecExtension(&x.Op, yyxt14) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Op) + } else { + x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt16 := z.Extension(x.RHS); yyxt16 != nil { + z.DecExtension(&x.RHS, yyxt16) + } else { + z.DecFallback(&x.RHS, true) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } +} + +func (x *BinaryExpression) IsCodecEmpty() bool { + return !(x.LHS != nil && x.Op != 0 && x.RHS != nil && true) +} + +func (x *PathExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Expr); yyxt4 != nil { + z.EncExtension(x.Expr, yyxt4) + } else { + x.Expr.CodecEncodeSelf(e) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeString(`Expr`) + } + z.EncWriteMapElemValue() + if yyxt5 := z.Extension(x.Expr); yyxt5 != nil { + z.EncExtension(x.Expr, yyxt5) + } else { + x.Expr.CodecEncodeSelf(e) + } + z.EncWriteMapEnd() + } + } +} + +func (x *PathExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = PathExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *PathExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Expr": + if yyxt5 := z.Extension(x.Expr); yyxt5 != nil { + z.DecExtension(&x.Expr, yyxt5) + } else { + x.Expr.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *PathExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt8 := z.Extension(x.Expr); yyxt8 != nil { + z.DecExtension(&x.Expr, yyxt8) + } else { + x.Expr.CodecDecodeSelf(d) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *PathExpression) IsCodecEmpty() bool { + return !(len(x.Expr) != 0 && true) +} + +func (x *PartExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Part); yyxt4 != nil { + z.EncExtension(x.Part, yyxt4) + } else { + z.EncFallback(x.Part) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Part\"") + } else { + r.EncodeString(`Part`) + } + z.EncWriteMapElemValue() + if yyxt5 := z.Extension(x.Part); yyxt5 != nil { + z.EncExtension(x.Part, yyxt5) + } else { + z.EncFallback(x.Part) + } + z.EncWriteMapEnd() + } + } +} + +func (x *PartExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = PartExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *PartExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Part": + if yyxt5 := z.Extension(x.Part); yyxt5 != nil { + z.DecExtension(&x.Part, yyxt5) + } else { + z.DecFallback(&x.Part, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *PartExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt8 := z.Extension(x.Part); yyxt8 != nil { + z.DecExtension(&x.Part, yyxt8) + } else { + z.DecFallback(&x.Part, true) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *PartExpression) IsCodecEmpty() bool { + return !(x.Part != nil && true) +} + +func (x *JoinExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Join); yyxt4 != nil { + z.EncExtension(x.Join, yyxt4) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Join) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Join) + } else { + r.EncodeInt(int64(x.Join)) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Join\"") + } else { + r.EncodeString(`Join`) + } + z.EncWriteMapElemValue() + if yyxt5 := z.Extension(x.Join); yyxt5 != nil { + z.EncExtension(x.Join, yyxt5) + } else if z.EncBinary() { + z.EncBinaryMarshal(x.Join) + } else if !z.EncBinary() { + z.EncTextMarshal(x.Join) + } else { + r.EncodeInt(int64(x.Join)) + } + z.EncWriteMapEnd() + } + } +} + +func (x *JoinExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = JoinExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *JoinExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Join": + if yyxt5 := z.Extension(x.Join); yyxt5 != nil { + z.DecExtension(&x.Join, yyxt5) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Join) + } else { + x.Join = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *JoinExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt8 := z.Extension(x.Join); yyxt8 != nil { + z.DecExtension(&x.Join, yyxt8) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Join) + } else { + x.Join = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *JoinExpression) IsCodecEmpty() bool { + return !(x.Join != 0 && true) +} + +func (x *SubpExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + var yyn4 bool = x.Name == nil + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(3) + z.EncWriteArrayElem() + if yyxt6 := z.Extension(x.What); yyxt6 != nil { + z.EncExtension(x.What, yyxt6) + } else { + x.What.CodecEncodeSelf(e) + } + if yyn4 { + z.EncWriteArrayElem() + r.EncodeNil() + } else { + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.Name); yyxt7 != nil { + z.EncExtension(x.Name, yyxt7) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.Cond); yyxt8 != nil { + z.EncExtension(x.Cond, yyxt8) + } else { + z.EncFallback(x.Cond) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(3) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeString(`What`) + } + z.EncWriteMapElemValue() + if yyxt9 := z.Extension(x.What); yyxt9 != nil { + z.EncExtension(x.What, yyxt9) + } else { + x.What.CodecEncodeSelf(e) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeString(`Name`) + } + z.EncWriteMapElemValue() + if yyn4 { + r.EncodeNil() + } else { + if yyxt10 := z.Extension(x.Name); yyxt10 != nil { + z.EncExtension(x.Name, yyxt10) + x.Name.CodecEncodeSelf(e) + } + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeString(`Cond`) + } + z.EncWriteMapElemValue() + if yyxt11 := z.Extension(x.Cond); yyxt11 != nil { + z.EncExtension(x.Cond, yyxt11) + } else { + z.EncFallback(x.Cond) + } + z.EncWriteMapEnd() + } + } +} + +func (x *SubpExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = SubpExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *SubpExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "What": + if yyxt5 := z.Extension(x.What); yyxt5 != nil { + z.DecExtension(&x.What, yyxt5) + } else { + x.What.CodecDecodeSelf(d) + } + case "Name": + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt7 := z.Extension(x.Name); yyxt7 != nil { + z.DecExtension(x.Name, yyxt7) + } else { + x.Name.CodecDecodeSelf(d) + } + } + case "Cond": + if yyxt9 := z.Extension(x.Cond); yyxt9 != nil { + z.DecExtension(&x.Cond, yyxt9) + } else { + z.DecFallback(&x.Cond, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *SubpExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj10 int + var yyb10 bool + var yyhl10 bool = l >= 0 + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt12 := z.Extension(x.What); yyxt12 != nil { + z.DecExtension(&x.What, yyxt12) + } else { + x.What.CodecDecodeSelf(d) + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if r.TryNil() { + if x.Name != nil { // remove the if-true + x.Name = nil + } + } else { + if x.Name == nil { + x.Name = new(Ident) + } + if yyxt14 := z.Extension(x.Name); yyxt14 != nil { + z.DecExtension(x.Name, yyxt14) + } else { + x.Name.CodecDecodeSelf(d) + } + } + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt16 := z.Extension(x.Cond); yyxt16 != nil { + z.DecExtension(&x.Cond, yyxt16) + } else { + z.DecFallback(&x.Cond, true) + } + for { + yyj10++ + if yyhl10 { + yyb10 = yyj10 > l + } else { + yyb10 = z.DecCheckBreak() + } + if yyb10 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj10-1, "") + } +} + +func (x *SubpExpression) IsCodecEmpty() bool { + return !(len(x.What) != 0 && x.Cond != nil && true) +} + +func (x *PermExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(4) + z.EncWriteArrayElem() + if yyxt7 := z.Extension(x.Select); yyxt7 != nil { + z.EncExtension(x.Select, yyxt7) + } else { + z.EncFallback(x.Select) + } + z.EncWriteArrayElem() + if yyxt8 := z.Extension(x.Create); yyxt8 != nil { + z.EncExtension(x.Create, yyxt8) + } else { + z.EncFallback(x.Create) + } + z.EncWriteArrayElem() + if yyxt9 := z.Extension(x.Update); yyxt9 != nil { + z.EncExtension(x.Update, yyxt9) + } else { + z.EncFallback(x.Update) + } + z.EncWriteArrayElem() + if yyxt10 := z.Extension(x.Delete); yyxt10 != nil { + z.EncExtension(x.Delete, yyxt10) + } else { + z.EncFallback(x.Delete) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(4) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Select\"") + } else { + r.EncodeString(`Select`) + } + z.EncWriteMapElemValue() + if yyxt11 := z.Extension(x.Select); yyxt11 != nil { + z.EncExtension(x.Select, yyxt11) + } else { + z.EncFallback(x.Select) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Create\"") + } else { + r.EncodeString(`Create`) + } + z.EncWriteMapElemValue() + if yyxt12 := z.Extension(x.Create); yyxt12 != nil { + z.EncExtension(x.Create, yyxt12) + } else { + z.EncFallback(x.Create) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Update\"") + } else { + r.EncodeString(`Update`) + } + z.EncWriteMapElemValue() + if yyxt13 := z.Extension(x.Update); yyxt13 != nil { + z.EncExtension(x.Update, yyxt13) + } else { + z.EncFallback(x.Update) + } + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Delete\"") + } else { + r.EncodeString(`Delete`) + } + z.EncWriteMapElemValue() + if yyxt14 := z.Extension(x.Delete); yyxt14 != nil { + z.EncExtension(x.Delete, yyxt14) + } else { + z.EncFallback(x.Delete) + } + z.EncWriteMapEnd() + } + } +} + +func (x *PermExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = PermExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *PermExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Select": + if yyxt5 := z.Extension(x.Select); yyxt5 != nil { + z.DecExtension(&x.Select, yyxt5) + } else { + z.DecFallback(&x.Select, true) + } + case "Create": + if yyxt7 := z.Extension(x.Create); yyxt7 != nil { + z.DecExtension(&x.Create, yyxt7) + } else { + z.DecFallback(&x.Create, true) + } + case "Update": + if yyxt9 := z.Extension(x.Update); yyxt9 != nil { + z.DecExtension(&x.Update, yyxt9) + } else { + z.DecFallback(&x.Update, true) + } + case "Delete": + if yyxt11 := z.Extension(x.Delete); yyxt11 != nil { + z.DecExtension(&x.Delete, yyxt11) + } else { + z.DecFallback(&x.Delete, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *PermExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj12 int + var yyb12 bool + var yyhl12 bool = l >= 0 + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt14 := z.Extension(x.Select); yyxt14 != nil { + z.DecExtension(&x.Select, yyxt14) + } else { + z.DecFallback(&x.Select, true) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt16 := z.Extension(x.Create); yyxt16 != nil { + z.DecExtension(&x.Create, yyxt16) + } else { + z.DecFallback(&x.Create, true) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt18 := z.Extension(x.Update); yyxt18 != nil { + z.DecExtension(&x.Update, yyxt18) + } else { + z.DecFallback(&x.Update, true) + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt20 := z.Extension(x.Delete); yyxt20 != nil { + z.DecExtension(&x.Delete, yyxt20) + } else { + z.DecFallback(&x.Delete, true) + } + for { + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = z.DecCheckBreak() + } + if yyb12 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj12-1, "") + } +} + +func (x *PermExpression) IsCodecEmpty() bool { + return !(x.Select != nil && x.Create != nil && x.Update != nil && x.Delete != nil && true) +} + +func (x *DataExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if x.Data == nil { + r.EncodeNil() + } else { + h.encSlicePtrtoItemExpression(([]*ItemExpression)(x.Data), e) + } // end block: if x.Data slice == nil + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeString(`Data`) + } + z.EncWriteMapElemValue() + if x.Data == nil { + r.EncodeNil() + } else { + h.encSlicePtrtoItemExpression(([]*ItemExpression)(x.Data), e) + } // end block: if x.Data slice == nil + z.EncWriteMapEnd() + } + } +} + +func (x *DataExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DataExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *DataExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Data": + h.decSlicePtrtoItemExpression((*[]*ItemExpression)(&x.Data), d) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *DataExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + h.decSlicePtrtoItemExpression((*[]*ItemExpression)(&x.Data), d) + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *DataExpression) IsCodecEmpty() bool { + return !(len(x.Data) != 0 && true) +} + +func (x *DiffExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Data); yyxt4 != nil { + z.EncExtension(x.Data, yyxt4) + } else { + z.EncFallback(x.Data) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeString(`Data`) + } + z.EncWriteMapElemValue() + if yyxt5 := z.Extension(x.Data); yyxt5 != nil { + z.EncExtension(x.Data, yyxt5) + } else { + z.EncFallback(x.Data) + } + z.EncWriteMapEnd() + } + } +} + +func (x *DiffExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = DiffExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *DiffExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Data": + if yyxt5 := z.Extension(x.Data); yyxt5 != nil { + z.DecExtension(&x.Data, yyxt5) + } else { + z.DecFallback(&x.Data, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *DiffExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt8 := z.Extension(x.Data); yyxt8 != nil { + z.DecExtension(&x.Data, yyxt8) + } else { + z.DecFallback(&x.Data, true) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *DiffExpression) IsCodecEmpty() bool { + return !(x.Data != nil && true) +} + +func (x *MergeExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Data); yyxt4 != nil { + z.EncExtension(x.Data, yyxt4) + } else { + z.EncFallback(x.Data) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeString(`Data`) + } + z.EncWriteMapElemValue() + if yyxt5 := z.Extension(x.Data); yyxt5 != nil { + z.EncExtension(x.Data, yyxt5) + } else { + z.EncFallback(x.Data) + } + z.EncWriteMapEnd() + } + } +} + +func (x *MergeExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = MergeExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *MergeExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Data": + if yyxt5 := z.Extension(x.Data); yyxt5 != nil { + z.DecExtension(&x.Data, yyxt5) + } else { + z.DecFallback(&x.Data, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *MergeExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt8 := z.Extension(x.Data); yyxt8 != nil { + z.DecExtension(&x.Data, yyxt8) + } else { + z.DecFallback(&x.Data, true) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *MergeExpression) IsCodecEmpty() bool { + return !(x.Data != nil && true) +} + +func (x *ContentExpression) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + if yyxt4 := z.Extension(x.Data); yyxt4 != nil { + z.EncExtension(x.Data, yyxt4) + } else { + z.EncFallback(x.Data) + } + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeString(`Data`) + } + z.EncWriteMapElemValue() + if yyxt5 := z.Extension(x.Data); yyxt5 != nil { + z.EncExtension(x.Data, yyxt5) + } else { + z.EncFallback(x.Data) + } + z.EncWriteMapEnd() + } + } +} + +func (x *ContentExpression) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = ContentExpression{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *ContentExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "Data": + if yyxt5 := z.Extension(x.Data); yyxt5 != nil { + z.DecExtension(&x.Data, yyxt5) + } else { + z.DecFallback(&x.Data, true) + } + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *ContentExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj6 int + var yyb6 bool + var yyhl6 bool = l >= 0 + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + if yyxt8 := z.Extension(x.Data); yyxt8 != nil { + z.DecExtension(&x.Data, yyxt8) + } else { + z.DecFallback(&x.Data, true) + } + for { + yyj6++ + if yyhl6 { + yyb6 = yyj6 > l + } else { + yyb6 = z.DecCheckBreak() + } + if yyb6 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj6-1, "") + } +} + +func (x *ContentExpression) IsCodecEmpty() bool { + return !(x.Data != nil && true) +} + +func (x Params) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encParams((Params)(x), e) + } // end block: if x slice == nil +} + +func (x *Params) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decParams((*Params)(x), d) +} + +func (x *Param) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + r.EncodeString(string(x.VA)) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VA\"") + } else { + r.EncodeString(`VA`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.VA)) + z.EncWriteMapEnd() + } + } +} + +func (x *Param) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Param{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Param) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "VA": + x.VA = (string)(string(r.DecodeStringAsBytes())) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Param) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = z.DecCheckBreak() + } + if yyb5 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.VA = (string)(string(r.DecodeStringAsBytes())) + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = z.DecCheckBreak() + } + if yyb5 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } +} + +func (x *Param) IsCodecEmpty() bool { + return !(x.VA != "" && true) +} + +func (x Idents) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encIdents((Idents)(x), e) + } // end block: if x slice == nil +} + +func (x *Idents) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decIdents((*Idents)(x), d) +} + +func (x *Ident) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + r.EncodeString(string(x.VA)) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VA\"") + } else { + r.EncodeString(`VA`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.VA)) + z.EncWriteMapEnd() + } + } +} + +func (x *Ident) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Ident{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Ident) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "VA": + x.VA = (string)(string(r.DecodeStringAsBytes())) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Ident) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = z.DecCheckBreak() + } + if yyb5 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.VA = (string)(string(r.DecodeStringAsBytes())) + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = z.DecCheckBreak() + } + if yyb5 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } +} + +func (x *Ident) IsCodecEmpty() bool { + return !(x.VA != "" && true) +} + +func (x Values) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encValues((Values)(x), e) + } // end block: if x slice == nil +} + +func (x *Values) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decValues((*Values)(x), d) +} + +func (x *Value) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + r.EncodeString(string(x.VA)) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VA\"") + } else { + r.EncodeString(`VA`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.VA)) + z.EncWriteMapEnd() + } + } +} + +func (x *Value) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Value{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Value) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "VA": + x.VA = (string)(string(r.DecodeStringAsBytes())) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Value) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = z.DecCheckBreak() + } + if yyb5 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.VA = (string)(string(r.DecodeStringAsBytes())) + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = z.DecCheckBreak() + } + if yyb5 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } +} + +func (x *Value) IsCodecEmpty() bool { + return !(x.VA != "" && true) +} + +func (x Regexs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encRegexs((Regexs)(x), e) + } // end block: if x slice == nil +} + +func (x *Regexs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decRegexs((*Regexs)(x), d) +} + +func (x *Regex) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + r.EncodeString(string(x.VA)) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VA\"") + } else { + r.EncodeString(`VA`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.VA)) + z.EncWriteMapEnd() + } + } +} + +func (x *Regex) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Regex{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Regex) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "VA": + x.VA = (string)(string(r.DecodeStringAsBytes())) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Regex) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = z.DecCheckBreak() + } + if yyb5 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.VA = (string)(string(r.DecodeStringAsBytes())) + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = z.DecCheckBreak() + } + if yyb5 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } +} + +func (x *Regex) IsCodecEmpty() bool { + return !(x.VA != "" && true) +} + +func (x Tables) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encTables((Tables)(x), e) + } // end block: if x slice == nil +} + +func (x *Tables) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decTables((*Tables)(x), d) +} + +func (x *Table) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() + r.EncodeString(string(x.TB)) + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TB\"") + } else { + r.EncodeString(`TB`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.TB)) + z.EncWriteMapEnd() + } + } +} + +func (x *Table) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Table{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Table) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "TB": + x.TB = (string)(string(r.DecodeStringAsBytes())) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Table) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj5 int + var yyb5 bool + var yyhl5 bool = l >= 0 + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = z.DecCheckBreak() + } + if yyb5 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.TB = (string)(string(r.DecodeStringAsBytes())) + for { + yyj5++ + if yyhl5 { + yyb5 = yyj5 > l + } else { + yyb5 = z.DecCheckBreak() + } + if yyb5 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj5-1, "") + } +} + +func (x *Table) IsCodecEmpty() bool { + return !(x.TB != "" && true) +} + +func (x Batchs) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encBatchs((Batchs)(x), e) + } // end block: if x slice == nil +} + +func (x *Batchs) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decBatchs((*Batchs)(x), d) +} + +func (x *Batch) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + z.EncWriteArrayElem() + r.EncodeString(string(x.TB)) + z.EncWriteArrayElem() + if x.BA == nil { + r.EncodeNil() + } else { + h.encSlicePtrtoThing(([]*Thing)(x.BA), e) + } // end block: if x.BA slice == nil + z.EncWriteArrayEnd() + } else { + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TB\"") + } else { + r.EncodeString(`TB`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.TB)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BA\"") + } else { + r.EncodeString(`BA`) + } + z.EncWriteMapElemValue() + if x.BA == nil { + r.EncodeNil() + } else { + h.encSlicePtrtoThing(([]*Thing)(x.BA), e) + } // end block: if x.BA slice == nil + z.EncWriteMapEnd() + } + } +} + +func (x *Batch) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Batch{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Batch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "TB": + x.TB = (string)(string(r.DecodeStringAsBytes())) + case "BA": + h.decSlicePtrtoThing((*[]*Thing)(&x.BA), d) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Batch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj7 int var yyb7 bool @@ -17433,182 +13599,511 @@ func (x *Thing) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } if yyb7 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.TB = "" - } else { - x.TB = (string)(r.DecodeString()) - } + z.DecReadArrayElem() + x.TB = (string)(string(r.DecodeStringAsBytes())) yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } if yyb7 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.ID = nil - } else { - if false { - } else { - z.DecFallback(&x.ID, true) - } - } + z.DecReadArrayElem() + h.decSlicePtrtoThing((*[]*Thing)(&x.BA), d) for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } if yyb7 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } - r.ReadArrayEnd() } -func (x Points) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *Batch) IsCodecEmpty() bool { + return !(x.TB != "" && len(x.BA) != 0 && true) +} + +func (x Models) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) + h.encModels((Models)(x), e) + } // end block: if x slice == nil +} + +func (x *Models) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decModels((*Models)(x), d) +} + +func (x *Model) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(4) + z.EncWriteArrayElem() + r.EncodeString(string(x.TB)) + z.EncWriteArrayElem() + r.EncodeFloat64(float64(x.MIN)) + z.EncWriteArrayElem() + r.EncodeFloat64(float64(x.INC)) + z.EncWriteArrayElem() + r.EncodeFloat64(float64(x.MAX)) + z.EncWriteArrayEnd() } else { - h.encPoints((Points)(x), e) + z.EncWriteMapStart(4) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TB\"") + } else { + r.EncodeString(`TB`) + } + z.EncWriteMapElemValue() + r.EncodeString(string(x.TB)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MIN\"") + } else { + r.EncodeString(`MIN`) + } + z.EncWriteMapElemValue() + r.EncodeFloat64(float64(x.MIN)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"INC\"") + } else { + r.EncodeString(`INC`) + } + z.EncWriteMapElemValue() + r.EncodeFloat64(float64(x.INC)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MAX\"") + } else { + r.EncodeString(`MAX`) + } + z.EncWriteMapElemValue() + r.EncodeFloat64(float64(x.MAX)) + z.EncWriteMapEnd() } } } -func (x *Points) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x *Model) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Model{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() } else { - h.decPoints((*Points)(x), d) + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } -func (x *Point) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *Model) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "TB": + x.TB = (string)(string(r.DecodeStringAsBytes())) + case "MIN": + x.MIN = (float64)(r.DecodeFloat64()) + case "INC": + x.INC = (float64)(r.DecodeFloat64()) + case "MAX": + x.MAX = (float64)(r.DecodeFloat64()) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Model) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj8 int + var yyb8 bool + var yyhl8 bool = l >= 0 + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.TB = (string)(string(r.DecodeStringAsBytes())) + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.MIN = (float64)(r.DecodeFloat64()) + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.INC = (float64)(r.DecodeFloat64()) + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.MAX = (float64)(r.DecodeFloat64()) + for { + yyj8++ + if yyhl8 { + yyb8 = yyj8 > l + } else { + yyb8 = z.DecCheckBreak() + } + if yyb8 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj8-1, "") + } +} + +func (x *Model) IsCodecEmpty() bool { + return !(x.TB != "" && x.MIN != 0 && x.INC != 0 && x.MAX != 0 && true) +} + +func (x Things) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else if !z.EncBinary() && z.IsJSONHandle() { - z.EncJSONMarshal(x) + h.encThings((Things)(x), e) + } // end block: if x slice == nil +} + +func (x *Things) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decThings((*Things)(x), d) +} + +func (x *Thing) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if !z.EncBinary() { + z.EncTextMarshal(*x) } else { - yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 + _ = yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { - r.WriteArrayStart(2) + z.EncWriteArrayStart(2) + z.EncWriteArrayElem() + r.EncodeString(string(x.TB)) + z.EncWriteArrayElem() + z.EncFallback(x.ID) + z.EncWriteArrayEnd() } else { - r.WriteMapStart(2) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TB\"") } else { - r.EncodeFloat64(float64(x.LA)) + r.EncodeString(`TB`) } + z.EncWriteMapElemValue() + r.EncodeString(string(x.TB)) + z.EncWriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeString(`ID`) + } + z.EncWriteMapElemValue() + z.EncFallback(x.ID) + z.EncWriteMapEnd() + } + } + } +} + +func (x *Thing) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Thing{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) + } +} + +func (x *Thing) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyhl3 bool = l >= 0 + for yyj3 := 0; ; yyj3++ { + if yyhl3 { + if yyj3 >= l { + break + } + } else { + if z.DecCheckBreak() { + break + } + } + z.DecReadMapElemKey() + yys3 := z.StringView(r.DecodeStringAsBytes()) + z.DecReadMapElemValue() + switch yys3 { + case "TB": + x.TB = (string)(string(r.DecodeStringAsBytes())) + case "ID": + z.DecFallback(&x.ID, true) + default: + z.DecStructFieldNotFound(-1, yys3) + } // end switch yys3 + } // end for yyj3 +} + +func (x *Thing) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = z.DecCheckBreak() + } + if yyb7 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + x.TB = (string)(string(r.DecodeStringAsBytes())) + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = z.DecCheckBreak() + } + if yyb7 { + z.DecReadArrayEnd() + return + } + z.DecReadArrayElem() + z.DecFallback(&x.ID, true) + for { + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l + } else { + yyb7 = z.DecCheckBreak() + } + if yyb7 { + break + } + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") + } +} + +func (x *Thing) IsCodecEmpty() bool { + return !(x.TB != "" && x.ID != nil && true) +} + +func (x Points) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + h.encPoints((Points)(x), e) + } // end block: if x slice == nil +} + +func (x *Points) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) + _, _, _ = h, z, r + h.decPoints((*Points)(x), d) +} + +func (x *Point) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(*x) + } else { + yy2arr2 := z.EncBasicHandle().StructToArray + _ = yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) + z.EncWriteArrayElem() + r.EncodeFloat64(float64(x.LA)) + z.EncWriteArrayElem() + r.EncodeFloat64(float64(x.LO)) + z.EncWriteArrayEnd() } else { - r.WriteMapElemKey() + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"LA\"") } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `LA`) + r.EncodeString(`LA`) } - r.WriteMapElemValue() - if false { - } else { - r.EncodeFloat64(float64(x.LA)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeFloat64(float64(x.LO)) - } - } else { - r.WriteMapElemKey() + z.EncWriteMapElemValue() + r.EncodeFloat64(float64(x.LA)) + z.EncWriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"LO\"") } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `LO`) + r.EncodeString(`LO`) } - r.WriteMapElemValue() - if false { - } else { - r.EncodeFloat64(float64(x.LO)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + z.EncWriteMapElemValue() + r.EncodeFloat64(float64(x.LO)) + z.EncWriteMapEnd() } } } } func (x *Point) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Point{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } func (x *Point) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -17617,36 +14112,27 @@ func (x *Point) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { case "LA": - if r.TryDecodeAsNil() { - x.LA = 0 - } else { - x.LA = (float64)(r.DecodeFloat64()) - } + x.LA = (float64)(r.DecodeFloat64()) case "LO": - if r.TryDecodeAsNil() { - x.LO = 0 - } else { - x.LO = (float64)(r.DecodeFloat64()) - } + x.LO = (float64)(r.DecodeFloat64()) default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *Point) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool @@ -17655,196 +14141,153 @@ func (x *Point) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.LA = 0 - } else { - x.LA = (float64)(r.DecodeFloat64()) - } + z.DecReadArrayElem() + x.LA = (float64)(r.DecodeFloat64()) yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.LO = 0 - } else { - x.LO = (float64)(r.DecodeFloat64()) - } + z.DecReadArrayElem() + x.LO = (float64)(r.DecodeFloat64()) for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } - r.ReadArrayEnd() +} + +func (x *Point) IsCodecEmpty() bool { + return !(x.LA != 0 && x.LO != 0 && true) } func (x Circles) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encCircles((Circles)(x), e) - } - } + h.encCircles((Circles)(x), e) + } // end block: if x slice == nil } func (x *Circles) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decCircles((*Circles)(x), d) - } + h.decCircles((*Circles)(x), d) } func (x *Circle) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else if !z.EncBinary() && z.IsJSONHandle() { - z.EncJSONMarshal(x) + if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(*x) } else { - yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 + _ = yy2arr2 const yyr2 bool = false // struct tag has 'toArray' + var yyn3 bool = x.CE == nil if yyr2 || yy2arr2 { - r.WriteArrayStart(2) - } else { - r.WriteMapStart(2) - } - var yyn3 bool - if x.CE == nil { - yyn3 = true - goto LABEL3 - } - LABEL3: - if yyr2 || yy2arr2 { + z.EncWriteArrayStart(2) if yyn3 { - r.WriteArrayElem() + z.EncWriteArrayElem() r.EncodeNil() } else { - r.WriteArrayElem() - if x.CE == nil { - r.EncodeNil() + z.EncWriteArrayElem() + if yyxt5 := z.Extension(x.CE); yyxt5 != nil { + z.EncExtension(x.CE, yyxt5) } else { x.CE.CodecEncodeSelf(e) } } + z.EncWriteArrayElem() + r.EncodeFloat64(float64(x.RA)) + z.EncWriteArrayEnd() } else { - r.WriteMapElemKey() + z.EncWriteMapStart(2) + z.EncWriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"CE\"") } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `CE`) + r.EncodeString(`CE`) } - r.WriteMapElemValue() + z.EncWriteMapElemValue() if yyn3 { r.EncodeNil() } else { - if x.CE == nil { - r.EncodeNil() + if yyxt7 := z.Extension(x.CE); yyxt7 != nil { + z.EncExtension(x.CE, yyxt7) } else { x.CE.CodecEncodeSelf(e) } } - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() - if false { - } else { - r.EncodeFloat64(float64(x.RA)) - } - } else { - r.WriteMapElemKey() + z.EncWriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"RA\"") } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `RA`) + r.EncodeString(`RA`) } - r.WriteMapElemValue() - if false { - } else { - r.EncodeFloat64(float64(x.RA)) - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + z.EncWriteMapElemValue() + r.EncodeFloat64(float64(x.RA)) + z.EncWriteMapEnd() } } } } func (x *Circle) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Circle{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } func (x *Circle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -17853,218 +14296,188 @@ func (x *Circle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { case "CE": - if r.TryDecodeAsNil() { - if true && x.CE != nil { + if r.TryNil() { + if x.CE != nil { // remove the if-true x.CE = nil } } else { if x.CE == nil { x.CE = new(Point) } - - x.CE.CodecDecodeSelf(d) + if yyxt5 := z.Extension(x.CE); yyxt5 != nil { + z.DecExtension(x.CE, yyxt5) + } else { + x.CE.CodecDecodeSelf(d) + } } case "RA": - if r.TryDecodeAsNil() { - x.RA = 0 - } else { - x.RA = (float64)(r.DecodeFloat64()) - } + x.RA = (float64)(r.DecodeFloat64()) default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *Circle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - var yyj6 int - var yyb6 bool - var yyhl6 bool = l >= 0 - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + var yyj7 int + var yyb7 bool + var yyhl7 bool = l >= 0 + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l } else { - yyb6 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } - if yyb6 { - r.ReadArrayEnd() + if yyb7 { + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - if true && x.CE != nil { + z.DecReadArrayElem() + if r.TryNil() { + if x.CE != nil { // remove the if-true x.CE = nil } } else { if x.CE == nil { x.CE = new(Point) } - - x.CE.CodecDecodeSelf(d) + if yyxt9 := z.Extension(x.CE); yyxt9 != nil { + z.DecExtension(x.CE, yyxt9) + } else { + x.CE.CodecDecodeSelf(d) + } } - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l } else { - yyb6 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } - if yyb6 { - r.ReadArrayEnd() + if yyb7 { + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.RA = 0 - } else { - x.RA = (float64)(r.DecodeFloat64()) - } + z.DecReadArrayElem() + x.RA = (float64)(r.DecodeFloat64()) for { - yyj6++ - if yyhl6 { - yyb6 = yyj6 > l + yyj7++ + if yyhl7 { + yyb7 = yyj7 > l } else { - yyb6 = r.CheckBreak() + yyb7 = z.DecCheckBreak() } - if yyb6 { + if yyb7 { break } - r.ReadArrayElem() - z.DecStructFieldNotFound(yyj6-1, "") + z.DecReadArrayElem() + z.DecStructFieldNotFound(yyj7-1, "") } - r.ReadArrayEnd() +} + +func (x *Circle) IsCodecEmpty() bool { + return !(x.RA != 0 && true) } func (x Polygons) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else { - h.encPolygons((Polygons)(x), e) - } - } + h.encPolygons((Polygons)(x), e) + } // end block: if x slice == nil } func (x *Polygons) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - h.decPolygons((*Polygons)(x), d) - } + h.decPolygons((*Polygons)(x), d) } func (x *Polygon) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.EncExtension(x, yyxt1) - } else if !z.EncBinary() && z.IsJSONHandle() { - z.EncJSONMarshal(x) + if !z.EncBinary() && z.IsJSONHandle() { + z.EncJSONMarshal(*x) } else { - yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 + _ = yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { - r.WriteArrayStart(1) - } else { - r.WriteMapStart(1) - } - if yyr2 || yy2arr2 { - r.WriteArrayElem() + z.EncWriteArrayStart(1) + z.EncWriteArrayElem() if x.PS == nil { r.EncodeNil() } else { - if false { - } else { - h.encSlicePtrtoPoint(([]*Point)(x.PS), e) - } - } + h.encSlicePtrtoPoint(([]*Point)(x.PS), e) + } // end block: if x.PS slice == nil + z.EncWriteArrayEnd() } else { - r.WriteMapElemKey() + z.EncWriteMapStart(1) + z.EncWriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"PS\"") } else { - r.EncodeStringEnc(codecSelferCcUTF85519, `PS`) + r.EncodeString(`PS`) } - r.WriteMapElemValue() + z.EncWriteMapElemValue() if x.PS == nil { r.EncodeNil() } else { - if false { - } else { - h.encSlicePtrtoPoint(([]*Point)(x.PS), e) - } - } - } - if yyr2 || yy2arr2 { - r.WriteArrayEnd() - } else { - r.WriteMapEnd() + h.encSlicePtrtoPoint(([]*Point)(x.PS), e) + } // end block: if x.PS slice == nil + z.EncWriteMapEnd() } } } } func (x *Polygon) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r - if false { - } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { - z.DecExtension(x, yyxt1) - } else { - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeMap5519 { - yyl2 := r.ReadMapStart() - if yyl2 == 0 { - r.ReadMapEnd() - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - } else if yyct2 == codecSelferValueTypeArray5519 { - yyl2 := r.ReadArrayStart() - if yyl2 == 0 { - r.ReadArrayEnd() - } else { - x.codecDecodeSelfFromArray(yyl2, d) - } + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeNil8312 { + *(x) = Polygon{} + } else if yyct2 == codecSelferValueTypeMap8312 { + yyl2 := z.DecReadMapStart() + if yyl2 == 0 { } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) + x.codecDecodeSelfFromMap(yyl2, d) } + z.DecReadMapEnd() + } else if yyct2 == codecSelferValueTypeArray8312 { + yyl2 := z.DecReadArrayStart() + if yyl2 != 0 { + x.codecDecodeSelfFromArray(yyl2, d) + } + z.DecReadArrayEnd() + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8312) } } func (x *Polygon) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { @@ -18073,33 +14486,25 @@ func (x *Polygon) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if r.CheckBreak() { + if z.DecCheckBreak() { break } } - r.ReadMapElemKey() + z.DecReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - r.ReadMapElemValue() + z.DecReadMapElemValue() switch yys3 { case "PS": - if r.TryDecodeAsNil() { - x.PS = nil - } else { - if false { - } else { - h.decSlicePtrtoPoint((*[]*Point)(&x.PS), d) - } - } + h.decSlicePtrtoPoint((*[]*Point)(&x.PS), d) default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 - r.ReadMapEnd() } func (x *Polygon) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool @@ -18108,68 +14513,72 @@ func (x *Polygon) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { - r.ReadArrayEnd() + z.DecReadArrayEnd() return } - r.ReadArrayElem() - if r.TryDecodeAsNil() { - x.PS = nil - } else { - if false { - } else { - h.decSlicePtrtoPoint((*[]*Point)(&x.PS), d) - } - } + z.DecReadArrayElem() + h.decSlicePtrtoPoint((*[]*Point)(&x.PS), d) for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = r.CheckBreak() + yyb6 = z.DecCheckBreak() } if yyb6 { break } - r.ReadArrayElem() + z.DecReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } - r.ReadArrayEnd() } -func (x codecSelfer5519) encStatements(v Statements, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x *Polygon) IsCodecEmpty() bool { + return !(len(x.PS) != 0 && true) +} + +func (x codecSelfer8312) encStatements(v Statements, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - if false { - } else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { z.EncExtension(yyv1, yyxt2) } else { z.EncFallback(yyv1) } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decStatements(v *Statements, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decStatements(v *Statements, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []Statement{} yyc1 = true @@ -18196,8 +14605,7 @@ func (x codecSelfer5519) decStatements(v *Statements, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) @@ -18208,29 +14616,20 @@ func (x codecSelfer5519) decStatements(v *Statements, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { - yyv1[yyj1] = nil + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(&yyv1[yyj1], yyxt3) } else { - if false { - } else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { - z.DecExtension(yyv1[yyj1], yyxt3) - } else { - z.DecFallback(&yyv1[yyj1], true) - } + z.DecFallback(&yyv1[yyj1], true) } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -18246,37 +14645,45 @@ func (x codecSelfer5519) decStatements(v *Statements, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encExprs(v Exprs, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encExprs(v Exprs, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - if false { - } else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { z.EncExtension(yyv1, yyxt2) } else { z.EncFallback(yyv1) } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decExprs(v *Exprs, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decExprs(v *Exprs, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []Expr{} yyc1 = true @@ -18303,8 +14710,7 @@ func (x codecSelfer5519) decExprs(v *Exprs, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) @@ -18315,29 +14721,20 @@ func (x codecSelfer5519) decExprs(v *Exprs, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { - yyv1[yyj1] = nil + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(&yyv1[yyj1], yyxt3) } else { - if false { - } else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { - z.DecExtension(yyv1[yyj1], yyxt3) - } else { - z.DecFallback(&yyv1[yyj1], true) - } + z.DecFallback(&yyv1[yyj1], true) } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -18353,32 +14750,45 @@ func (x codecSelfer5519) decExprs(v *Exprs, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encFields(v Fields, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encFields(v Fields, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decFields(v *Fields, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decFields(v *Fields, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Field{} yyc1 = true @@ -18405,8 +14815,7 @@ func (x codecSelfer5519) decFields(v *Fields, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -18417,27 +14826,27 @@ func (x codecSelfer5519) decFields(v *Fields, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Field) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -18453,32 +14862,45 @@ func (x codecSelfer5519) decFields(v *Fields, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encGroups(v Groups, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encGroups(v Groups, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decGroups(v *Groups, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decGroups(v *Groups, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Group{} yyc1 = true @@ -18505,8 +14927,7 @@ func (x codecSelfer5519) decGroups(v *Groups, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -18517,27 +14938,27 @@ func (x codecSelfer5519) decGroups(v *Groups, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Group) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -18553,32 +14974,45 @@ func (x codecSelfer5519) decGroups(v *Groups, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encOrders(v Orders, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encOrders(v Orders, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decOrders(v *Orders, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decOrders(v *Orders, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Order{} yyc1 = true @@ -18605,8 +15039,7 @@ func (x codecSelfer5519) decOrders(v *Orders, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -18617,27 +15050,27 @@ func (x codecSelfer5519) decOrders(v *Orders, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Order) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -18653,32 +15086,45 @@ func (x codecSelfer5519) decOrders(v *Orders, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encFetchs(v Fetchs, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encFetchs(v Fetchs, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decFetchs(v *Fetchs, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decFetchs(v *Fetchs, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Fetch{} yyc1 = true @@ -18705,8 +15151,7 @@ func (x codecSelfer5519) decFetchs(v *Fetchs, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -18717,27 +15162,27 @@ func (x codecSelfer5519) decFetchs(v *Fetchs, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Fetch) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -18753,37 +15198,45 @@ func (x codecSelfer5519) decFetchs(v *Fetchs, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encSliceExpr(v []Expr, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encSliceExpr(v []Expr, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - if false { - } else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { z.EncExtension(yyv1, yyxt2) } else { z.EncFallback(yyv1) } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decSliceExpr(v *[]Expr, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decSliceExpr(v *[]Expr, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []Expr{} yyc1 = true @@ -18810,8 +15263,7 @@ func (x codecSelfer5519) decSliceExpr(v *[]Expr, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) @@ -18822,29 +15274,20 @@ func (x codecSelfer5519) decSliceExpr(v *[]Expr, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { - yyv1[yyj1] = nil + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(&yyv1[yyj1], yyxt3) } else { - if false { - } else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { - z.DecExtension(yyv1[yyj1], yyxt3) - } else { - z.DecFallback(&yyv1[yyj1], true) - } + z.DecFallback(&yyv1[yyj1], true) } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -18860,32 +15303,45 @@ func (x codecSelfer5519) decSliceExpr(v *[]Expr, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encSlicePtrtoItemExpression(v []*ItemExpression, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encSlicePtrtoItemExpression(v []*ItemExpression, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*ItemExpression{} yyc1 = true @@ -18912,8 +15368,7 @@ func (x codecSelfer5519) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *co } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -18924,27 +15379,27 @@ func (x codecSelfer5519) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *co yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(ItemExpression) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -18960,32 +15415,45 @@ func (x codecSelfer5519) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *co } } -func (x codecSelfer5519) encParams(v Params, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encParams(v Params, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decParams(v *Params, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decParams(v *Params, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Param{} yyc1 = true @@ -19012,8 +15480,7 @@ func (x codecSelfer5519) decParams(v *Params, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -19024,27 +15491,27 @@ func (x codecSelfer5519) decParams(v *Params, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Param) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -19060,32 +15527,45 @@ func (x codecSelfer5519) decParams(v *Params, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encIdents(v Idents, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encIdents(v Idents, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decIdents(v *Idents, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decIdents(v *Idents, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Ident{} yyc1 = true @@ -19112,8 +15592,7 @@ func (x codecSelfer5519) decIdents(v *Idents, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -19124,27 +15603,27 @@ func (x codecSelfer5519) decIdents(v *Idents, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Ident) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -19160,32 +15639,45 @@ func (x codecSelfer5519) decIdents(v *Idents, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encValues(v Values, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encValues(v Values, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decValues(v *Values, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decValues(v *Values, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Value{} yyc1 = true @@ -19212,8 +15704,7 @@ func (x codecSelfer5519) decValues(v *Values, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -19224,27 +15715,27 @@ func (x codecSelfer5519) decValues(v *Values, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Value) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -19260,32 +15751,45 @@ func (x codecSelfer5519) decValues(v *Values, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encRegexs(v Regexs, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encRegexs(v Regexs, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decRegexs(v *Regexs, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decRegexs(v *Regexs, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Regex{} yyc1 = true @@ -19312,8 +15816,7 @@ func (x codecSelfer5519) decRegexs(v *Regexs, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -19324,27 +15827,27 @@ func (x codecSelfer5519) decRegexs(v *Regexs, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Regex) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -19360,32 +15863,45 @@ func (x codecSelfer5519) decRegexs(v *Regexs, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encTables(v Tables, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encTables(v Tables, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decTables(v *Tables, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decTables(v *Tables, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Table{} yyc1 = true @@ -19412,8 +15928,7 @@ func (x codecSelfer5519) decTables(v *Tables, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -19424,27 +15939,27 @@ func (x codecSelfer5519) decTables(v *Tables, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Table) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -19460,32 +15975,45 @@ func (x codecSelfer5519) decTables(v *Tables, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encBatchs(v Batchs, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encBatchs(v Batchs, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decBatchs(v *Batchs, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decBatchs(v *Batchs, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Batch{} yyc1 = true @@ -19512,8 +16040,7 @@ func (x codecSelfer5519) decBatchs(v *Batchs, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -19524,27 +16051,27 @@ func (x codecSelfer5519) decBatchs(v *Batchs, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Batch) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -19560,32 +16087,45 @@ func (x codecSelfer5519) decBatchs(v *Batchs, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encSlicePtrtoThing(v []*Thing, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encSlicePtrtoThing(v []*Thing, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Thing{} yyc1 = true @@ -19612,8 +16152,7 @@ func (x codecSelfer5519) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -19624,27 +16163,27 @@ func (x codecSelfer5519) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Thing) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -19660,32 +16199,45 @@ func (x codecSelfer5519) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encModels(v Models, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encModels(v Models, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decModels(v *Models, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decModels(v *Models, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Model{} yyc1 = true @@ -19712,8 +16264,7 @@ func (x codecSelfer5519) decModels(v *Models, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -19724,27 +16275,27 @@ func (x codecSelfer5519) decModels(v *Models, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Model) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -19760,32 +16311,45 @@ func (x codecSelfer5519) decModels(v *Models, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encThings(v Things, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encThings(v Things, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decThings(v *Things, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decThings(v *Things, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Thing{} yyc1 = true @@ -19812,8 +16376,7 @@ func (x codecSelfer5519) decThings(v *Things, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -19824,27 +16387,27 @@ func (x codecSelfer5519) decThings(v *Things, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Thing) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -19860,32 +16423,45 @@ func (x codecSelfer5519) decThings(v *Things, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encPoints(v Points, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encPoints(v Points, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decPoints(v *Points, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decPoints(v *Points, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Point{} yyc1 = true @@ -19912,8 +16488,7 @@ func (x codecSelfer5519) decPoints(v *Points, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -19924,27 +16499,27 @@ func (x codecSelfer5519) decPoints(v *Points, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Point) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -19960,32 +16535,45 @@ func (x codecSelfer5519) decPoints(v *Points, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encCircles(v Circles, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encCircles(v Circles, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decCircles(v *Circles, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decCircles(v *Circles, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Circle{} yyc1 = true @@ -20012,8 +16600,7 @@ func (x codecSelfer5519) decCircles(v *Circles, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -20024,27 +16611,27 @@ func (x codecSelfer5519) decCircles(v *Circles, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Circle) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -20060,32 +16647,45 @@ func (x codecSelfer5519) decCircles(v *Circles, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encPolygons(v Polygons, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encPolygons(v Polygons, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decPolygons(v *Polygons, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decPolygons(v *Polygons, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Polygon{} yyc1 = true @@ -20112,8 +16712,7 @@ func (x codecSelfer5519) decPolygons(v *Polygons, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -20124,27 +16723,27 @@ func (x codecSelfer5519) decPolygons(v *Polygons, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Polygon) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -20160,32 +16759,45 @@ func (x codecSelfer5519) decPolygons(v *Polygons, d *codec1978.Decoder) { } } -func (x codecSelfer5519) encSlicePtrtoPoint(v []*Point, e *codec1978.Encoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperEncoder(e) +func (x codecSelfer8312) encSlicePtrtoPoint(v []*Point, e *codec1978.Encoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Encoder(e) _, _, _ = h, z, r - r.WriteArrayStart(len(v)) + if v == nil { + r.EncodeNil() + return + } + z.EncWriteArrayStart(len(v)) for _, yyv1 := range v { - r.WriteArrayElem() + z.EncWriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - yyv1.CodecEncodeSelf(e) + if yyxt2 := z.Extension(yyv1); yyxt2 != nil { + z.EncExtension(yyv1, yyxt2) + } else { + yyv1.CodecEncodeSelf(e) + } } } - r.WriteArrayEnd() + z.EncWriteArrayEnd() } -func (x codecSelfer5519) decSlicePtrtoPoint(v *[]*Point, d *codec1978.Decoder) { - var h codecSelfer5519 - z, r := codec1978.GenHelperDecoder(d) +func (x codecSelfer8312) decSlicePtrtoPoint(v *[]*Point, d *codec1978.Decoder) { + var h codecSelfer8312 + z, r := codec1978.GenHelper().Decoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyl1 == 0 { + if yyh1.IsNil { + if yyv1 != nil { + yyv1 = nil + yyc1 = true + } + } else if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Point{} yyc1 = true @@ -20212,8 +16824,7 @@ func (x codecSelfer5519) decSlicePtrtoPoint(v *[]*Point, d *codec1978.Decoder) { } } var yyj1 int - // var yydn1 bool - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -20224,27 +16835,27 @@ func (x codecSelfer5519) decSlicePtrtoPoint(v *[]*Point, d *codec1978.Decoder) { yyc1 = true } yyh1.ElemContainerState(yyj1) - var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true - } if yydb1 { z.DecSwallow() } else { - if r.TryDecodeAsNil() { + if r.TryNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Point) } - yyv1[yyj1].CodecDecodeSelf(d) + if yyxt3 := z.Extension(yyv1[yyj1]); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + yyv1[yyj1].CodecDecodeSelf(d) + } } - } - } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] diff --git a/sql/gen.go b/sql/gen.go index 87c5594b..420cbeb5 100644 --- a/sql/gen.go +++ b/sql/gen.go @@ -18,5 +18,5 @@ package sql //go:generate tmpl -file=kill.gen.json kill.gen.go.tmpl //go:generate tmpl -file=rdwr.gen.json rdwr.gen.go.tmpl -//go:generate go get -u github.com/ugorji/go/codec/codecgen@v0.0.0-20181204163529-d75b2dcb6bc8 +//go:generate go get -u github.com/ugorji/go/codec/codecgen //go:generate codecgen -o ast.gen.go ast.go