From 4e79fb34f3f8e60b4f7420f8c25e9c20cb27e6c5 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 20 Nov 2019 14:16:56 +0000 Subject: [PATCH] Downgrade ugorji/codec --- db/db.gen.go | 665 +- db/gen.go | 2 +- go.mod | 18 +- go.sum | 41 +- kvs/rixxdb/main.go | 2 - sql/ast.gen.go | 18695 +++++++++++++++++++++++++++---------------- sql/gen.go | 2 +- 7 files changed, 12149 insertions(+), 7276 deletions(-) diff --git a/db/db.gen.go b/db/db.gen.go index 5568e6d4..eb326d90 100644 --- a/db/db.gen.go +++ b/db/db.gen.go @@ -1,5 +1,3 @@ -// +build go1.6 - // Code generated by codecgen - DO NOT EDIT. package db @@ -13,170 +11,216 @@ import ( const ( // ----- content types ---- - codecSelferCcUTF84653 = 1 - codecSelferCcRAW4653 = 255 + codecSelferCcUTF88369 = 1 + codecSelferCcRAW8369 = 255 // ----- value types used ---- - codecSelferValueTypeArray4653 = 10 - codecSelferValueTypeMap4653 = 9 - codecSelferValueTypeString4653 = 6 - codecSelferValueTypeInt4653 = 2 - codecSelferValueTypeUint4653 = 3 - codecSelferValueTypeFloat4653 = 4 - codecSelferValueTypeNil4653 = 1 - codecSelferBitsize4653 = uint8(32 << (^uint(0) >> 63)) - codecSelferDecContainerLenNil4653 = -2147483648 + codecSelferValueTypeArray8369 = 10 + codecSelferValueTypeMap8369 = 9 + codecSelferValueTypeString8369 = 6 + codecSelferValueTypeInt8369 = 2 + codecSelferValueTypeUint8369 = 3 + codecSelferValueTypeFloat8369 = 4 + codecSelferBitsize8369 = uint8(32 << (^uint(0) >> 63)) ) var ( - errCodecSelferOnlyMapOrArrayEncodeToStruct4653 = errors.New(`only encoded map or array can be decoded into a struct`) + errCodecSelferOnlyMapOrArrayEncodeToStruct8369 = errors.New(`only encoded map or array can be decoded into a struct`) ) -type codecSelfer4653 struct{} - -func codecSelfer4653False() bool { return false } +type codecSelfer8369 struct{} func init() { - if codec1978.GenVersion != 16 { + if codec1978.GenVersion != 10 { _, file, _, _ := runtime.Caller(0) - ver := strconv.FormatInt(int64(codec1978.GenVersion), 10) - panic("codecgen version mismatch: current: 16, need " + ver + ". Re-generate file: " + file) + 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 } } func (x *Response) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer4653 + var h codecSelfer8369 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } 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 { - z.EncWriteArrayStart(4) - z.EncWriteArrayElem() - if yyq2[0] { - r.EncodeString(string(x.Time)) - } else { - r.EncodeString("") - } - z.EncWriteArrayElem() - if yyq2[1] { - r.EncodeString(string(x.Status)) - } else { - r.EncodeString("") - } - z.EncWriteArrayElem() - if yyq2[2] { - r.EncodeString(string(x.Detail)) - } else { - r.EncodeString("") - } - 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 { - r.EncodeNil() - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - var yynn2 int - for _, b := range yyq2 { - if b { - yynn2++ + 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) + } else { + 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(codecSelferCcUTF88369, string(x.Time)) + } + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, "") + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"time\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, `time`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, string(x.Time)) + } } } - z.EncWriteMapStart(yynn2) - yynn2 = 0 - if yyq2[0] { - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"time\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, string(x.Status)) + } } else { - r.EncodeString(`time`) + r.EncodeStringEnc(codecSelferCcUTF88369, "") + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"status\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, `status`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, string(x.Status)) + } } - z.EncWriteMapElemValue() - r.EncodeString(string(x.Time)) } - if yyq2[1] { - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"status\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, string(x.Detail)) + } } else { - r.EncodeString(`status`) + r.EncodeStringEnc(codecSelferCcUTF88369, "") + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"detail\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, `detail`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, string(x.Detail)) + } } - z.EncWriteMapElemValue() - r.EncodeString(string(x.Status)) } - if yyq2[2] { - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"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 { - 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 + } + } else { + if yyq2[3] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"result\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, `result`) + } + r.WriteMapElemValue() + if x.Result == nil { + r.EncodeNil() + } else { + if false { + } else { + z.F.EncSliceIntfV(x.Result, e) + } + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapEnd() } } } func (x *Response) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer4653 + var h codecSelfer8369 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil4653 { - *(x) = Response{} - } else if yyct2 == codecSelferValueTypeMap4653 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray4653 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct4653) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap8369 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray8369 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8369) + } } } func (x *Response) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer4653 + var h codecSelfer8369 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -186,30 +230,50 @@ func (x *Response) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "time": - x.Time = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.Time = "" + } else { + x.Time = (string)(r.DecodeString()) + } case "status": - x.Status = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } case "detail": - x.Detail = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.Detail = "" + } else { + x.Detail = (string)(r.DecodeString()) + } case "result": - z.F.DecSliceIntfX(&x.Result, d) + if r.TryDecodeAsNil() { + x.Result = nil + } else { + if false { + } else { + 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 codecSelfer4653 + var h codecSelfer8369 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj9 int @@ -219,174 +283,241 @@ func (x *Response) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Time = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Time = "" + } else { + x.Time = (string)(r.DecodeString()) + } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Status = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = (string)(r.DecodeString()) + } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Detail = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Detail = "" + } else { + x.Detail = (string)(r.DecodeString()) + } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - z.F.DecSliceIntfX(&x.Result, d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Result = nil + } else { + if false { + } else { + z.F.DecSliceIntfX(&x.Result, d) + } + } for { yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj9-1, "") } + r.ReadArrayEnd() } func (x *Dispatch) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer4653 + var h codecSelfer8369 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } 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 { - 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() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - var yynn2 int - for _, b := range yyq2 { - if b { - yynn2++ - } + 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 } - z.EncWriteMapStart(yynn2) - yynn2 = 0 - if yyq2[0] { - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"query\"") + _ = yyq2 + if yyr2 || yy2arr2 { + r.WriteArrayStart(3) + } else { + 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(codecSelferCcUTF88369, string(x.Query)) + } } else { - r.EncodeString(`query`) + r.EncodeStringEnc(codecSelferCcUTF88369, "") + } + } else { + if yyq2[0] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"query\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, `query`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, string(x.Query)) + } } - z.EncWriteMapElemValue() - r.EncodeString(string(x.Query)) } - if yyq2[1] { - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"action\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[1] { + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, string(x.Action)) + } } else { - r.EncodeString(`action`) + r.EncodeStringEnc(codecSelferCcUTF88369, "") + } + } else { + if yyq2[1] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"action\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, `action`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, string(x.Action)) + } } - z.EncWriteMapElemValue() - r.EncodeString(string(x.Action)) } - if yyq2[2] { - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"result\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if yyq2[2] { + if x.Result == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Result) + } + } } else { - r.EncodeString(`result`) + r.EncodeNil() + } + } else { + if yyq2[2] { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"result\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF88369, `result`) + } + r.WriteMapElemValue() + if x.Result == nil { + r.EncodeNil() + } else { + if false { + } else { + z.EncFallback(x.Result) + } + } } - z.EncWriteMapElemValue() - z.EncFallback(x.Result) } - z.EncWriteMapEnd() + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } } } } func (x *Dispatch) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer4653 + var h codecSelfer8369 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil4653 { - *(x) = Dispatch{} - } else if yyct2 == codecSelferValueTypeMap4653 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray4653 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct4653) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap8369 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray8369 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8369) + } } } func (x *Dispatch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer4653 + var h codecSelfer8369 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -396,28 +527,44 @@ func (x *Dispatch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "query": - x.Query = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.Query = "" + } else { + x.Query = (string)(r.DecodeString()) + } case "action": - x.Action = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.Action = "" + } else { + x.Action = (string)(r.DecodeString()) + } case "result": - z.DecFallback(&x.Result, true) + if r.TryDecodeAsNil() { + x.Result = nil + } else { + if false { + } else { + 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 codecSelfer4653 + var h codecSelfer8369 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int @@ -427,49 +574,65 @@ func (x *Dispatch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Query = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Query = "" + } else { + x.Query = (string)(r.DecodeString()) + } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Action = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Action = "" + } else { + x.Action = (string)(r.DecodeString()) + } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - z.DecFallback(&x.Result, true) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Result = nil + } else { + if false { + } else { + z.DecFallback(&x.Result, true) + } + } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } + r.ReadArrayEnd() } diff --git a/db/gen.go b/db/gen.go index a7d04222..9fde5d5f 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 +//go:generate go get -u github.com/ugorji/go/codec/codecgen@v0.0.0-20181204163529-d75b2dcb6bc8 //go:generate codecgen -o db.gen.go db.go diff --git a/go.mod b/go.mod index 1eba6539..a4b1d60e 100644 --- a/go.mod +++ b/go.mod @@ -5,14 +5,14 @@ go 1.13 require ( 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-20191120130824-2807c02ac0d6 - github.com/abcum/rixxdb v0.0.0-20191008002349-42eb662df538 + github.com/abcum/fibre v0.0.0-20191120141235-91225f7e723a + github.com/abcum/rixxdb v0.0.0-20191031151827-f515482b89eb + github.com/abcum/tmpl v0.0.0-20190929092451-4b08f6027ed1 // indirect github.com/dgraph-io/ristretto v0.0.0-20191114170855-99d1bbbf28e6 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.0+incompatible - github.com/kr/pretty v0.1.0 // indirect + 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 @@ -21,12 +21,12 @@ require ( 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/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 + 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 v1.1.7 - golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc - golang.org/x/net v0.0.0-20191002035440-2ec189313ef0 + 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 - gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect + golang.org/x/tools v0.0.0-20191120001058-ad01d5993d97 // indirect ) diff --git a/go.sum b/go.sum index 99fa377e..4feceacb 100644 --- a/go.sum +++ b/go.sum @@ -5,10 +5,12 @@ github.com/abcum/bump v0.0.0-20190929092354-46a9c9dbf9ab h1:S7Bp0inII96zGek8nipo 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-20191120130824-2807c02ac0d6 h1:+gLEFhAtsOR8qveBk6GtPE57ymj8Fe9W1g5dSpJVRh4= -github.com/abcum/fibre v0.0.0-20191120130824-2807c02ac0d6/go.mod h1:jzcc78oww2LSmc2uFetv8rQ2XI7c6JtbFrOtS1mVdHQ= -github.com/abcum/rixxdb v0.0.0-20191008002349-42eb662df538 h1:y1Qj5WC/jAYWRQt/z00RCUB7XgFm7K5ej7S6lqE9whA= -github.com/abcum/rixxdb v0.0.0-20191008002349-42eb662df538/go.mod h1:6lIALuvT453ADA/5AFRXGLDNcc3sqIvt4ISaKyPeTLg= +github.com/abcum/fibre v0.0.0-20191120141235-91225f7e723a h1:nD0QoQQ03SUnDae0bqyNYj/IN0D6vovAjtwIr07U1PQ= +github.com/abcum/fibre v0.0.0-20191120141235-91225f7e723a/go.mod h1:+eFxgfBo6LCF13y5Eq3+ElYlHebIGIf4bBaqP2z83yo= +github.com/abcum/rixxdb v0.0.0-20191031151827-f515482b89eb h1:XsphbsOLSH4V01atOtRwMxRePRCvT5yuZtdMcKkE+2k= +github.com/abcum/rixxdb v0.0.0-20191031151827-f515482b89eb/go.mod h1:6lIALuvT453ADA/5AFRXGLDNcc3sqIvt4ISaKyPeTLg= +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/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= @@ -32,19 +34,14 @@ github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORR 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/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hjson/hjson-go v3.0.0+incompatible h1:mc8olpIxqF8mrEx6ePJOD6wCCOkX7+JcrKgINcJES10= -github.com/hjson/hjson-go v3.0.0+incompatible/go.mod h1:qsetwF8NlsTsOTwZTApNlTCerV+b2GjYRRcIk4JMFio= +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/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= 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/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/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= @@ -79,8 +76,9 @@ 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/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 h1:WN9BUFbdyOsSH/XohnWpXOlq9NBD5sGAB2FciQMUEe8= github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +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/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= @@ -96,20 +94,24 @@ github.com/stackimpact/stackimpact-go v2.3.10+incompatible/go.mod h1:Seecan0KCHJ 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 v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= +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/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/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-20191002192127-34f69633bfdc h1:c0o/qxkaO2LF5t6fQrT4b5hzyggAkLLlCUjqfRxd8Q4= -golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc/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/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20191002035440-2ec189313ef0 h1:2mqDk8w/o6UmeUCu5Qiq2y7iMf6anbx+YA8d1JFoFrs= -golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +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/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/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= @@ -120,8 +122,11 @@ golang.org/x/text v0.3.0/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/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +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-20191120001058-ad01d5993d97 h1:u8hSFDulpuhoY0GHMbG6Rp23PzphtTnZrQX3dOvEae0= +golang.org/x/tools v0.0.0-20191120001058-ad01d5993d97/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/kvs/rixxdb/main.go b/kvs/rixxdb/main.go index 58fffc27..9d22a361 100644 --- a/kvs/rixxdb/main.go +++ b/kvs/rixxdb/main.go @@ -36,8 +36,6 @@ func init() { FlushPolicy: opts.DB.Proc.Flush, // Set the shrink offset duration ShrinkPolicy: opts.DB.Proc.Shrink, - // Don't wait for syncing if shrinking - IgnorePolicyWhenShrinking: true, }) if err != nil { diff --git a/sql/ast.gen.go b/sql/ast.gen.go index e620e389..c6da2c9c 100644 --- a/sql/ast.gen.go +++ b/sql/ast.gen.go @@ -1,5 +1,3 @@ -// +build go1.6 - // Code generated by codecgen - DO NOT EDIT. package sql @@ -15,98 +13,118 @@ import ( const ( // ----- content types ---- - codecSelferCcUTF87834 = 1 - codecSelferCcRAW7834 = 255 + codecSelferCcUTF8216 = 1 + codecSelferCcRAW216 = 255 // ----- value types used ---- - codecSelferValueTypeArray7834 = 10 - codecSelferValueTypeMap7834 = 9 - codecSelferValueTypeString7834 = 6 - codecSelferValueTypeInt7834 = 2 - codecSelferValueTypeUint7834 = 3 - codecSelferValueTypeFloat7834 = 4 - codecSelferValueTypeNil7834 = 1 - codecSelferBitsize7834 = uint8(32 << (^uint(0) >> 63)) - codecSelferDecContainerLenNil7834 = -2147483648 + codecSelferValueTypeArray216 = 10 + codecSelferValueTypeMap216 = 9 + codecSelferValueTypeString216 = 6 + codecSelferValueTypeInt216 = 2 + codecSelferValueTypeUint216 = 3 + codecSelferValueTypeFloat216 = 4 + codecSelferBitsize216 = uint8(32 << (^uint(0) >> 63)) ) var ( - errCodecSelferOnlyMapOrArrayEncodeToStruct7834 = errors.New(`only encoded map or array can be decoded into a struct`) + errCodecSelferOnlyMapOrArrayEncodeToStruct216 = errors.New(`only encoded map or array can be decoded into a struct`) ) -type codecSelfer7834 struct{} - -func codecSelfer7834False() bool { return false } +type codecSelfer216 struct{} func init() { - if codec1978.GenVersion != 16 { + if codec1978.GenVersion != 10 { _, file, _, _ := runtime.Caller(0) - ver := strconv.FormatInt(int64(codec1978.GenVersion), 10) - panic("codecgen version mismatch: current: 16, need " + ver + ". Re-generate file: " + file) + panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(codec1978.GenVersion), 10) + ". Re-generate file: " + file) } - if false { // reference the types, but skip this branch at build/run time - var _ pkg1_language.Tag - var _ time.Duration + 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 } } func (x *Query) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - x.Statements.CodecEncodeSelf(e) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Statements\"") + 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.EncodeString(`Statements`) + r.WriteMapStart(1) + } + 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(codecSelferCcUTF8216, `Statements`) + } + r.WriteMapElemValue() + if x.Statements == nil { + r.EncodeNil() + } else { + x.Statements.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - x.Statements.CodecEncodeSelf(e) - z.EncWriteMapEnd() } } } func (x *Query) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Query{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Query) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -116,24 +134,29 @@ func (x *Query) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Statements": - x.Statements.CodecDecodeSelf(d) + if r.TryDecodeAsNil() { + x.Statements = nil + } else { + x.Statements.CodecDecodeSelf(d) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 + r.ReadMapEnd() } func (x *Query) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -143,115 +166,160 @@ func (x *Query) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Statements.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Statements = nil + } else { + x.Statements.CodecDecodeSelf(d) + } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x Statements) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encStatements((Statements)(x), e) - } // end block: if x slice == nil + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encStatements((Statements)(x), e) + } + } } func (x *Statements) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decStatements((*Statements)(x), d) + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decStatements((*Statements)(x), d) + } } func (x *UseStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"NS\"") + 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.EncodeString(`NS`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - r.EncodeString(string(x.NS)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"DB\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.NS)) + } } else { - r.EncodeString(`DB`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `NS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.NS)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.DB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `DB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.DB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - r.EncodeString(string(x.DB)) - z.EncWriteMapEnd() } } } func (x *UseStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = UseStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *UseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -261,26 +329,35 @@ func (x *UseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "NS": - x.NS = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.NS = "" + } else { + x.NS = (string)(r.DecodeString()) + } case "DB": - x.DB = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.DB = "" + } else { + x.DB = (string)(r.DecodeString()) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 + r.ReadMapEnd() } func (x *UseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -290,109 +367,148 @@ func (x *UseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.NS = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.NS = "" + } else { + x.NS = (string)(r.DecodeString()) + } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.DB = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.DB = "" + } else { + x.DB = (string)(r.DecodeString()) + } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *OptStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - r.EncodeString(string(x.Name)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Name)) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, 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(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.What)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.What)) - z.EncWriteMapEnd() } } } func (x *OptStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = OptStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *OptStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -402,26 +518,35 @@ func (x *OptStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - x.Name = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } case "What": - x.What = (bool)(r.DecodeBool()) + if r.TryDecodeAsNil() { + x.What = false + } else { + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -431,89 +556,110 @@ func (x *OptStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Name = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = false + } else { + x.What = (bool)(r.DecodeBool()) + } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *BeginStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(0) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(0) - z.EncWriteMapEnd() + 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 *BeginStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = BeginStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *BeginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -523,22 +669,23 @@ func (x *BeginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int @@ -549,64 +696,77 @@ func (x *BeginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl4 { yyb4 = yyj4 > l } else { - yyb4 = z.DecCheckBreak() + yyb4 = r.CheckBreak() } if yyb4 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } + r.ReadArrayEnd() } func (x *CancelStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(0) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(0) - z.EncWriteMapEnd() + 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 *CancelStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = CancelStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *CancelStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -616,22 +776,23 @@ func (x *CancelStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int @@ -642,64 +803,77 @@ func (x *CancelStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl4 { yyb4 = yyj4 > l } else { - yyb4 = z.DecCheckBreak() + yyb4 = r.CheckBreak() } if yyb4 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } + r.ReadArrayEnd() } func (x *CommitStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(0) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(0) - z.EncWriteMapEnd() + 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 *CommitStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = CommitStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *CommitStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -709,22 +883,23 @@ func (x *CommitStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int @@ -735,110 +910,144 @@ func (x *CommitStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl4 { yyb4 = yyj4 > l } else { - yyb4 = z.DecCheckBreak() + yyb4 = r.CheckBreak() } if yyb4 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } + r.ReadArrayEnd() } func (x *InfoStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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(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)) - } - if yyn4 { - z.EncWriteArrayElem() - r.EncodeNil() - } else { - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Kind\"") + 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.EncodeString(`Kind`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - if yyxt7 := z.Extension(z.I2Rtid(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) + 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.EncodeInt(int64(x.Kind)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + 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) + } + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemValue() - if yyn4 { - r.EncodeNil() + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - x.What.CodecEncodeSelf(e) + r.WriteMapEnd() } - z.EncWriteMapEnd() } } } func (x *InfoStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = InfoStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *InfoStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -848,41 +1057,48 @@ func (x *InfoStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Kind": - if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.DecExtension(x.Kind, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) + if r.TryDecodeAsNil() { + x.Kind = 0 } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 "What": - if r.TryNil() { - if x.What != nil { // remove the if-true + 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 *InfoStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int @@ -892,39 +1108,45 @@ func (x *InfoStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt9 := z.Extension(z.I2Rtid(x.Kind)); yyxt9 != nil { - z.DecExtension(x.Kind, yyxt9) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Kind = 0 } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.What != nil { // remove the if-true + 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 { @@ -932,92 +1154,127 @@ func (x *InfoStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } + r.ReadArrayEnd() } func (x *RunStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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(z.I2Rtid(x.Expr)); yyxt6 != nil { - z.EncExtension(x.Expr, yyxt6) - } else { - z.EncFallback(x.Expr) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RW\"") + 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.EncodeString(`RW`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.RW)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.RW)) + } } else { - r.EncodeString(`Expr`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RW\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `RW`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.RW)) + } } - z.EncWriteMapElemValue() - if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { - z.EncExtension(x.Expr, yyxt8) + 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 { - z.EncFallback(x.Expr) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *RunStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = RunStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *RunStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -1027,30 +1284,40 @@ func (x *RunStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "RW": - x.RW = (bool)(r.DecodeBool()) - case "Expr": - if yyxt6 := z.Extension(z.I2Rtid(x.Expr)); yyxt6 != nil { - z.DecExtension(x.Expr, yyxt6) + if r.TryDecodeAsNil() { + x.RW = false } else { - z.DecFallback(&x.Expr, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int @@ -1060,141 +1327,201 @@ func (x *RunStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.RW = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RW = false + } else { + x.RW = (bool)(r.DecodeBool()) + } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt10 := z.Extension(z.I2Rtid(x.Expr)); yyxt10 != nil { - z.DecExtension(x.Expr, yyxt10) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Expr = nil } else { - z.DecFallback(&x.Expr, true) + 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 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } + r.ReadArrayEnd() } func (x *LetStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.What)); yyxt8 != nil { - z.EncExtension(x.What, yyxt8) - } else { - z.EncFallback(x.What) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(3) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RW\"") + 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.EncodeString(`RW`) + r.WriteMapStart(3) } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.RW)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.RW)) + } } else { - r.EncodeString(`Name`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RW\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `RW`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.RW)) + } } - z.EncWriteMapElemValue() - if yyn4 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + 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.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt11 := z.Extension(z.I2Rtid(x.What)); yyxt11 != nil { - z.EncExtension(x.What, yyxt11) + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - z.EncFallback(x.What) + r.WriteMapEnd() } - z.EncWriteMapEnd() } } } func (x *LetStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = LetStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *LetStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -1204,41 +1531,52 @@ func (x *LetStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "RW": - x.RW = (bool)(r.DecodeBool()) + if r.TryDecodeAsNil() { + x.RW = false + } else { + x.RW = (bool)(r.DecodeBool()) + } case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 yyxt7 := z.Extension(z.I2Rtid(x.What)); yyxt7 != nil { - z.DecExtension(x.What, yyxt7) + if r.TryDecodeAsNil() { + x.What = nil } else { - z.DecFallback(&x.What, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int @@ -1248,212 +1586,326 @@ func (x *LetStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.RW = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RW = false + } else { + x.RW = (bool)(r.DecodeBool()) + } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt12 := z.Extension(z.I2Rtid(x.What)); yyxt12 != nil { - z.DecExtension(x.What, yyxt12) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil } else { - z.DecFallback(&x.What, true) + if false { + } else if yyxt12 := z.Extension(z.I2Rtid(x.What)); yyxt12 != nil { + z.DecExtension(x.What, yyxt12) + } else { + z.DecFallback(&x.What, true) + } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } + r.ReadArrayEnd() } func (x *LiveStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Expr.CodecEncodeSelf(e) - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt19 := z.Extension(z.I2Rtid(x.Cond)); yyxt19 != nil { - z.EncExtension(x.Cond, yyxt19) - } else { - z.EncFallback(x.Cond) - } - z.EncWriteArrayElem() - x.Fetch.CodecEncodeSelf(e) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(9) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"ID\"") + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(9) } else { - r.EncodeString(`ID`) + r.WriteMapStart(9) } - z.EncWriteMapElemValue() - r.EncodeString(string(x.ID)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"FB\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.ID)) + } } else { - r.EncodeString(`FB`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"ID\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `ID`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.ID)) + } } - z.EncWriteMapElemValue() - r.EncodeString(string(x.FB)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"NS\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.FB)) + } } else { - r.EncodeString(`NS`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `FB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.FB)) + } } - z.EncWriteMapElemValue() - r.EncodeString(string(x.NS)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"DB\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.NS)) + } } else { - r.EncodeString(`DB`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"NS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `NS`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.NS)) + } } - z.EncWriteMapElemValue() - r.EncodeString(string(x.DB)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Diff\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.DB)) + } } else { - r.EncodeString(`Diff`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"DB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `DB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.DB)) + } } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Diff)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Diff)) + } } else { - r.EncodeString(`Expr`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Diff\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Diff`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Diff)) + } } - z.EncWriteMapElemValue() - x.Expr.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Expr == nil { + r.EncodeNil() + } else { + x.Expr.CodecEncodeSelf(e) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Expr`) + } + r.WriteMapElemValue() + if x.Expr == nil { + r.EncodeNil() + } else { + x.Expr.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Cond`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - if yyxt28 := z.Extension(z.I2Rtid(x.Cond)); yyxt28 != nil { - z.EncExtension(x.Cond, yyxt28) + 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 { - z.EncFallback(x.Cond) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Fetch\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Fetch == nil { + r.EncodeNil() + } else { + x.Fetch.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Fetch`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fetch\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Fetch`) + } + r.WriteMapElemValue() + if x.Fetch == nil { + r.EncodeNil() + } else { + x.Fetch.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - x.Fetch.CodecEncodeSelf(e) - z.EncWriteMapEnd() } } } func (x *LiveStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = LiveStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *LiveStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -1463,44 +1915,82 @@ func (x *LiveStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { 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": - x.Expr.CodecDecodeSelf(d) - case "What": - x.What.CodecDecodeSelf(d) - case "Cond": - if yyxt12 := z.Extension(z.I2Rtid(x.Cond)); yyxt12 != nil { - z.DecExtension(x.Cond, yyxt12) + if r.TryDecodeAsNil() { + x.ID = "" } else { - z.DecFallback(&x.Cond, true) + 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 "Expr": + if r.TryDecodeAsNil() { + x.Expr = nil + } 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": - x.Fetch.CodecDecodeSelf(d) + if r.TryDecodeAsNil() { + x.Fetch = nil + } else { + x.Fetch.CodecDecodeSelf(d) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 + r.ReadMapEnd() } func (x *LiveStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj14 int @@ -1510,197 +2000,267 @@ func (x *LiveStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl14 { yyb14 = yyj14 > l } else { - yyb14 = z.DecCheckBreak() + yyb14 = r.CheckBreak() } if yyb14 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.ID = (string)(string(r.DecodeStringAsBytes())) - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = "" } else { - yyb14 = z.DecCheckBreak() - } - if yyb14 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.FB = (string)(string(r.DecodeStringAsBytes())) - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = z.DecCheckBreak() - } - if yyb14 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.NS = (string)(string(r.DecodeStringAsBytes())) - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = z.DecCheckBreak() - } - if yyb14 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.DB = (string)(string(r.DecodeStringAsBytes())) - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = z.DecCheckBreak() - } - if yyb14 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.Diff = (bool)(r.DecodeBool()) - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = z.DecCheckBreak() - } - if yyb14 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.Expr.CodecDecodeSelf(d) - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = z.DecCheckBreak() - } - if yyb14 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l - } else { - yyb14 = z.DecCheckBreak() - } - if yyb14 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt23 := z.Extension(z.I2Rtid(x.Cond)); yyxt23 != nil { - z.DecExtension(x.Cond, yyxt23) - } else { - z.DecFallback(&x.Cond, true) + x.ID = (string)(r.DecodeString()) } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { - yyb14 = z.DecCheckBreak() + yyb14 = r.CheckBreak() } if yyb14 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Fetch.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FB = "" + } 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) + } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { - yyb14 = z.DecCheckBreak() + yyb14 = r.CheckBreak() } if yyb14 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj14-1, "") } + r.ReadArrayEnd() } func (x *KillStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(2) - z.EncWriteArrayElem() - r.EncodeString(string(x.FB)) - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"FB\"") + 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.EncodeString(`FB`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - r.EncodeString(string(x.FB)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.FB)) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"FB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `FB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.FB)) + } + } + 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(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapEnd() } } } func (x *KillStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = KillStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *KillStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -1710,26 +2270,35 @@ func (x *KillStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "FB": - x.FB = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.FB = "" + } else { + x.FB = (string)(r.DecodeString()) + } case "What": - x.What.CodecDecodeSelf(d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -1739,109 +2308,150 @@ func (x *KillStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.FB = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.FB = "" + } else { + x.FB = (string)(r.DecodeString()) + } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil + } else { + x.What.CodecDecodeSelf(d) + } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *ReturnStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(2) - z.EncWriteArrayElem() - r.EncodeBool(bool(x.RW)) - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RW\"") + 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.EncodeString(`RW`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.RW)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.RW)) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RW\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapEnd() } } } func (x *ReturnStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = ReturnStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *ReturnStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -1851,26 +2461,35 @@ func (x *ReturnStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "RW": - x.RW = (bool)(r.DecodeBool()) + if r.TryDecodeAsNil() { + x.RW = false + } else { + x.RW = (bool)(r.DecodeBool()) + } case "What": - x.What.CodecDecodeSelf(d) + 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 *ReturnStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -1880,137 +2499,202 @@ func (x *ReturnStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.RW = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RW = false + } else { + x.RW = (bool)(r.DecodeBool()) + } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil + } else { + x.What.CodecDecodeSelf(d) + } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *IfelseStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(4) - z.EncWriteArrayElem() - r.EncodeBool(bool(x.RW)) - z.EncWriteArrayElem() - x.Cond.CodecEncodeSelf(e) - z.EncWriteArrayElem() - x.Then.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt10 := z.Extension(z.I2Rtid(x.Else)); yyxt10 != nil { - z.EncExtension(x.Else, yyxt10) - } else { - z.EncFallback(x.Else) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(4) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RW\"") + 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.EncodeString(`RW`) + r.WriteMapStart(4) } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.RW)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.RW)) + } } else { - r.EncodeString(`Cond`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RW\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `RW`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.RW)) + } } - z.EncWriteMapElemValue() - x.Cond.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Then\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Cond == nil { + r.EncodeNil() + } else { + x.Cond.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Then`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Cond`) + } + r.WriteMapElemValue() + if x.Cond == nil { + r.EncodeNil() + } else { + x.Cond.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.Then.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Else\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Then == nil { + r.EncodeNil() + } else { + x.Then.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Else`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Then\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Then`) + } + r.WriteMapElemValue() + if x.Then == nil { + r.EncodeNil() + } else { + x.Then.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - if yyxt14 := z.Extension(z.I2Rtid(x.Else)); yyxt14 != nil { - z.EncExtension(x.Else, yyxt14) + 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 { - z.EncFallback(x.Else) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Else\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *IfelseStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = IfelseStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *IfelseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -2020,34 +2704,52 @@ func (x *IfelseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "RW": - x.RW = (bool)(r.DecodeBool()) - case "Cond": - x.Cond.CodecDecodeSelf(d) - case "Then": - x.Then.CodecDecodeSelf(d) - case "Else": - if yyxt8 := z.Extension(z.I2Rtid(x.Else)); yyxt8 != nil { - z.DecExtension(x.Else, yyxt8) + if r.TryDecodeAsNil() { + x.RW = false } else { - z.DecFallback(&x.Else, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj9 int @@ -2057,287 +2759,458 @@ func (x *IfelseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.RW = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RW = false + } else { + x.RW = (bool)(r.DecodeBool()) + } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Cond.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cond = nil + } else { + x.Cond.CodecDecodeSelf(d) + } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Then.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Then = nil + } else { + x.Then.CodecDecodeSelf(d) + } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt14 := z.Extension(z.I2Rtid(x.Else)); yyxt14 != nil { - z.DecExtension(x.Else, yyxt14) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Else = nil } else { - z.DecFallback(&x.Else, true) + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(x.Else)); yyxt14 != nil { + z.DecExtension(x.Else, yyxt14) + } else { + z.DecFallback(&x.Else, true) + } } for { yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj9-1, "") } + r.ReadArrayEnd() } func (x *SelectStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(13) - z.EncWriteArrayElem() - r.EncodeBool(bool(x.RW)) - z.EncWriteArrayElem() - x.Expr.CodecEncodeSelf(e) - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt19 := z.Extension(z.I2Rtid(x.Cond)); yyxt19 != nil { - z.EncExtension(x.Cond, yyxt19) - } else { - z.EncFallback(x.Cond) - } - z.EncWriteArrayElem() - x.Split.CodecEncodeSelf(e) - z.EncWriteArrayElem() - x.Group.CodecEncodeSelf(e) - z.EncWriteArrayElem() - x.Order.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt23 := z.Extension(z.I2Rtid(x.Limit)); yyxt23 != nil { - z.EncExtension(x.Limit, yyxt23) - } else { - z.EncFallback(x.Limit) - } - z.EncWriteArrayElem() - if yyxt24 := z.Extension(z.I2Rtid(x.Start)); yyxt24 != nil { - z.EncExtension(x.Start, yyxt24) - } else { - z.EncFallback(x.Start) - } - z.EncWriteArrayElem() - x.Fetch.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt26 := z.Extension(z.I2Rtid(x.Version)); yyxt26 != nil { - z.EncExtension(x.Version, yyxt26) - } else { - z.EncFallback(x.Version) - } - z.EncWriteArrayElem() - if yyxt27 := z.Extension(z.I2Rtid(x.Timeout)); yyxt27 != nil { - z.EncExtension(x.Timeout, yyxt27) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteArrayElem() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(13) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RW\"") + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(13) } else { - r.EncodeString(`RW`) + r.WriteMapStart(13) } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.RW)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.RW)) + } } else { - r.EncodeString(`Expr`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RW\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `RW`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.RW)) + } } - z.EncWriteMapElemValue() - x.Expr.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Expr == nil { + r.EncodeNil() + } else { + x.Expr.CodecEncodeSelf(e) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Expr`) + } + r.WriteMapElemValue() + if x.Expr == nil { + r.EncodeNil() + } else { + x.Expr.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Cond`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - if yyxt32 := z.Extension(z.I2Rtid(x.Cond)); yyxt32 != nil { - z.EncExtension(x.Cond, yyxt32) + 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) + } + } } else { - z.EncFallback(x.Cond) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Split\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Split == nil { + r.EncodeNil() + } else { + x.Split.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Split`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Split\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Split`) + } + r.WriteMapElemValue() + if x.Split == nil { + r.EncodeNil() + } else { + x.Split.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.Split.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Group\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Group == nil { + r.EncodeNil() + } else { + x.Group.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Group`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Group\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Group`) + } + r.WriteMapElemValue() + if x.Group == nil { + r.EncodeNil() + } else { + x.Group.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.Group.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Order\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Order == nil { + r.EncodeNil() + } else { + x.Order.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Order`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Order\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Order`) + } + r.WriteMapElemValue() + if x.Order == nil { + r.EncodeNil() + } else { + x.Order.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.Order.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Limit\"") + 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) + } + } } else { - r.EncodeString(`Limit`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Limit\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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.EncWriteMapElemValue() - if yyxt36 := z.Extension(z.I2Rtid(x.Limit)); yyxt36 != nil { - z.EncExtension(x.Limit, yyxt36) + 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) + } + } } else { - z.EncFallback(x.Limit) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Start\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Start\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Fetch == nil { + r.EncodeNil() + } else { + x.Fetch.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Start`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Fetch\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Fetch`) + } + r.WriteMapElemValue() + if x.Fetch == nil { + r.EncodeNil() + } else { + x.Fetch.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - if yyxt37 := z.Extension(z.I2Rtid(x.Start)); yyxt37 != nil { - z.EncExtension(x.Start, yyxt37) + 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 { - z.EncFallback(x.Start) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Version\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Fetch\"") + 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.EncodeString(`Fetch`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemValue() - x.Fetch.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Version\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } else { - r.EncodeString(`Version`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Parallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Parallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } - z.EncWriteMapElemValue() - if yyxt39 := z.Extension(z.I2Rtid(x.Version)); yyxt39 != nil { - z.EncExtension(x.Version, yyxt39) + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - z.EncFallback(x.Version) + r.WriteMapEnd() } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") - } else { - r.EncodeString(`Timeout`) - } - z.EncWriteMapElemValue() - if yyxt40 := z.Extension(z.I2Rtid(x.Timeout)); yyxt40 != nil { - z.EncExtension(x.Timeout, yyxt40) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Parallel\"") - } else { - r.EncodeString(`Parallel`) - } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteMapEnd() } } } func (x *SelectStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = SelectStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *SelectStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -2347,68 +3220,126 @@ func (x *SelectStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "RW": - x.RW = (bool)(r.DecodeBool()) - case "Expr": - x.Expr.CodecDecodeSelf(d) - case "What": - x.What.CodecDecodeSelf(d) - case "Cond": - if yyxt8 := z.Extension(z.I2Rtid(x.Cond)); yyxt8 != nil { - z.DecExtension(x.Cond, yyxt8) + if r.TryDecodeAsNil() { + x.RW = false } else { - z.DecFallback(&x.Cond, true) + x.RW = (bool)(r.DecodeBool()) + } + case "Expr": + if r.TryDecodeAsNil() { + x.Expr = nil + } 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 yyxt8 := z.Extension(z.I2Rtid(x.Cond)); yyxt8 != nil { + z.DecExtension(x.Cond, yyxt8) + } else { + z.DecFallback(&x.Cond, true) + } } case "Split": - x.Split.CodecDecodeSelf(d) - case "Group": - x.Group.CodecDecodeSelf(d) - case "Order": - x.Order.CodecDecodeSelf(d) - case "Limit": - if yyxt13 := z.Extension(z.I2Rtid(x.Limit)); yyxt13 != nil { - z.DecExtension(x.Limit, yyxt13) + if r.TryDecodeAsNil() { + x.Split = nil } else { - z.DecFallback(&x.Limit, true) + 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 yyxt15 := z.Extension(z.I2Rtid(x.Start)); yyxt15 != nil { - z.DecExtension(x.Start, yyxt15) + if r.TryDecodeAsNil() { + x.Start = nil } else { - z.DecFallback(&x.Start, true) + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.Start)); yyxt15 != nil { + z.DecExtension(x.Start, yyxt15) + } else { + z.DecFallback(&x.Start, true) + } } case "Fetch": - x.Fetch.CodecDecodeSelf(d) - case "Version": - if yyxt18 := z.Extension(z.I2Rtid(x.Version)); yyxt18 != nil { - z.DecExtension(x.Version, yyxt18) + if r.TryDecodeAsNil() { + x.Fetch = nil } else { - z.DecFallback(&x.Version, true) + 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 yyxt20 := z.Extension(z.I2Rtid(x.Timeout)); yyxt20 != nil { - z.DecExtension(x.Timeout, yyxt20) + if r.TryDecodeAsNil() { + x.Timeout = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + 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()) + } } case "Parallel": - x.Parallel = (bool)(r.DecodeBool()) + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 + r.ReadMapEnd() } func (x *SelectStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj22 int @@ -2418,323 +3349,436 @@ func (x *SelectStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl22 { yyb22 = yyj22 > l } else { - yyb22 = z.DecCheckBreak() + yyb22 = r.CheckBreak() } if yyb22 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.RW = (bool)(r.DecodeBool()) - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RW = false } else { - yyb22 = z.DecCheckBreak() - } - if yyb22 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.Expr.CodecDecodeSelf(d) - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = z.DecCheckBreak() - } - if yyb22 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = z.DecCheckBreak() - } - if yyb22 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt27 := z.Extension(z.I2Rtid(x.Cond)); yyxt27 != nil { - z.DecExtension(x.Cond, yyxt27) - } else { - z.DecFallback(&x.Cond, true) + x.RW = (bool)(r.DecodeBool()) } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { - yyb22 = z.DecCheckBreak() + yyb22 = r.CheckBreak() } if yyb22 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Split.CodecDecodeSelf(d) - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Expr = nil } else { - yyb22 = z.DecCheckBreak() - } - if yyb22 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.Group.CodecDecodeSelf(d) - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = z.DecCheckBreak() - } - if yyb22 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.Order.CodecDecodeSelf(d) - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l - } else { - yyb22 = z.DecCheckBreak() - } - if yyb22 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt32 := z.Extension(z.I2Rtid(x.Limit)); yyxt32 != nil { - z.DecExtension(x.Limit, yyxt32) - } else { - z.DecFallback(&x.Limit, true) + x.Expr.CodecDecodeSelf(d) } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { - yyb22 = z.DecCheckBreak() + yyb22 = r.CheckBreak() } if yyb22 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt34 := z.Extension(z.I2Rtid(x.Start)); yyxt34 != nil { - z.DecExtension(x.Start, yyxt34) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil } else { - z.DecFallback(&x.Start, true) + x.What.CodecDecodeSelf(d) } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { - yyb22 = z.DecCheckBreak() + yyb22 = r.CheckBreak() } if yyb22 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Fetch.CodecDecodeSelf(d) - yyj22++ - if yyhl22 { - yyb22 = yyj22 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cond = nil } else { - yyb22 = z.DecCheckBreak() - } - if yyb22 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt37 := z.Extension(z.I2Rtid(x.Version)); yyxt37 != nil { - z.DecExtension(x.Version, yyxt37) - } else { - z.DecFallback(&x.Version, true) + if false { + } else if yyxt27 := z.Extension(z.I2Rtid(x.Cond)); yyxt27 != nil { + z.DecExtension(x.Cond, yyxt27) + } else { + z.DecFallback(&x.Cond, true) + } } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { - yyb22 = z.DecCheckBreak() + yyb22 = r.CheckBreak() } if yyb22 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt39 := z.Extension(z.I2Rtid(x.Timeout)); yyxt39 != nil { - z.DecExtension(x.Timeout, yyxt39) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Split = nil } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + x.Split.CodecDecodeSelf(d) } yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { - yyb22 = z.DecCheckBreak() + yyb22 = r.CheckBreak() } if yyb22 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Parallel = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Group = nil + } else { + x.Group.CodecDecodeSelf(d) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Order = nil + } else { + x.Order.CodecDecodeSelf(d) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Limit = nil + } else { + if false { + } else if yyxt32 := z.Extension(z.I2Rtid(x.Limit)); yyxt32 != nil { + z.DecExtension(x.Limit, yyxt32) + } else { + z.DecFallback(&x.Limit, true) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Start = nil + } else { + if false { + } else if yyxt34 := z.Extension(z.I2Rtid(x.Start)); yyxt34 != nil { + z.DecExtension(x.Start, yyxt34) + } else { + z.DecFallback(&x.Start, true) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Fetch = nil + } else { + x.Fetch.CodecDecodeSelf(d) + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Version = nil + } else { + if false { + } else if yyxt37 := z.Extension(z.I2Rtid(x.Version)); yyxt37 != nil { + z.DecExtension(x.Version, yyxt37) + } else { + z.DecFallback(&x.Version, true) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt39 := z.Extension(z.I2Rtid(x.Timeout)); yyxt39 != nil { + z.DecExtension(x.Timeout, yyxt39) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj22++ + if yyhl22 { + yyb22 = yyj22 > l + } else { + yyb22 = r.CheckBreak() + } + if yyb22 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } for { yyj22++ if yyhl22 { yyb22 = yyj22 > l } else { - yyb22 = z.DecCheckBreak() + yyb22 = r.CheckBreak() } if yyb22 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj22-1, "") } + r.ReadArrayEnd() } func (x *CreateStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(5) - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt9 := z.Extension(z.I2Rtid(x.Data)); yyxt9 != nil { - z.EncExtension(x.Data, yyxt9) - } else { - z.EncFallback(x.Data) - } - z.EncWriteArrayElem() - 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)) - } - z.EncWriteArrayElem() - if yyxt11 := z.Extension(z.I2Rtid(x.Timeout)); yyxt11 != nil { - z.EncExtension(x.Timeout, yyxt11) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteArrayElem() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(5) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + 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.EncodeString(`What`) + r.WriteMapStart(5) } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Data`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - if yyxt14 := z.Extension(z.I2Rtid(x.Data)); yyxt14 != nil { - z.EncExtension(x.Data, yyxt14) + 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 { - z.EncFallback(x.Data) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Echo\"") + 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.EncodeString(`Echo`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemValue() - if yyxt15 := z.Extension(z.I2Rtid(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) + 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.EncodeInt(int64(x.Echo)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } else { - r.EncodeString(`Timeout`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Parallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Parallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } - z.EncWriteMapElemValue() - if yyxt16 := z.Extension(z.I2Rtid(x.Timeout)); yyxt16 != nil { - z.EncExtension(x.Timeout, yyxt16) + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeInt(int64(x.Timeout)) + r.WriteMapEnd() } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Parallel\"") - } else { - r.EncodeString(`Parallel`) - } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteMapEnd() } } } func (x *CreateStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = CreateStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *CreateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -2744,46 +3788,70 @@ func (x *CreateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "What": - x.What.CodecDecodeSelf(d) - case "Data": - if yyxt6 := z.Extension(z.I2Rtid(x.Data)); yyxt6 != nil { - z.DecExtension(x.Data, yyxt6) + if r.TryDecodeAsNil() { + x.What = nil } else { - z.DecFallback(&x.Data, true) + 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 yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { - z.DecExtension(x.Echo, yyxt8) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) + if r.TryDecodeAsNil() { + x.Echo = 0 } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { - z.DecExtension(x.Timeout, yyxt10) + if r.TryDecodeAsNil() { + x.Timeout = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + 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()) + } } case "Parallel": - x.Parallel = (bool)(r.DecodeBool()) + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 + r.ReadMapEnd() } func (x *CreateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj12 int @@ -2793,239 +3861,331 @@ func (x *CreateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil } else { - yyb12 = z.DecCheckBreak() - } - if yyb12 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt15 := z.Extension(z.I2Rtid(x.Data)); yyxt15 != nil { - z.DecExtension(x.Data, yyxt15) - } else { - z.DecFallback(&x.Data, true) + x.What.CodecDecodeSelf(d) } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt17 := z.Extension(z.I2Rtid(x.Echo)); yyxt17 != nil { - z.DecExtension(x.Echo, yyxt17) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.Data)); yyxt15 != nil { + z.DecExtension(x.Data, yyxt15) + } else { + z.DecFallback(&x.Data, true) + } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt19 := z.Extension(z.I2Rtid(x.Timeout)); yyxt19 != nil { - z.DecExtension(x.Timeout, yyxt19) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Echo = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.Echo)); yyxt17 != nil { + z.DecExtension(x.Echo, yyxt17) + } 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() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Parallel = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.Timeout)); yyxt19 != nil { + z.DecExtension(x.Timeout, yyxt19) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj12-1, "") } + r.ReadArrayEnd() } func (x *UpdateStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(6) - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt10 := z.Extension(z.I2Rtid(x.Data)); yyxt10 != nil { - z.EncExtension(x.Data, yyxt10) - } else { - z.EncFallback(x.Data) - } - z.EncWriteArrayElem() - if yyxt11 := z.Extension(z.I2Rtid(x.Cond)); yyxt11 != nil { - z.EncExtension(x.Cond, yyxt11) - } else { - z.EncFallback(x.Cond) - } - z.EncWriteArrayElem() - if yyxt12 := z.Extension(z.I2Rtid(x.Echo)); yyxt12 != nil { - z.EncExtension(x.Echo, yyxt12) - } 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 yyxt13 := z.Extension(z.I2Rtid(x.Timeout)); yyxt13 != nil { - z.EncExtension(x.Timeout, yyxt13) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteArrayElem() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(6) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + _, _ = yysep2, yy2arr2 + const yyr2 bool = false // struct tag has 'toArray' + if yyr2 || yy2arr2 { + r.WriteArrayStart(6) } else { - r.EncodeString(`What`) + r.WriteMapStart(6) } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Data`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - if yyxt16 := z.Extension(z.I2Rtid(x.Data)); yyxt16 != nil { - z.EncExtension(x.Data, yyxt16) + 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 { - z.EncFallback(x.Data) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") + 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.EncodeString(`Cond`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt17 := z.Extension(z.I2Rtid(x.Cond)); yyxt17 != nil { - z.EncExtension(x.Cond, yyxt17) + 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 { - z.EncFallback(x.Cond) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"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.EncodeString(`Echo`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemValue() - if yyxt18 := z.Extension(z.I2Rtid(x.Echo)); yyxt18 != nil { - z.EncExtension(x.Echo, yyxt18) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } else { - r.EncodeInt(int64(x.Echo)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Parallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Parallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeString(`Timeout`) + r.WriteMapEnd() } - z.EncWriteMapElemValue() - if yyxt19 := z.Extension(z.I2Rtid(x.Timeout)); yyxt19 != nil { - z.EncExtension(x.Timeout, yyxt19) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Parallel\"") - } else { - r.EncodeString(`Parallel`) - } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteMapEnd() } } } func (x *UpdateStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = UpdateStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *UpdateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -3035,52 +4195,81 @@ func (x *UpdateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "What": - x.What.CodecDecodeSelf(d) - case "Data": - if yyxt6 := z.Extension(z.I2Rtid(x.Data)); yyxt6 != nil { - z.DecExtension(x.Data, yyxt6) + if r.TryDecodeAsNil() { + x.What = nil } else { - z.DecFallback(&x.Data, true) + 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 yyxt8 := z.Extension(z.I2Rtid(x.Cond)); yyxt8 != nil { - z.DecExtension(x.Cond, yyxt8) + if r.TryDecodeAsNil() { + x.Cond = nil } else { - z.DecFallback(&x.Cond, true) + 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 yyxt10 := z.Extension(z.I2Rtid(x.Echo)); yyxt10 != nil { - z.DecExtension(x.Echo, yyxt10) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) + if r.TryDecodeAsNil() { + x.Echo = 0 } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 yyxt12 := z.Extension(z.I2Rtid(x.Timeout)); yyxt12 != nil { - z.DecExtension(x.Timeout, yyxt12) + if r.TryDecodeAsNil() { + x.Timeout = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + 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()) + } } case "Parallel": - x.Parallel = (bool)(r.DecodeBool()) + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 + r.ReadMapEnd() } func (x *UpdateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj14 int @@ -3090,237 +4279,321 @@ func (x *UpdateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl14 { yyb14 = yyj14 > l } else { - yyb14 = z.DecCheckBreak() + yyb14 = r.CheckBreak() } if yyb14 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) - yyj14++ - if yyhl14 { - yyb14 = yyj14 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil } else { - yyb14 = z.DecCheckBreak() - } - if yyb14 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt17 := z.Extension(z.I2Rtid(x.Data)); yyxt17 != nil { - z.DecExtension(x.Data, yyxt17) - } else { - z.DecFallback(&x.Data, true) + x.What.CodecDecodeSelf(d) } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { - yyb14 = z.DecCheckBreak() + yyb14 = r.CheckBreak() } if yyb14 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt19 := z.Extension(z.I2Rtid(x.Cond)); yyxt19 != nil { - z.DecExtension(x.Cond, yyxt19) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil } else { - z.DecFallback(&x.Cond, true) + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.Data)); yyxt17 != nil { + z.DecExtension(x.Data, yyxt17) + } else { + z.DecFallback(&x.Data, true) + } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { - yyb14 = z.DecCheckBreak() + yyb14 = r.CheckBreak() } if yyb14 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt21 := z.Extension(z.I2Rtid(x.Echo)); yyxt21 != nil { - z.DecExtension(x.Echo, yyxt21) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cond = nil } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.Cond)); yyxt19 != nil { + z.DecExtension(x.Cond, yyxt19) + } else { + z.DecFallback(&x.Cond, true) + } } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { - yyb14 = z.DecCheckBreak() + yyb14 = r.CheckBreak() } if yyb14 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt23 := z.Extension(z.I2Rtid(x.Timeout)); yyxt23 != nil { - z.DecExtension(x.Timeout, yyxt23) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Echo = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + if false { + } else if yyxt21 := z.Extension(z.I2Rtid(x.Echo)); yyxt21 != nil { + z.DecExtension(x.Echo, yyxt21) + } 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() + yyb14 = r.CheckBreak() } if yyb14 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Parallel = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt23 := z.Extension(z.I2Rtid(x.Timeout)); yyxt23 != nil { + z.DecExtension(x.Timeout, yyxt23) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj14++ + if yyhl14 { + yyb14 = yyj14 > l + } else { + yyb14 = r.CheckBreak() + } + if yyb14 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } for { yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { - yyb14 = z.DecCheckBreak() + yyb14 = r.CheckBreak() } if yyb14 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj14-1, "") } + r.ReadArrayEnd() } func (x *DeleteStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(5) - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt9 := z.Extension(z.I2Rtid(x.Cond)); yyxt9 != nil { - z.EncExtension(x.Cond, yyxt9) - } else { - z.EncFallback(x.Cond) - } - z.EncWriteArrayElem() - 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)) - } - z.EncWriteArrayElem() - if yyxt11 := z.Extension(z.I2Rtid(x.Timeout)); yyxt11 != nil { - z.EncExtension(x.Timeout, yyxt11) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteArrayElem() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(5) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + 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.EncodeString(`What`) + r.WriteMapStart(5) } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Cond`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - if yyxt14 := z.Extension(z.I2Rtid(x.Cond)); yyxt14 != nil { - z.EncExtension(x.Cond, yyxt14) + 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 { - z.EncFallback(x.Cond) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Echo\"") + 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.EncodeString(`Echo`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemValue() - if yyxt15 := z.Extension(z.I2Rtid(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) + 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.EncodeInt(int64(x.Echo)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } else { - r.EncodeString(`Timeout`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Parallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Parallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } - z.EncWriteMapElemValue() - if yyxt16 := z.Extension(z.I2Rtid(x.Timeout)); yyxt16 != nil { - z.EncExtension(x.Timeout, yyxt16) + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeInt(int64(x.Timeout)) + r.WriteMapEnd() } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Parallel\"") - } else { - r.EncodeString(`Parallel`) - } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteMapEnd() } } } func (x *DeleteStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DeleteStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DeleteStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -3330,46 +4603,70 @@ func (x *DeleteStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "What": - x.What.CodecDecodeSelf(d) - case "Cond": - if yyxt6 := z.Extension(z.I2Rtid(x.Cond)); yyxt6 != nil { - z.DecExtension(x.Cond, yyxt6) + if r.TryDecodeAsNil() { + x.What = nil } else { - z.DecFallback(&x.Cond, true) + 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 yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { - z.DecExtension(x.Echo, yyxt8) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) + if r.TryDecodeAsNil() { + x.Echo = 0 } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { - z.DecExtension(x.Timeout, yyxt10) + if r.TryDecodeAsNil() { + x.Timeout = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + 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()) + } } case "Parallel": - x.Parallel = (bool)(r.DecodeBool()) + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 + r.ReadMapEnd() } func (x *DeleteStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj12 int @@ -3379,259 +4676,371 @@ func (x *DeleteStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) - yyj12++ - if yyhl12 { - yyb12 = yyj12 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil } else { - yyb12 = z.DecCheckBreak() - } - if yyb12 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt15 := z.Extension(z.I2Rtid(x.Cond)); yyxt15 != nil { - z.DecExtension(x.Cond, yyxt15) - } else { - z.DecFallback(&x.Cond, true) + x.What.CodecDecodeSelf(d) } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt17 := z.Extension(z.I2Rtid(x.Echo)); yyxt17 != nil { - z.DecExtension(x.Echo, yyxt17) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cond = nil } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + if false { + } else if yyxt15 := z.Extension(z.I2Rtid(x.Cond)); yyxt15 != nil { + z.DecExtension(x.Cond, yyxt15) + } else { + z.DecFallback(&x.Cond, true) + } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt19 := z.Extension(z.I2Rtid(x.Timeout)); yyxt19 != nil { - z.DecExtension(x.Timeout, yyxt19) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Echo = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.Echo)); yyxt17 != nil { + z.DecExtension(x.Echo, yyxt17) + } 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() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Parallel = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.Timeout)); yyxt19 != nil { + z.DecExtension(x.Timeout, yyxt19) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj12++ + if yyhl12 { + yyb12 = yyj12 > l + } else { + yyb12 = r.CheckBreak() + } + if yyb12 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj12-1, "") } + r.ReadArrayEnd() } func (x *RelateStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(8) - z.EncWriteArrayElem() - if yyxt11 := z.Extension(z.I2Rtid(x.Type)); yyxt11 != nil { - z.EncExtension(x.Type, yyxt11) - } else { - z.EncFallback(x.Type) - } - z.EncWriteArrayElem() - x.From.CodecEncodeSelf(e) - z.EncWriteArrayElem() - x.With.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt14 := z.Extension(z.I2Rtid(x.Data)); yyxt14 != nil { - z.EncExtension(x.Data, yyxt14) - } else { - z.EncFallback(x.Data) - } - z.EncWriteArrayElem() - r.EncodeBool(bool(x.Uniq)) - z.EncWriteArrayElem() - if yyxt16 := z.Extension(z.I2Rtid(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.EncWriteArrayElem() - if yyxt17 := z.Extension(z.I2Rtid(x.Timeout)); yyxt17 != nil { - z.EncExtension(x.Timeout, yyxt17) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteArrayElem() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(8) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Type\"") + 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.EncodeString(`Type`) + r.WriteMapStart(8) } - z.EncWriteMapElemValue() - if yyxt19 := z.Extension(z.I2Rtid(x.Type)); yyxt19 != nil { - z.EncExtension(x.Type, yyxt19) + 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 { - z.EncFallback(x.Type) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"From\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.From == nil { + r.EncodeNil() + } else { + x.From.CodecEncodeSelf(e) + } } else { - r.EncodeString(`From`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"From\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `From`) + } + r.WriteMapElemValue() + if x.From == nil { + r.EncodeNil() + } else { + x.From.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.From.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"With\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.With == nil { + r.EncodeNil() + } else { + x.With.CodecEncodeSelf(e) + } } else { - r.EncodeString(`With`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"With\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `With`) + } + r.WriteMapElemValue() + if x.With == nil { + r.EncodeNil() + } else { + x.With.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.With.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") + 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.EncodeString(`Data`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt22 := z.Extension(z.I2Rtid(x.Data)); yyxt22 != nil { - z.EncExtension(x.Data, yyxt22) + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Uniq)) + } } else { - z.EncFallback(x.Data) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Uniq\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Uniq`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Uniq)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"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.EncodeString(`Uniq`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Uniq)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"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.EncodeString(`Echo`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemValue() - if yyxt24 := z.Extension(z.I2Rtid(x.Echo)); yyxt24 != nil { - z.EncExtension(x.Echo, yyxt24) - } else if z.EncBinary() { - z.EncBinaryMarshal(x.Echo) - } else if !z.EncBinary() { - z.EncTextMarshal(x.Echo) + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } else { - r.EncodeInt(int64(x.Echo)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Parallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Parallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeString(`Timeout`) + r.WriteMapEnd() } - z.EncWriteMapElemValue() - if yyxt25 := z.Extension(z.I2Rtid(x.Timeout)); yyxt25 != nil { - z.EncExtension(x.Timeout, yyxt25) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Parallel\"") - } else { - r.EncodeString(`Parallel`) - } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteMapEnd() } } } func (x *RelateStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = RelateStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *RelateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -3641,56 +5050,93 @@ func (x *RelateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Type": - if yyxt5 := z.Extension(z.I2Rtid(x.Type)); yyxt5 != nil { - z.DecExtension(x.Type, yyxt5) + if r.TryDecodeAsNil() { + x.Type = nil } else { - z.DecFallback(&x.Type, true) + 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": - x.From.CodecDecodeSelf(d) - case "With": - x.With.CodecDecodeSelf(d) - case "Data": - if yyxt9 := z.Extension(z.I2Rtid(x.Data)); yyxt9 != nil { - z.DecExtension(x.Data, yyxt9) + if r.TryDecodeAsNil() { + x.From = nil } else { - z.DecFallback(&x.Data, true) + 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": - x.Uniq = (bool)(r.DecodeBool()) - case "Echo": - if yyxt12 := z.Extension(z.I2Rtid(x.Echo)); yyxt12 != nil { - z.DecExtension(x.Echo, yyxt12) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) + if r.TryDecodeAsNil() { + x.Uniq = false } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 yyxt14 := z.Extension(z.I2Rtid(x.Timeout)); yyxt14 != nil { - z.DecExtension(x.Timeout, yyxt14) + if r.TryDecodeAsNil() { + x.Timeout = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + 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()) + } } case "Parallel": - x.Parallel = (bool)(r.DecodeBool()) + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 + r.ReadMapEnd() } func (x *RelateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj16 int @@ -3700,271 +5146,368 @@ func (x *RelateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl16 { yyb16 = yyj16 > l } else { - yyb16 = z.DecCheckBreak() + yyb16 = r.CheckBreak() } if yyb16 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt18 := z.Extension(z.I2Rtid(x.Type)); yyxt18 != nil { - z.DecExtension(x.Type, yyxt18) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = nil } else { - z.DecFallback(&x.Type, true) + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(x.Type)); yyxt18 != nil { + z.DecExtension(x.Type, yyxt18) + } else { + z.DecFallback(&x.Type, true) + } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { - yyb16 = z.DecCheckBreak() + yyb16 = r.CheckBreak() } if yyb16 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.From.CodecDecodeSelf(d) - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.From = nil } else { - yyb16 = z.DecCheckBreak() - } - if yyb16 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.With.CodecDecodeSelf(d) - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l - } else { - yyb16 = z.DecCheckBreak() - } - if yyb16 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt22 := z.Extension(z.I2Rtid(x.Data)); yyxt22 != nil { - z.DecExtension(x.Data, yyxt22) - } else { - z.DecFallback(&x.Data, true) + x.From.CodecDecodeSelf(d) } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { - yyb16 = z.DecCheckBreak() + yyb16 = r.CheckBreak() } if yyb16 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Uniq = (bool)(r.DecodeBool()) - yyj16++ - if yyhl16 { - yyb16 = yyj16 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.With = nil } else { - yyb16 = z.DecCheckBreak() - } - if yyb16 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt25 := z.Extension(z.I2Rtid(x.Echo)); yyxt25 != nil { - z.DecExtension(x.Echo, yyxt25) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) - } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + x.With.CodecDecodeSelf(d) } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { - yyb16 = z.DecCheckBreak() + yyb16 = r.CheckBreak() } if yyb16 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt27 := z.Extension(z.I2Rtid(x.Timeout)); yyxt27 != nil { - z.DecExtension(x.Timeout, yyxt27) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + if false { + } else if yyxt22 := z.Extension(z.I2Rtid(x.Data)); yyxt22 != nil { + z.DecExtension(x.Data, yyxt22) + } else { + z.DecFallback(&x.Data, true) + } } yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { - yyb16 = z.DecCheckBreak() + yyb16 = r.CheckBreak() } if yyb16 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Parallel = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Uniq = false + } else { + x.Uniq = (bool)(r.DecodeBool()) + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Echo = 0 + } else { + if false { + } else if yyxt25 := z.Extension(z.I2Rtid(x.Echo)); yyxt25 != nil { + z.DecExtension(x.Echo, yyxt25) + } else if z.DecBinary() { + z.DecBinaryUnmarshal(&x.Echo) + } else { + x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 + } else { + if false { + } else if yyxt27 := z.Extension(z.I2Rtid(x.Timeout)); yyxt27 != nil { + z.DecExtension(x.Timeout, yyxt27) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } + } + yyj16++ + if yyhl16 { + yyb16 = yyj16 > l + } else { + yyb16 = r.CheckBreak() + } + if yyb16 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } for { yyj16++ if yyhl16 { yyb16 = yyj16 > l } else { - yyb16 = z.DecCheckBreak() + yyb16 = r.CheckBreak() } if yyb16 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj16-1, "") } + r.ReadArrayEnd() } func (x *InsertStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - var yyn4 bool = x.Into == nil - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(5) - z.EncWriteArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { - z.EncExtension(x.Data, yyxt8) - } else { - z.EncFallback(x.Data) - } - if yyn4 { - z.EncWriteArrayElem() - r.EncodeNil() - } else { - z.EncWriteArrayElem() - x.Into.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - 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)) - } - z.EncWriteArrayElem() - if yyxt11 := z.Extension(z.I2Rtid(x.Timeout)); yyxt11 != nil { - z.EncExtension(x.Timeout, yyxt11) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteArrayElem() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(5) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") + 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.EncodeString(`Data`) + r.WriteMapStart(5) } - z.EncWriteMapElemValue() - if yyxt13 := z.Extension(z.I2Rtid(x.Data)); yyxt13 != nil { - z.EncExtension(x.Data, yyxt13) + 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 { - z.EncFallback(x.Data) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Into\"") + 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.EncodeString(`Into`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Into\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Into`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Into == nil { + r.EncodeNil() + } else { + x.Into.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemValue() - if yyn4 { - r.EncodeNil() + 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 { - x.Into.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"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.EncodeString(`Echo`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemValue() - if yyxt15 := z.Extension(z.I2Rtid(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) + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } else { - r.EncodeInt(int64(x.Echo)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Parallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Parallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeString(`Timeout`) + r.WriteMapEnd() } - z.EncWriteMapElemValue() - if yyxt16 := z.Extension(z.I2Rtid(x.Timeout)); yyxt16 != nil { - z.EncExtension(x.Timeout, yyxt16) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Parallel\"") - } else { - r.EncodeString(`Parallel`) - } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteMapEnd() } } } func (x *InsertStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = InsertStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *InsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -3974,55 +5517,76 @@ func (x *InsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Data": - if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.DecExtension(x.Data, yyxt5) + if r.TryDecodeAsNil() { + x.Data = nil } else { - z.DecFallback(&x.Data, true) + 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.TryNil() { - if x.Into != nil { // remove the if-true + 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 yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { - z.DecExtension(x.Echo, yyxt8) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) + if r.TryDecodeAsNil() { + x.Echo = 0 } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { - z.DecExtension(x.Timeout, yyxt10) + if r.TryDecodeAsNil() { + x.Timeout = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + 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()) + } } case "Parallel": - x.Parallel = (bool)(r.DecodeBool()) + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 + r.ReadMapEnd() } func (x *InsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj12 int @@ -4032,240 +5596,321 @@ func (x *InsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt14 := z.Extension(z.I2Rtid(x.Data)); yyxt14 != nil { - z.DecExtension(x.Data, yyxt14) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil } else { - z.DecFallback(&x.Data, true) + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(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() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Into != nil { // remove the if-true + 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) } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt17 := z.Extension(z.I2Rtid(x.Echo)); yyxt17 != nil { - z.DecExtension(x.Echo, yyxt17) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Echo = 0 } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.Echo)); yyxt17 != nil { + z.DecExtension(x.Echo, yyxt17) + } 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() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt19 := z.Extension(z.I2Rtid(x.Timeout)); yyxt19 != nil { - z.DecExtension(x.Timeout, yyxt19) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.Timeout)); yyxt19 != nil { + z.DecExtension(x.Timeout, yyxt19) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Parallel = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj12-1, "") } + r.ReadArrayEnd() } func (x *UpsertStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - var yyn4 bool = x.Into == nil - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(5) - z.EncWriteArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { - z.EncExtension(x.Data, yyxt8) - } else { - z.EncFallback(x.Data) - } - if yyn4 { - z.EncWriteArrayElem() - r.EncodeNil() - } else { - z.EncWriteArrayElem() - x.Into.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - 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)) - } - z.EncWriteArrayElem() - if yyxt11 := z.Extension(z.I2Rtid(x.Timeout)); yyxt11 != nil { - z.EncExtension(x.Timeout, yyxt11) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteArrayElem() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(5) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") + 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.EncodeString(`Data`) + r.WriteMapStart(5) } - z.EncWriteMapElemValue() - if yyxt13 := z.Extension(z.I2Rtid(x.Data)); yyxt13 != nil { - z.EncExtension(x.Data, yyxt13) + 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 { - z.EncFallback(x.Data) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Into\"") + 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.EncodeString(`Into`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Into\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Into`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Into == nil { + r.EncodeNil() + } else { + x.Into.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemValue() - if yyn4 { - r.EncodeNil() + 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 { - x.Into.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Echo\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"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.EncodeString(`Echo`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Timeout\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemValue() - if yyxt15 := z.Extension(z.I2Rtid(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) + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } else { - r.EncodeInt(int64(x.Echo)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Parallel\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Parallel`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Parallel)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Timeout\"") + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeString(`Timeout`) + r.WriteMapEnd() } - z.EncWriteMapElemValue() - if yyxt16 := z.Extension(z.I2Rtid(x.Timeout)); yyxt16 != nil { - z.EncExtension(x.Timeout, yyxt16) - } else { - r.EncodeInt(int64(x.Timeout)) - } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Parallel\"") - } else { - r.EncodeString(`Parallel`) - } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Parallel)) - z.EncWriteMapEnd() } } } func (x *UpsertStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = UpsertStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *UpsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -4275,55 +5920,76 @@ func (x *UpsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Data": - if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.DecExtension(x.Data, yyxt5) + if r.TryDecodeAsNil() { + x.Data = nil } else { - z.DecFallback(&x.Data, true) + 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.TryNil() { - if x.Into != nil { // remove the if-true + 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 yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { - z.DecExtension(x.Echo, yyxt8) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) + if r.TryDecodeAsNil() { + x.Echo = 0 } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { - z.DecExtension(x.Timeout, yyxt10) + if r.TryDecodeAsNil() { + x.Timeout = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + 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()) + } } case "Parallel": - x.Parallel = (bool)(r.DecodeBool()) + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 + r.ReadMapEnd() } func (x *UpsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj12 int @@ -4333,168 +5999,217 @@ func (x *UpsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt14 := z.Extension(z.I2Rtid(x.Data)); yyxt14 != nil { - z.DecExtension(x.Data, yyxt14) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil } else { - z.DecFallback(&x.Data, true) + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(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() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Into != nil { // remove the if-true + 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) } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt17 := z.Extension(z.I2Rtid(x.Echo)); yyxt17 != nil { - z.DecExtension(x.Echo, yyxt17) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Echo) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Echo = 0 } else { - x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + if false { + } else if yyxt17 := z.Extension(z.I2Rtid(x.Echo)); yyxt17 != nil { + z.DecExtension(x.Echo, yyxt17) + } 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() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt19 := z.Extension(z.I2Rtid(x.Timeout)); yyxt19 != nil { - z.DecExtension(x.Timeout, yyxt19) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Timeout = 0 } else { - x.Timeout = (time.Duration)(r.DecodeInt64()) + if false { + } else if yyxt19 := z.Extension(z.I2Rtid(x.Timeout)); yyxt19 != nil { + z.DecExtension(x.Timeout, yyxt19) + } else { + x.Timeout = (time.Duration)(r.DecodeInt64()) + } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Parallel = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Parallel = false + } else { + x.Parallel = (bool)(r.DecodeBool()) + } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj12-1, "") } + r.ReadArrayEnd() } func (x *DefineNamespaceStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *DefineNamespaceStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DefineNamespaceStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DefineNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -4504,33 +6219,35 @@ func (x *DefineNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.De break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -4540,21 +6257,22 @@ func (x *DefineNamespaceStatement) codecDecodeSelfFromArray(l int, d *codec1978. if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 { @@ -4562,84 +6280,113 @@ func (x *DefineNamespaceStatement) codecDecodeSelfFromArray(l int, d *codec1978. if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x *RemoveNamespaceStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *RemoveNamespaceStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = RemoveNamespaceStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *RemoveNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -4649,33 +6396,35 @@ func (x *RemoveNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.De break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -4685,21 +6434,22 @@ func (x *RemoveNamespaceStatement) codecDecodeSelfFromArray(l int, d *codec1978. if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 { @@ -4707,84 +6457,113 @@ func (x *RemoveNamespaceStatement) codecDecodeSelfFromArray(l int, d *codec1978. if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x *DefineDatabaseStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *DefineDatabaseStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DefineDatabaseStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DefineDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -4794,33 +6573,35 @@ func (x *DefineDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Dec break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -4830,21 +6611,22 @@ func (x *DefineDatabaseStatement) codecDecodeSelfFromArray(l int, d *codec1978.D if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 { @@ -4852,84 +6634,113 @@ func (x *DefineDatabaseStatement) codecDecodeSelfFromArray(l int, d *codec1978.D if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x *RemoveDatabaseStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *RemoveDatabaseStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = RemoveDatabaseStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *RemoveDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -4939,33 +6750,35 @@ func (x *RemoveDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Dec break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -4975,21 +6788,22 @@ func (x *RemoveDatabaseStatement) codecDecodeSelfFromArray(l int, d *codec1978.D if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 { @@ -4997,164 +6811,225 @@ func (x *RemoveDatabaseStatement) codecDecodeSelfFromArray(l int, d *codec1978.D if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x *DefineLoginStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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(z.I2Rtid(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() - 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() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(5) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Kind\"") + 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.EncodeString(`Kind`) + r.WriteMapStart(5) } - z.EncWriteMapElemValue() - if yyxt13 := z.Extension(z.I2Rtid(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) + 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.EncodeInt(int64(x.Kind)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"User\"") - } else { - r.EncodeString(`User`) + var yyn6 bool + if x.User == nil { + yyn6 = true + goto LABEL6 } - z.EncWriteMapElemValue() - if yyn4 { - r.EncodeNil() + 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 { - x.User.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"User\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `User`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.User == nil { + r.EncodeNil() + } else { + x.User.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Pass\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Pass == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Pass)) + } + } } else { - r.EncodeString(`Pass`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Pass\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Pass`) + } + r.WriteMapElemValue() + if x.Pass == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Pass)) + } + } } - z.EncWriteMapElemValue() - if x.Pass == nil { - r.EncodeNil() + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } } 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`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Hash\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Hash`) + } + r.WriteMapElemValue() + if x.Hash == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Hash)) + } + } } - z.EncWriteMapElemValue() - if x.Hash == nil { - r.EncodeNil() + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Code == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } + } } 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`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Code\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Code`) + } + r.WriteMapElemValue() + if x.Code == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } + } } - z.EncWriteMapElemValue() - if x.Code == nil { - r.EncodeNil() + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeStringBytesRaw([]byte(x.Code)) - } // end block: if x.Code slice == nil - z.EncWriteMapEnd() + r.WriteMapEnd() + } } } } func (x *DefineLoginStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DefineLoginStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DefineLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -5164,47 +7039,75 @@ func (x *DefineLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Kind": - if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.DecExtension(x.Kind, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) + if r.TryDecodeAsNil() { + x.Kind = 0 } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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.TryNil() { - if x.User != nil { // remove the if-true + 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": - x.Pass = r.DecodeBytes(([]byte)(x.Pass), false) + if r.TryDecodeAsNil() { + x.Pass = nil + } else { + if false { + } else { + x.Pass = r.DecodeBytes(([]byte)(x.Pass), false) + } + } case "Hash": - x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + if r.TryDecodeAsNil() { + x.Hash = nil + } else { + if false { + } else { + x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + } + } case "Code": - x.Code = r.DecodeBytes(([]byte)(x.Code), false) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj13 int @@ -5214,186 +7117,247 @@ func (x *DefineLoginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl13 { yyb13 = yyj13 > l } else { - yyb13 = z.DecCheckBreak() + yyb13 = r.CheckBreak() } if yyb13 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt15 := z.Extension(z.I2Rtid(x.Kind)); yyxt15 != nil { - z.DecExtension(x.Kind, yyxt15) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Kind = 0 } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 = z.DecCheckBreak() + yyb13 = r.CheckBreak() } if yyb13 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.User != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb13 = r.CheckBreak() } if yyb13 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Pass = r.DecodeBytes(([]byte)(x.Pass), false) + 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 = z.DecCheckBreak() + yyb13 = r.CheckBreak() } if yyb13 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) + 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 = z.DecCheckBreak() + yyb13 = r.CheckBreak() } if yyb13 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Code = r.DecodeBytes(([]byte)(x.Code), false) + 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 = z.DecCheckBreak() + yyb13 = r.CheckBreak() } if yyb13 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj13-1, "") } + r.ReadArrayEnd() } func (x *RemoveLoginStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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(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)) - } - if yyn4 { - z.EncWriteArrayElem() - r.EncodeNil() - } else { - z.EncWriteArrayElem() - x.User.CodecEncodeSelf(e) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Kind\"") + 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.EncodeString(`Kind`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - if yyxt7 := z.Extension(z.I2Rtid(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) + 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.EncodeInt(int64(x.Kind)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"User\"") + 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.EncodeString(`User`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"User\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `User`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.User == nil { + r.EncodeNil() + } else { + x.User.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemValue() - if yyn4 { - r.EncodeNil() + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - x.User.CodecEncodeSelf(e) + r.WriteMapEnd() } - z.EncWriteMapEnd() } } } func (x *RemoveLoginStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = RemoveLoginStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *RemoveLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -5403,41 +7367,48 @@ func (x *RemoveLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Kind": - if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.DecExtension(x.Kind, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) + if r.TryDecodeAsNil() { + x.Kind = 0 } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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.TryNil() { - if x.User != nil { // remove the if-true + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int @@ -5447,39 +7418,45 @@ func (x *RemoveLoginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt9 := z.Extension(z.I2Rtid(x.Kind)); yyxt9 != nil { - z.DecExtension(x.Kind, yyxt9) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Kind = 0 } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.User != nil { // remove the if-true + 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 { @@ -5487,158 +7464,226 @@ func (x *RemoveLoginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } + r.ReadArrayEnd() } func (x *DefineTokenStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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(z.I2Rtid(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() - x.Name.CodecEncodeSelf(e) - } - if yyn5 { - z.EncWriteArrayElem() - r.EncodeNil() - } else { - z.EncWriteArrayElem() - 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() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(5) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Kind\"") + 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.EncodeString(`Kind`) + r.WriteMapStart(5) } - z.EncWriteMapElemValue() - if yyxt13 := z.Extension(z.I2Rtid(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) + 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.EncodeInt(int64(x.Kind)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") - } else { - r.EncodeString(`Name`) + var yyn6 bool + if x.Name == nil { + yyn6 = true + goto LABEL6 } - z.EncWriteMapElemValue() - if yyn4 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") - } else { - r.EncodeString(`What`) + var yyn9 bool + if x.What == nil { + yyn9 = true + goto LABEL9 } - z.EncWriteMapElemValue() - if yyn5 { - r.EncodeNil() + 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 { - x.What.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Type\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Type)) + } } else { - r.EncodeString(`Type`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Type)) + } } - z.EncWriteMapElemValue() - r.EncodeString(string(x.Type)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Code\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Code == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } + } } else { - r.EncodeString(`Code`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Code\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Code`) + } + r.WriteMapElemValue() + if x.Code == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } + } } - z.EncWriteMapElemValue() - if x.Code == nil { - r.EncodeNil() + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeStringBytesRaw([]byte(x.Code)) - } // end block: if x.Code slice == nil - z.EncWriteMapEnd() + r.WriteMapEnd() + } } } } func (x *DefineTokenStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DefineTokenStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DefineTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -5648,56 +7693,75 @@ func (x *DefineTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Kind": - if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.DecExtension(x.Kind, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) + if r.TryDecodeAsNil() { + x.Kind = 0 } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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.TryNil() { - if x.Name != nil { // remove the if-true + 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.TryNil() { - if x.What != nil { // remove the if-true + 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": - x.Type = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } case "Code": - x.Code = r.DecodeBytes(([]byte)(x.Code), false) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj11 int @@ -5707,215 +7771,283 @@ func (x *DefineTokenStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl11 { yyb11 = yyj11 > l } else { - yyb11 = z.DecCheckBreak() + yyb11 = r.CheckBreak() } if yyb11 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt13 := z.Extension(z.I2Rtid(x.Kind)); yyxt13 != nil { - z.DecExtension(x.Kind, yyxt13) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Kind = 0 } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 = z.DecCheckBreak() + yyb11 = r.CheckBreak() } if yyb11 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb11 = r.CheckBreak() } if yyb11 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.What != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb11 = r.CheckBreak() } if yyb11 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Type = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = (string)(r.DecodeString()) + } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { - yyb11 = z.DecCheckBreak() + yyb11 = r.CheckBreak() } if yyb11 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Code = r.DecodeBytes(([]byte)(x.Code), false) + 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 = z.DecCheckBreak() + yyb11 = r.CheckBreak() } if yyb11 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj11-1, "") } + r.ReadArrayEnd() } func (x *RemoveTokenStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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(z.I2Rtid(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() - x.Name.CodecEncodeSelf(e) - } - if yyn5 { - z.EncWriteArrayElem() - r.EncodeNil() - } else { - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(3) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Kind\"") + 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.EncodeString(`Kind`) + r.WriteMapStart(3) } - z.EncWriteMapElemValue() - if yyxt9 := z.Extension(z.I2Rtid(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) + 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.EncodeInt(int64(x.Kind)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemValue() - if yyn4 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if yyn9 { + r.EncodeNil() + } else { + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeString(`What`) + r.WriteMapEnd() } - z.EncWriteMapElemValue() - if yyn5 { - r.EncodeNil() - } else { - x.What.CodecEncodeSelf(e) - } - z.EncWriteMapEnd() } } } func (x *RemoveTokenStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = RemoveTokenStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *RemoveTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -5925,52 +8057,60 @@ func (x *RemoveTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Kind": - if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { - z.DecExtension(x.Kind, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) + if r.TryDecodeAsNil() { + x.Kind = 0 } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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.TryNil() { - if x.Name != nil { // remove the if-true + 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.TryNil() { - if x.What != nil { // remove the if-true + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int @@ -5980,60 +8120,67 @@ func (x *RemoveTokenStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt10 := z.Extension(z.I2Rtid(x.Kind)); yyxt10 != nil { - z.DecExtension(x.Kind, yyxt10) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Kind) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Kind = 0 } else { - x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.What != nil { // remove the if-true + 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 { @@ -6041,210 +8188,318 @@ func (x *RemoveTokenStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } + r.ReadArrayEnd() } func (x *DefineScopeStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - if yyxt12 := z.Extension(z.I2Rtid(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(z.I2Rtid(x.Signup)); yyxt14 != nil { - z.EncExtension(x.Signup, yyxt14) - } else { - z.EncFallback(x.Signup) - } - z.EncWriteArrayElem() - if yyxt15 := z.Extension(z.I2Rtid(x.Signin)); yyxt15 != nil { - z.EncExtension(x.Signin, yyxt15) - } else { - z.EncFallback(x.Signin) - } - z.EncWriteArrayElem() - if yyxt16 := z.Extension(z.I2Rtid(x.Connect)); yyxt16 != nil { - z.EncExtension(x.Connect, yyxt16) - } else { - z.EncFallback(x.Connect) - } - z.EncWriteArrayElem() - if yyxt17 := z.Extension(z.I2Rtid(x.OnSignup)); yyxt17 != nil { - z.EncExtension(x.OnSignup, yyxt17) - } else { - z.EncFallback(x.OnSignup) - } - z.EncWriteArrayElem() - if yyxt18 := z.Extension(z.I2Rtid(x.OnSignin)); yyxt18 != nil { - z.EncExtension(x.OnSignin, yyxt18) - } else { - z.EncFallback(x.OnSignin) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(8) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(8) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() - } else { - x.Name.CodecEncodeSelf(e) + var yyn3 bool + if x.Name == nil { + yyn3 = true + goto LABEL3 } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Time\"") + 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.EncodeString(`Time`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemValue() - if yyxt20 := z.Extension(z.I2Rtid(x.Time)); yyxt20 != nil { - z.EncExtension(x.Time, yyxt20) + 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.EncodeInt(int64(x.Time)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Time\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Code\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Code == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } + } } else { - r.EncodeString(`Code`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Code\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Code`) + } + r.WriteMapElemValue() + if x.Code == nil { + r.EncodeNil() + } else { + if false { + } else { + r.EncodeStringBytesRaw([]byte(x.Code)) + } + } } - z.EncWriteMapElemValue() - if x.Code == nil { - r.EncodeNil() + 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.EncodeStringBytesRaw([]byte(x.Code)) - } // end block: if x.Code slice == nil - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Signup\"") - } else { - r.EncodeString(`Signup`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Signup\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt22 := z.Extension(z.I2Rtid(x.Signup)); yyxt22 != nil { - z.EncExtension(x.Signup, yyxt22) + 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 { - z.EncFallback(x.Signup) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Signin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"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.EncodeString(`Signin`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Connect\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt23 := z.Extension(z.I2Rtid(x.Signin)); yyxt23 != nil { - z.EncExtension(x.Signin, yyxt23) + 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 { - z.EncFallback(x.Signin) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OnSignup\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Connect\"") + 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.EncodeString(`Connect`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"OnSignin\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt24 := z.Extension(z.I2Rtid(x.Connect)); yyxt24 != nil { - z.EncExtension(x.Connect, yyxt24) + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - z.EncFallback(x.Connect) + r.WriteMapEnd() } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"OnSignup\"") - } else { - r.EncodeString(`OnSignup`) - } - z.EncWriteMapElemValue() - if yyxt25 := z.Extension(z.I2Rtid(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(z.I2Rtid(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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DefineScopeStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DefineScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -6254,71 +8509,110 @@ func (x *DefineScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 yyxt6 := z.Extension(z.I2Rtid(x.Time)); yyxt6 != nil { - z.DecExtension(x.Time, yyxt6) + if r.TryDecodeAsNil() { + x.Time = 0 } else { - x.Time = (time.Duration)(r.DecodeInt64()) + 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": - x.Code = r.DecodeBytes(([]byte)(x.Code), false) - case "Signup": - if yyxt10 := z.Extension(z.I2Rtid(x.Signup)); yyxt10 != nil { - z.DecExtension(x.Signup, yyxt10) + if r.TryDecodeAsNil() { + x.Code = nil } else { - z.DecFallback(&x.Signup, true) + 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 yyxt12 := z.Extension(z.I2Rtid(x.Signin)); yyxt12 != nil { - z.DecExtension(x.Signin, yyxt12) + if r.TryDecodeAsNil() { + x.Signin = nil } else { - z.DecFallback(&x.Signin, true) + 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 yyxt14 := z.Extension(z.I2Rtid(x.Connect)); yyxt14 != nil { - z.DecExtension(x.Connect, yyxt14) + if r.TryDecodeAsNil() { + x.Connect = nil } else { - z.DecFallback(&x.Connect, true) + 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 yyxt16 := z.Extension(z.I2Rtid(x.OnSignup)); yyxt16 != nil { - z.DecExtension(x.OnSignup, yyxt16) + if r.TryDecodeAsNil() { + x.OnSignup = nil } else { - z.DecFallback(&x.OnSignup, true) + 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 yyxt18 := z.Extension(z.I2Rtid(x.OnSignin)); yyxt18 != nil { - z.DecExtension(x.OnSignin, yyxt18) + if r.TryDecodeAsNil() { + x.OnSignin = nil } else { - z.DecFallback(&x.OnSignin, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj19 int @@ -6328,214 +8622,281 @@ func (x *DefineScopeStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl19 { yyb19 = yyj19 > l } else { - yyb19 = z.DecCheckBreak() + yyb19 = r.CheckBreak() } if yyb19 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb19 = r.CheckBreak() } if yyb19 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt22 := z.Extension(z.I2Rtid(x.Time)); yyxt22 != nil { - z.DecExtension(x.Time, yyxt22) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Time = 0 } else { - x.Time = (time.Duration)(r.DecodeInt64()) + 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 = z.DecCheckBreak() + yyb19 = r.CheckBreak() } if yyb19 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Code = r.DecodeBytes(([]byte)(x.Code), false) - yyj19++ - if yyhl19 { - yyb19 = yyj19 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Code = nil } else { - yyb19 = z.DecCheckBreak() - } - if yyb19 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt26 := z.Extension(z.I2Rtid(x.Signup)); yyxt26 != nil { - z.DecExtension(x.Signup, yyxt26) - } else { - z.DecFallback(&x.Signup, true) + if false { + } else { + x.Code = r.DecodeBytes(([]byte)(x.Code), false) + } } yyj19++ if yyhl19 { yyb19 = yyj19 > l } else { - yyb19 = z.DecCheckBreak() + yyb19 = r.CheckBreak() } if yyb19 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt28 := z.Extension(z.I2Rtid(x.Signin)); yyxt28 != nil { - z.DecExtension(x.Signin, yyxt28) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Signup = nil } else { - z.DecFallback(&x.Signin, true) + 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 = z.DecCheckBreak() + yyb19 = r.CheckBreak() } if yyb19 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt30 := z.Extension(z.I2Rtid(x.Connect)); yyxt30 != nil { - z.DecExtension(x.Connect, yyxt30) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Signin = nil } else { - z.DecFallback(&x.Connect, true) + 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 = z.DecCheckBreak() + yyb19 = r.CheckBreak() } if yyb19 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt32 := z.Extension(z.I2Rtid(x.OnSignup)); yyxt32 != nil { - z.DecExtension(x.OnSignup, yyxt32) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Connect = nil } else { - z.DecFallback(&x.OnSignup, true) + 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 = z.DecCheckBreak() + yyb19 = r.CheckBreak() } if yyb19 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt34 := z.Extension(z.I2Rtid(x.OnSignin)); yyxt34 != nil { - z.DecExtension(x.OnSignin, yyxt34) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.OnSignup = nil } else { - z.DecFallback(&x.OnSignin, true) + 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 = z.DecCheckBreak() + yyb19 = r.CheckBreak() } if yyb19 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj19-1, "") } + r.ReadArrayEnd() } func (x *RemoveScopeStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *RemoveScopeStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = RemoveScopeStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *RemoveScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -6545,33 +8906,35 @@ func (x *RemoveScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -6581,21 +8944,22 @@ func (x *RemoveScopeStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 { @@ -6603,200 +8967,335 @@ func (x *RemoveScopeStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x *DefineTableStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - 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() - x.Expr.CodecEncodeSelf(e) - z.EncWriteArrayElem() - x.From.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt22 := z.Extension(z.I2Rtid(x.Cond)); yyxt22 != nil { - z.EncExtension(x.Cond, yyxt22) - } else { - z.EncFallback(x.Cond) - } - z.EncWriteArrayElem() - x.Group.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt24 := z.Extension(z.I2Rtid(x.Perms)); yyxt24 != nil { - z.EncExtension(x.Perms, yyxt24) - } else { - z.EncFallback(x.Perms) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(11) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(11) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Full\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Full)) + } } else { - r.EncodeString(`Full`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Full\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Full`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Full)) + } } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Full)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Vers\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Vers)) + } } else { - r.EncodeString(`Vers`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Vers\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Vers`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Vers)) + } } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Vers)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Drop\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Drop)) + } } else { - r.EncodeString(`Drop`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Drop\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Drop`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Drop)) + } } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Drop)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Lock\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Lock)) + } } else { - r.EncodeString(`Lock`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Lock\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Lock`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Lock)) + } } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Lock)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Expr == nil { + r.EncodeNil() + } else { + x.Expr.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Expr`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Expr`) + } + r.WriteMapElemValue() + if x.Expr == nil { + r.EncodeNil() + } else { + x.Expr.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.Expr.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"From\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.From == nil { + r.EncodeNil() + } else { + x.From.CodecEncodeSelf(e) + } } else { - r.EncodeString(`From`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"From\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `From`) + } + r.WriteMapElemValue() + if x.From == nil { + r.EncodeNil() + } else { + x.From.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.From.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") + 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.EncodeString(`Cond`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt33 := z.Extension(z.I2Rtid(x.Cond)); yyxt33 != nil { - z.EncExtension(x.Cond, yyxt33) + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Group == nil { + r.EncodeNil() + } else { + x.Group.CodecEncodeSelf(e) + } } else { - z.EncFallback(x.Cond) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Group\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Group`) + } + r.WriteMapElemValue() + if x.Group == nil { + r.EncodeNil() + } else { + x.Group.CodecEncodeSelf(e) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Group\"") + 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.EncodeString(`Group`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Perms\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - x.Group.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Perms\"") + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeString(`Perms`) + r.WriteMapEnd() } - z.EncWriteMapElemValue() - if yyxt35 := z.Extension(z.I2Rtid(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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DefineTableStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DefineTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -6806,61 +9305,105 @@ func (x *DefineTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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": - 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": - x.Expr.CodecDecodeSelf(d) - case "From": - x.From.CodecDecodeSelf(d) - case "Cond": - if yyxt13 := z.Extension(z.I2Rtid(x.Cond)); yyxt13 != nil { - z.DecExtension(x.Cond, yyxt13) + if r.TryDecodeAsNil() { + x.What = nil } else { - z.DecFallback(&x.Cond, true) + 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": - x.Group.CodecDecodeSelf(d) - case "Perms": - if yyxt16 := z.Extension(z.I2Rtid(x.Perms)); yyxt16 != nil { - z.DecExtension(x.Perms, yyxt16) + if r.TryDecodeAsNil() { + x.Group = nil } else { - z.DecFallback(&x.Perms, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj17 int @@ -6870,224 +9413,291 @@ func (x *DefineTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = z.DecCheckBreak() + yyb17 = r.CheckBreak() } if yyb17 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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) } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = z.DecCheckBreak() + yyb17 = r.CheckBreak() } if yyb17 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil } else { - yyb17 = z.DecCheckBreak() - } - if yyb17 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.Full = (bool)(r.DecodeBool()) - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = z.DecCheckBreak() - } - if yyb17 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.Vers = (bool)(r.DecodeBool()) - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = z.DecCheckBreak() - } - if yyb17 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.Drop = (bool)(r.DecodeBool()) - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = z.DecCheckBreak() - } - if yyb17 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.Lock = (bool)(r.DecodeBool()) - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = z.DecCheckBreak() - } - if yyb17 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.Expr.CodecDecodeSelf(d) - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = z.DecCheckBreak() - } - if yyb17 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.From.CodecDecodeSelf(d) - yyj17++ - if yyhl17 { - yyb17 = yyj17 > l - } else { - yyb17 = z.DecCheckBreak() - } - if yyb17 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt27 := z.Extension(z.I2Rtid(x.Cond)); yyxt27 != nil { - z.DecExtension(x.Cond, yyxt27) - } else { - z.DecFallback(&x.Cond, true) + x.What.CodecDecodeSelf(d) } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = z.DecCheckBreak() + yyb17 = r.CheckBreak() } if yyb17 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Group.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Full = false + } else { + x.Full = (bool)(r.DecodeBool()) + } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = z.DecCheckBreak() + yyb17 = r.CheckBreak() } if yyb17 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt30 := z.Extension(z.I2Rtid(x.Perms)); yyxt30 != nil { - z.DecExtension(x.Perms, yyxt30) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Vers = false } else { - z.DecFallback(&x.Perms, true) + x.Vers = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Drop = false + } else { + x.Drop = (bool)(r.DecodeBool()) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + 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 + } else { + x.Expr.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.From = nil + } else { + x.From.CodecDecodeSelf(d) + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cond = nil + } 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) + } + } + yyj17++ + if yyhl17 { + yyb17 = yyj17 > l + } else { + yyb17 = r.CheckBreak() + } + if yyb17 { + r.ReadArrayEnd() + return + } + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Group = nil + } 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) + } } for { yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { - yyb17 = z.DecCheckBreak() + yyb17 = r.CheckBreak() } if yyb17 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj17-1, "") } + r.ReadArrayEnd() } func (x *RemoveTableStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + 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.EncodeString(`What`) + r.WriteMapStart(1) + } + 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(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapEnd() } } } func (x *RemoveTableStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = RemoveTableStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *RemoveTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -7097,24 +9707,29 @@ func (x *RemoveTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "What": - x.What.CodecDecodeSelf(d) + 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 *RemoveTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -7124,143 +9739,213 @@ func (x *RemoveTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil + } else { + x.What.CodecDecodeSelf(d) + } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x *DefineEventStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt9 := z.Extension(z.I2Rtid(x.When)); yyxt9 != nil { - z.EncExtension(x.When, yyxt9) - } else { - z.EncFallback(x.When) - } - z.EncWriteArrayElem() - if yyxt10 := z.Extension(z.I2Rtid(x.Then)); yyxt10 != nil { - z.EncExtension(x.Then, yyxt10) - } else { - z.EncFallback(x.Then) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(4) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(4) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"When\"") + 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.EncodeString(`When`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"When\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt13 := z.Extension(z.I2Rtid(x.When)); yyxt13 != nil { - z.EncExtension(x.When, yyxt13) + 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 { - z.EncFallback(x.When) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Then\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Then\"") + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeString(`Then`) + r.WriteMapEnd() } - z.EncWriteMapElemValue() - if yyxt14 := z.Extension(z.I2Rtid(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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DefineEventStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DefineEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -7270,47 +9955,63 @@ func (x *DefineEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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": - x.What.CodecDecodeSelf(d) - case "When": - if yyxt7 := z.Extension(z.I2Rtid(x.When)); yyxt7 != nil { - z.DecExtension(x.When, yyxt7) + if r.TryDecodeAsNil() { + x.What = nil } else { - z.DecFallback(&x.When, true) + 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 yyxt9 := z.Extension(z.I2Rtid(x.Then)); yyxt9 != nil { - z.DecExtension(x.Then, yyxt9) + if r.TryDecodeAsNil() { + x.Then = nil } else { - z.DecFallback(&x.Then, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj10 int @@ -7320,160 +10021,215 @@ func (x *DefineEventStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl10 { yyb10 = yyj10 > l } else { - yyb10 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) - yyj10++ - if yyhl10 { - yyb10 = yyj10 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil } else { - yyb10 = z.DecCheckBreak() - } - if yyb10 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt14 := z.Extension(z.I2Rtid(x.When)); yyxt14 != nil { - z.DecExtension(x.When, yyxt14) - } else { - z.DecFallback(&x.When, true) + x.What.CodecDecodeSelf(d) } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { - yyb10 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt16 := z.Extension(z.I2Rtid(x.Then)); yyxt16 != nil { - z.DecExtension(x.Then, yyxt16) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.When = nil } else { - z.DecFallback(&x.Then, true) + 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 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj10-1, "") } + r.ReadArrayEnd() } func (x *RemoveEventStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapEnd() } } } func (x *RemoveEventStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = RemoveEventStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *RemoveEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -7483,35 +10239,41 @@ func (x *RemoveEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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": - x.What.CodecDecodeSelf(d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -7521,212 +10283,323 @@ func (x *RemoveEventStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil + } else { + x.What.CodecDecodeSelf(d) + } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *DefineFieldStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayElem() - if yyxt13 := z.Extension(z.I2Rtid(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(z.I2Rtid(x.Value)); yyxt16 != nil { - z.EncExtension(x.Value, yyxt16) - } else { - z.EncFallback(x.Value) - } - z.EncWriteArrayElem() - if yyxt17 := z.Extension(z.I2Rtid(x.Assert)); yyxt17 != nil { - z.EncExtension(x.Assert, yyxt17) - } else { - z.EncFallback(x.Assert) - } - z.EncWriteArrayElem() - r.EncodeFloat64(float64(x.Priority)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(8) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(8) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Perms\"") + 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.EncodeString(`Perms`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Perms\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt21 := z.Extension(z.I2Rtid(x.Perms)); yyxt21 != nil { - z.EncExtension(x.Perms, yyxt21) + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Type)) + } } else { - z.EncFallback(x.Perms) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Type\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Type`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Type)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Type\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Kind)) + } } else { - r.EncodeString(`Type`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Kind\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Kind`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Kind)) + } } - z.EncWriteMapElemValue() - r.EncodeString(string(x.Type)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"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.EncodeString(`Kind`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Value\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - r.EncodeString(string(x.Kind)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"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.EncodeString(`Value`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Assert\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt24 := z.Extension(z.I2Rtid(x.Value)); yyxt24 != nil { - z.EncExtension(x.Value, yyxt24) + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.Priority)) + } } else { - z.EncFallback(x.Value) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Priority\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Priority`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.Priority)) + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Assert\"") + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeString(`Assert`) + r.WriteMapEnd() } - z.EncWriteMapElemValue() - if yyxt25 := z.Extension(z.I2Rtid(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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DefineFieldStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DefineFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -7736,59 +10609,92 @@ func (x *DefineFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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": - x.What.CodecDecodeSelf(d) - case "Perms": - if yyxt7 := z.Extension(z.I2Rtid(x.Perms)); yyxt7 != nil { - z.DecExtension(x.Perms, yyxt7) + if r.TryDecodeAsNil() { + x.What = nil } else { - z.DecFallback(&x.Perms, true) + 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": - x.Type = (string)(string(r.DecodeStringAsBytes())) - case "Kind": - x.Kind = (string)(string(r.DecodeStringAsBytes())) - case "Value": - if yyxt11 := z.Extension(z.I2Rtid(x.Value)); yyxt11 != nil { - z.DecExtension(x.Value, yyxt11) + if r.TryDecodeAsNil() { + x.Type = "" } else { - z.DecFallback(&x.Value, true) + 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 yyxt13 := z.Extension(z.I2Rtid(x.Assert)); yyxt13 != nil { - z.DecExtension(x.Assert, yyxt13) + if r.TryDecodeAsNil() { + x.Assert = nil } else { - z.DecFallback(&x.Assert, true) + 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": - x.Priority = (float64)(r.DecodeFloat64()) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj15 int @@ -7798,212 +10704,284 @@ func (x *DefineFieldStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl15 { yyb15 = yyj15 > l } else { - yyb15 = z.DecCheckBreak() + yyb15 = r.CheckBreak() } if yyb15 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb15 = r.CheckBreak() } if yyb15 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil } else { - yyb15 = z.DecCheckBreak() - } - if yyb15 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt19 := z.Extension(z.I2Rtid(x.Perms)); yyxt19 != nil { - z.DecExtension(x.Perms, yyxt19) - } else { - z.DecFallback(&x.Perms, true) + x.What.CodecDecodeSelf(d) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { - yyb15 = z.DecCheckBreak() + yyb15 = r.CheckBreak() } if yyb15 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Type = (string)(string(r.DecodeStringAsBytes())) - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Perms = nil } else { - yyb15 = z.DecCheckBreak() - } - if yyb15 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - x.Kind = (string)(string(r.DecodeStringAsBytes())) - yyj15++ - if yyhl15 { - yyb15 = yyj15 > l - } else { - yyb15 = z.DecCheckBreak() - } - if yyb15 { - z.DecReadArrayEnd() - return - } - z.DecReadArrayElem() - if yyxt23 := z.Extension(z.I2Rtid(x.Value)); yyxt23 != nil { - z.DecExtension(x.Value, yyxt23) - } else { - z.DecFallback(&x.Value, true) + 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 = z.DecCheckBreak() + yyb15 = r.CheckBreak() } if yyb15 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt25 := z.Extension(z.I2Rtid(x.Assert)); yyxt25 != nil { - z.DecExtension(x.Assert, yyxt25) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Type = "" } else { - z.DecFallback(&x.Assert, true) + x.Type = (string)(r.DecodeString()) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { - yyb15 = z.DecCheckBreak() + yyb15 = r.CheckBreak() } if yyb15 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Priority = (float64)(r.DecodeFloat64()) + 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 = z.DecCheckBreak() + yyb15 = r.CheckBreak() } if yyb15 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj15-1, "") } + r.ReadArrayEnd() } func (x *RemoveFieldStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapEnd() } } } func (x *RemoveFieldStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = RemoveFieldStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *RemoveFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -8013,35 +10991,41 @@ func (x *RemoveFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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": - x.What.CodecDecodeSelf(d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -8051,148 +11035,213 @@ func (x *RemoveFieldStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil + } else { + x.What.CodecDecodeSelf(d) + } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *DefineIndexStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayElem() - x.Cols.CodecEncodeSelf(e) - z.EncWriteArrayElem() - r.EncodeBool(bool(x.Uniq)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(4) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(4) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cols\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Cols == nil { + r.EncodeNil() + } else { + x.Cols.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Cols`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cols\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Cols`) + } + r.WriteMapElemValue() + if x.Cols == nil { + r.EncodeNil() + } else { + x.Cols.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - x.Cols.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Uniq\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Uniq)) + } } else { - r.EncodeString(`Uniq`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Uniq\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Uniq`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Uniq)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Uniq)) - z.EncWriteMapEnd() } } } func (x *DefineIndexStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DefineIndexStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DefineIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -8202,39 +11251,53 @@ func (x *DefineIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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": - x.What.CodecDecodeSelf(d) + if r.TryDecodeAsNil() { + x.What = nil + } else { + x.What.CodecDecodeSelf(d) + } case "Cols": - x.Cols.CodecDecodeSelf(d) + if r.TryDecodeAsNil() { + x.Cols = nil + } else { + x.Cols.CodecDecodeSelf(d) + } case "Uniq": - x.Uniq = (bool)(r.DecodeBool()) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int @@ -8244,152 +11307,205 @@ func (x *DefineIndexStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil + } else { + x.What.CodecDecodeSelf(d) + } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Cols.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cols = nil + } else { + x.Cols.CodecDecodeSelf(d) + } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Uniq = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Uniq = false + } else { + x.Uniq = (bool)(r.DecodeBool()) + } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } + r.ReadArrayEnd() } func (x *RemoveIndexStatement) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - if yyn3 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn3 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`What`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapEnd() } } } func (x *RemoveIndexStatement) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = RemoveIndexStatement{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *RemoveIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -8399,35 +11515,41 @@ func (x *RemoveIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decode break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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": - x.What.CodecDecodeSelf(d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -8437,116 +11559,144 @@ func (x *RemoveIndexStatement) codecDecodeSelfFromArray(l int, d *codec1978.Deco if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil + } else { + x.What.CodecDecodeSelf(d) + } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x Exprs) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encExprs((Exprs)(x), e) - } // end block: if x slice == nil + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decExprs((*Exprs)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(0) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(0) - z.EncWriteMapEnd() + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = All{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *All) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -8556,22 +11706,23 @@ func (x *All) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int @@ -8582,64 +11733,77 @@ func (x *All) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl4 { yyb4 = yyj4 > l } else { - yyb4 = z.DecCheckBreak() + yyb4 = r.CheckBreak() } if yyb4 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } + r.ReadArrayEnd() } func (x *Any) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(0) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(0) - z.EncWriteMapEnd() + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Any{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Any) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -8649,22 +11813,23 @@ func (x *Any) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int @@ -8675,64 +11840,77 @@ func (x *Any) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl4 { yyb4 = yyj4 > l } else { - yyb4 = z.DecCheckBreak() + yyb4 = r.CheckBreak() } if yyb4 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } + r.ReadArrayEnd() } func (x *Null) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(0) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(0) - z.EncWriteMapEnd() + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Null{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Null) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -8742,22 +11920,23 @@ func (x *Null) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int @@ -8768,64 +11947,77 @@ func (x *Null) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl4 { yyb4 = yyj4 > l } else { - yyb4 = z.DecCheckBreak() + yyb4 = r.CheckBreak() } if yyb4 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } + r.ReadArrayEnd() } func (x *Void) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(0) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(0) - z.EncWriteMapEnd() + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Void{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Void) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -8835,22 +12027,23 @@ func (x *Void) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int @@ -8861,64 +12054,77 @@ func (x *Void) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl4 { yyb4 = yyj4 > l } else { - yyb4 = z.DecCheckBreak() + yyb4 = r.CheckBreak() } if yyb4 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } + r.ReadArrayEnd() } func (x *Empty) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(0) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(0) - z.EncWriteMapEnd() + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Empty{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Empty) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -8928,22 +12134,23 @@ func (x *Empty) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int @@ -8954,102 +12161,146 @@ func (x *Empty) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl4 { yyb4 = yyj4 > l } else { - yyb4 = z.DecCheckBreak() + yyb4 = r.CheckBreak() } if yyb4 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } + r.ReadArrayEnd() } func (x *Field) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(3) - z.EncWriteArrayElem() - if yyxt6 := z.Extension(z.I2Rtid(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() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(3) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") + 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.EncodeString(`Expr`) + r.WriteMapStart(3) } - z.EncWriteMapElemValue() - if yyxt9 := z.Extension(z.I2Rtid(x.Expr)); yyxt9 != nil { - z.EncExtension(x.Expr, yyxt9) + 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 { - z.EncFallback(x.Expr) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Field\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Field)) + } } else { - r.EncodeString(`Field`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Field\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Field`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Field)) + } } - z.EncWriteMapElemValue() - r.EncodeString(string(x.Field)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Alias\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Alias)) + } } else { - r.EncodeString(`Alias`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Alias\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Alias`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Alias)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - r.EncodeString(string(x.Alias)) - z.EncWriteMapEnd() } } } func (x *Field) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Field{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Field) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -9059,32 +12310,46 @@ func (x *Field) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Expr": - if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.DecExtension(x.Expr, yyxt5) + if r.TryDecodeAsNil() { + x.Expr = nil } else { - z.DecFallback(&x.Expr, true) + 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": - x.Field = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.Field = "" + } else { + x.Field = (string)(r.DecodeString()) + } case "Alias": - x.Alias = (string)(string(r.DecodeStringAsBytes())) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int @@ -9094,141 +12359,190 @@ func (x *Field) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt10 := z.Extension(z.I2Rtid(x.Expr)); yyxt10 != nil { - z.DecExtension(x.Expr, yyxt10) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Expr = nil } else { - z.DecFallback(&x.Expr, true) + 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 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Field = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Field = "" + } else { + x.Field = (string)(r.DecodeString()) + } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Alias = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Alias = "" + } else { + x.Alias = (string)(r.DecodeString()) + } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } + r.ReadArrayEnd() } func (x Fields) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encFields((Fields)(x), e) - } // end block: if x slice == nil + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decFields((*Fields)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { - z.EncExtension(x.Expr, yyxt4) - } else { - z.EncFallback(x.Expr) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") + 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.EncodeString(`Expr`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.EncExtension(x.Expr, yyxt5) + 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 { - z.EncFallback(x.Expr) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *Group) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Group{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Group) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -9238,28 +12552,34 @@ func (x *Group) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Expr": - if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.DecExtension(x.Expr, yyxt5) + if r.TryDecodeAsNil() { + x.Expr = nil } else { - z.DecFallback(&x.Expr, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -9269,151 +12589,206 @@ func (x *Group) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { - z.DecExtension(x.Expr, yyxt8) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Expr = nil } else { - z.DecFallback(&x.Expr, true) + 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 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x Groups) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encGroups((Groups)(x), e) - } // end block: if x slice == nil + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decGroups((*Groups)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(3) - z.EncWriteArrayElem() - if yyxt6 := z.Extension(z.I2Rtid(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(z.I2Rtid(yy8)); yyxt9 != nil { - z.EncExtension(yy8, yyxt9) - } else if !z.EncBinary() { - z.EncTextMarshal(yy8) - } else { - z.EncFallback(yy8) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(3) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") + 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.EncodeString(`Expr`) + r.WriteMapStart(3) } - z.EncWriteMapElemValue() - if yyxt10 := z.Extension(z.I2Rtid(x.Expr)); yyxt10 != nil { - z.EncExtension(x.Expr, yyxt10) + 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 { - z.EncFallback(x.Expr) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Dir\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeBool(bool(x.Dir)) + } } else { - r.EncodeString(`Dir`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Dir\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Dir`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Dir)) + } } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Dir)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Tag\"") + 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.EncodeString(`Tag`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Tag\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } } - z.EncWriteMapElemValue() - yy12 := &x.Tag - if yyxt13 := z.Extension(z.I2Rtid(yy12)); yyxt13 != nil { - z.EncExtension(yy12, yyxt13) - } else if !z.EncBinary() { - z.EncTextMarshal(yy12) + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - z.EncFallback(yy12) + r.WriteMapEnd() } - z.EncWriteMapEnd() } } } func (x *Order) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Order{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Order) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -9423,38 +12798,53 @@ func (x *Order) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Expr": - if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.DecExtension(x.Expr, yyxt5) + if r.TryDecodeAsNil() { + x.Expr = nil } else { - z.DecFallback(&x.Expr, true) + 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": - x.Dir = (bool)(r.DecodeBool()) - case "Tag": - if yyxt8 := z.Extension(z.I2Rtid(x.Tag)); yyxt8 != nil { - z.DecExtension(x.Tag, yyxt8) - } else if !z.DecBinary() { - z.DecTextUnmarshal(&x.Tag) + if r.TryDecodeAsNil() { + x.Dir = false } else { - z.DecFallback(&x.Tag, false) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj9 int @@ -9464,147 +12854,197 @@ func (x *Order) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt11 := z.Extension(z.I2Rtid(x.Expr)); yyxt11 != nil { - z.DecExtension(x.Expr, yyxt11) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Expr = nil } else { - z.DecFallback(&x.Expr, true) + 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 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Dir = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Dir = false + } else { + x.Dir = (bool)(r.DecodeBool()) + } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { - yyb9 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt14 := z.Extension(z.I2Rtid(x.Tag)); yyxt14 != nil { - z.DecExtension(x.Tag, yyxt14) - } else if !z.DecBinary() { - z.DecTextUnmarshal(&x.Tag) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Tag = pkg1_language.Tag{} } else { - z.DecFallback(&x.Tag, false) + 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 = z.DecCheckBreak() + yyb9 = r.CheckBreak() } if yyb9 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj9-1, "") } + r.ReadArrayEnd() } func (x Orders) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encOrders((Orders)(x), e) - } // end block: if x slice == nil + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decOrders((*Orders)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { - z.EncExtension(x.Expr, yyxt4) - } else { - z.EncFallback(x.Expr) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") + 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.EncodeString(`Expr`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.EncExtension(x.Expr, yyxt5) + 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 { - z.EncFallback(x.Expr) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *Fetch) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Fetch{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Fetch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -9614,28 +13054,34 @@ func (x *Fetch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Expr": - if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.DecExtension(x.Expr, yyxt5) + if r.TryDecodeAsNil() { + x.Expr = nil } else { - z.DecFallback(&x.Expr, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -9645,117 +13091,158 @@ func (x *Fetch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { - z.DecExtension(x.Expr, yyxt8) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Expr = nil } else { - z.DecFallback(&x.Expr, true) + 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 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x Fetchs) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encFetchs((Fetchs)(x), e) - } // end block: if x slice == nil + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decFetchs((*Fetchs)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { - z.EncExtension(x.Expr, yyxt4) - } else { - z.EncFallback(x.Expr) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") + 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.EncodeString(`Expr`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.EncExtension(x.Expr, yyxt5) + 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 { - z.EncFallback(x.Expr) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *SubExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = SubExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *SubExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -9765,28 +13252,34 @@ func (x *SubExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Expr": - if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { - z.DecExtension(x.Expr, yyxt5) + if r.TryDecodeAsNil() { + x.Expr = nil } else { - z.DecFallback(&x.Expr, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -9796,99 +13289,126 @@ func (x *SubExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { - z.DecExtension(x.Expr, yyxt8) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Expr = nil } else { - z.DecFallback(&x.Expr, true) + 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 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *MultExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") + 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.EncodeString(`Expr`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if x.Expr == nil { - r.EncodeNil() + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Expr == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSliceExpr(([]Expr)(x.Expr), e) + } + } } else { - h.encSliceExpr(([]Expr)(x.Expr), e) - } // end block: if x.Expr slice == nil - z.EncWriteMapEnd() + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Expr\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = MultExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *MultExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -9898,24 +13418,32 @@ func (x *MultExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Expr": - h.decSliceExpr((*[]Expr)(&x.Expr), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -9925,107 +13453,156 @@ func (x *MultExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - h.decSliceExpr((*[]Expr)(&x.Expr), d) + 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 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *FuncExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(3) - z.EncWriteArrayElem() - r.EncodeString(string(x.Name)) - z.EncWriteArrayElem() - x.Args.CodecEncodeSelf(e) - z.EncWriteArrayElem() - r.EncodeBool(bool(x.Aggr)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(3) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + 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.EncodeString(`Name`) + r.WriteMapStart(3) } - z.EncWriteMapElemValue() - r.EncodeString(string(x.Name)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Args\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Name)) + } } else { - r.EncodeString(`Args`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.Name)) + } } - z.EncWriteMapElemValue() - x.Args.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Aggr\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Args == nil { + r.EncodeNil() + } else { + x.Args.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Aggr`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Args\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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(codecSelferCcUTF8216, `Aggr`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeBool(bool(x.Aggr)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - r.EncodeBool(bool(x.Aggr)) - z.EncWriteMapEnd() } } } func (x *FuncExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = FuncExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *FuncExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -10035,28 +13612,41 @@ func (x *FuncExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Name": - x.Name = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } case "Args": - x.Args.CodecDecodeSelf(d) + if r.TryDecodeAsNil() { + x.Args = nil + } else { + x.Args.CodecDecodeSelf(d) + } case "Aggr": - x.Aggr = (bool)(r.DecodeBool()) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int @@ -10066,163 +13656,219 @@ func (x *FuncExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Name = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = (string)(r.DecodeString()) + } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Args.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Args = nil + } else { + x.Args.CodecDecodeSelf(d) + } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Aggr = (bool)(r.DecodeBool()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Aggr = false + } else { + x.Aggr = (bool)(r.DecodeBool()) + } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } + r.ReadArrayEnd() } func (x *ItemExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(3) - z.EncWriteArrayElem() - if yyxt6 := z.Extension(z.I2Rtid(x.LHS)); yyxt6 != nil { - z.EncExtension(x.LHS, yyxt6) - } else { - z.EncFallback(x.LHS) - } - z.EncWriteArrayElem() - 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)) - } - z.EncWriteArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.RHS)); yyxt8 != nil { - z.EncExtension(x.RHS, yyxt8) - } else { - z.EncFallback(x.RHS) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(3) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"LHS\"") + 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.EncodeString(`LHS`) + r.WriteMapStart(3) } - z.EncWriteMapElemValue() - if yyxt9 := z.Extension(z.I2Rtid(x.LHS)); yyxt9 != nil { - z.EncExtension(x.LHS, yyxt9) + 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 { - z.EncFallback(x.LHS) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LHS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Op\"") + 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.EncodeString(`Op`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Op\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemValue() - if yyxt10 := z.Extension(z.I2Rtid(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) + 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.EncodeInt(int64(x.Op)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RHS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RHS\"") + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeString(`RHS`) + r.WriteMapEnd() } - z.EncWriteMapElemValue() - if yyxt11 := z.Extension(z.I2Rtid(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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = ItemExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *ItemExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -10232,42 +13878,58 @@ func (x *ItemExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "LHS": - if yyxt5 := z.Extension(z.I2Rtid(x.LHS)); yyxt5 != nil { - z.DecExtension(x.LHS, yyxt5) + if r.TryDecodeAsNil() { + x.LHS = nil } else { - z.DecFallback(&x.LHS, true) + 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 yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil { - z.DecExtension(x.Op, yyxt7) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Op) + if r.TryDecodeAsNil() { + x.Op = 0 } else { - x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 yyxt9 := z.Extension(z.I2Rtid(x.RHS)); yyxt9 != nil { - z.DecExtension(x.RHS, yyxt9) + if r.TryDecodeAsNil() { + x.RHS = nil } else { - z.DecFallback(&x.RHS, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj10 int @@ -10277,177 +13939,236 @@ func (x *ItemExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl10 { yyb10 = yyj10 > l } else { - yyb10 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt12 := z.Extension(z.I2Rtid(x.LHS)); yyxt12 != nil { - z.DecExtension(x.LHS, yyxt12) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LHS = nil } else { - z.DecFallback(&x.LHS, true) + 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 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt14 := z.Extension(z.I2Rtid(x.Op)); yyxt14 != nil { - z.DecExtension(x.Op, yyxt14) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Op) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Op = 0 } else { - x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt16 := z.Extension(z.I2Rtid(x.RHS)); yyxt16 != nil { - z.DecExtension(x.RHS, yyxt16) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RHS = nil } else { - z.DecFallback(&x.RHS, true) + 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 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj10-1, "") } + r.ReadArrayEnd() } func (x *BinaryExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(3) - z.EncWriteArrayElem() - if yyxt6 := z.Extension(z.I2Rtid(x.LHS)); yyxt6 != nil { - z.EncExtension(x.LHS, yyxt6) - } else { - z.EncFallback(x.LHS) - } - z.EncWriteArrayElem() - 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)) - } - z.EncWriteArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.RHS)); yyxt8 != nil { - z.EncExtension(x.RHS, yyxt8) - } else { - z.EncFallback(x.RHS) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(3) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"LHS\"") + 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.EncodeString(`LHS`) + r.WriteMapStart(3) } - z.EncWriteMapElemValue() - if yyxt9 := z.Extension(z.I2Rtid(x.LHS)); yyxt9 != nil { - z.EncExtension(x.LHS, yyxt9) + 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 { - z.EncFallback(x.LHS) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"LHS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Op\"") + 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.EncodeString(`Op`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Op\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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)) + } } - z.EncWriteMapElemValue() - if yyxt10 := z.Extension(z.I2Rtid(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) + 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.EncodeInt(int64(x.Op)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"RHS\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"RHS\"") + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - r.EncodeString(`RHS`) + r.WriteMapEnd() } - z.EncWriteMapElemValue() - if yyxt11 := z.Extension(z.I2Rtid(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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = BinaryExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *BinaryExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -10457,42 +14178,58 @@ func (x *BinaryExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "LHS": - if yyxt5 := z.Extension(z.I2Rtid(x.LHS)); yyxt5 != nil { - z.DecExtension(x.LHS, yyxt5) + if r.TryDecodeAsNil() { + x.LHS = nil } else { - z.DecFallback(&x.LHS, true) + 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 yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil { - z.DecExtension(x.Op, yyxt7) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Op) + if r.TryDecodeAsNil() { + x.Op = 0 } else { - x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 yyxt9 := z.Extension(z.I2Rtid(x.RHS)); yyxt9 != nil { - z.DecExtension(x.RHS, yyxt9) + if r.TryDecodeAsNil() { + x.RHS = nil } else { - z.DecFallback(&x.RHS, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj10 int @@ -10502,125 +14239,164 @@ func (x *BinaryExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl10 { yyb10 = yyj10 > l } else { - yyb10 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt12 := z.Extension(z.I2Rtid(x.LHS)); yyxt12 != nil { - z.DecExtension(x.LHS, yyxt12) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LHS = nil } else { - z.DecFallback(&x.LHS, true) + 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 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt14 := z.Extension(z.I2Rtid(x.Op)); yyxt14 != nil { - z.DecExtension(x.Op, yyxt14) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Op) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Op = 0 } else { - x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt16 := z.Extension(z.I2Rtid(x.RHS)); yyxt16 != nil { - z.DecExtension(x.RHS, yyxt16) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RHS = nil } else { - z.DecFallback(&x.RHS, true) + 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 = z.DecCheckBreak() + yyb10 = r.CheckBreak() } if yyb10 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj10-1, "") } + r.ReadArrayEnd() } func (x *PathExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - x.Expr.CodecEncodeSelf(e) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Expr\"") + 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.EncodeString(`Expr`) + 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(codecSelferCcUTF8216, `Expr`) + } + r.WriteMapElemValue() + if x.Expr == nil { + r.EncodeNil() + } else { + x.Expr.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - x.Expr.CodecEncodeSelf(e) - z.EncWriteMapEnd() } } } func (x *PathExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = PathExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *PathExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -10630,24 +14406,29 @@ func (x *PathExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Expr": - x.Expr.CodecDecodeSelf(d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -10657,95 +14438,125 @@ func (x *PathExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.Expr.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Expr = nil + } else { + x.Expr.CodecDecodeSelf(d) + } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x *PartExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - if yyxt4 := z.Extension(z.I2Rtid(x.Part)); yyxt4 != nil { - z.EncExtension(x.Part, yyxt4) - } else { - z.EncFallback(x.Part) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Part\"") + 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.EncodeString(`Part`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyxt5 := z.Extension(z.I2Rtid(x.Part)); yyxt5 != nil { - z.EncExtension(x.Part, yyxt5) + 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 { - z.EncFallback(x.Part) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Part\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *PartExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = PartExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *PartExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -10755,28 +14566,34 @@ func (x *PartExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Part": - if yyxt5 := z.Extension(z.I2Rtid(x.Part)); yyxt5 != nil { - z.DecExtension(x.Part, yyxt5) + if r.TryDecodeAsNil() { + x.Part = nil } else { - z.DecFallback(&x.Part, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -10786,107 +14603,130 @@ func (x *PartExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Part)); yyxt8 != nil { - z.DecExtension(x.Part, yyxt8) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Part = nil } else { - z.DecFallback(&x.Part, true) + 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 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *JoinExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - 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)) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Join\"") + 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.EncodeString(`Join`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - 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) + 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.EncodeInt(int64(x.Join)) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Join\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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() } - z.EncWriteMapEnd() } } } func (x *JoinExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = JoinExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *JoinExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -10896,30 +14736,36 @@ func (x *JoinExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Join": - if yyxt5 := z.Extension(z.I2Rtid(x.Join)); yyxt5 != nil { - z.DecExtension(x.Join, yyxt5) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Join) + if r.TryDecodeAsNil() { + x.Join = 0 } else { - x.Join = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -10929,131 +14775,189 @@ func (x *JoinExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Join)); yyxt8 != nil { - z.DecExtension(x.Join, yyxt8) - } else if z.DecBinary() { - z.DecBinaryUnmarshal(&x.Join) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Join = 0 } else { - x.Join = (Token)(z.C.IntV(r.DecodeInt64(), 16)) + 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 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *SubpExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - var yyn4 bool = x.Name == nil - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(3) - z.EncWriteArrayElem() - x.What.CodecEncodeSelf(e) - if yyn4 { - z.EncWriteArrayElem() - r.EncodeNil() - } else { - z.EncWriteArrayElem() - x.Name.CodecEncodeSelf(e) - } - z.EncWriteArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Cond)); yyxt8 != nil { - z.EncExtension(x.Cond, yyxt8) - } else { - z.EncFallback(x.Cond) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(3) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"What\"") + 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.EncodeString(`What`) + r.WriteMapStart(3) } - z.EncWriteMapElemValue() - x.What.CodecEncodeSelf(e) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Name\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } else { - r.EncodeString(`Name`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"What\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `What`) + } + r.WriteMapElemValue() + if x.What == nil { + r.EncodeNil() + } else { + x.What.CodecEncodeSelf(e) + } } - z.EncWriteMapElemValue() - if yyn4 { - r.EncodeNil() + 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 { - x.Name.CodecEncodeSelf(e) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Name\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Name`) + } + r.WriteMapElemValue() + if yyn6 { + r.EncodeNil() + } else { + if x.Name == nil { + r.EncodeNil() + } else { + x.Name.CodecEncodeSelf(e) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Cond\"") + 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.EncodeString(`Cond`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Cond\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt11 := z.Extension(z.I2Rtid(x.Cond)); yyxt11 != nil { - z.EncExtension(x.Cond, yyxt11) + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - z.EncFallback(x.Cond) + r.WriteMapEnd() } - z.EncWriteMapEnd() } } } func (x *SubpExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = SubpExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *SubpExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -11063,41 +14967,52 @@ func (x *SubpExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "What": - x.What.CodecDecodeSelf(d) + if r.TryDecodeAsNil() { + x.What = nil + } else { + x.What.CodecDecodeSelf(d) + } case "Name": - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 yyxt7 := z.Extension(z.I2Rtid(x.Cond)); yyxt7 != nil { - z.DecExtension(x.Cond, yyxt7) + if r.TryDecodeAsNil() { + x.Cond = nil } else { - z.DecFallback(&x.Cond, true) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int @@ -11107,186 +15022,261 @@ func (x *SubpExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.What.CodecDecodeSelf(d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.What = nil + } else { + x.What.CodecDecodeSelf(d) + } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.Name != nil { // remove the if-true + 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 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt12 := z.Extension(z.I2Rtid(x.Cond)); yyxt12 != nil { - z.DecExtension(x.Cond, yyxt12) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Cond = nil } else { - z.DecFallback(&x.Cond, true) + 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 } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } + r.ReadArrayEnd() } func (x *PermExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(4) - z.EncWriteArrayElem() - if yyxt7 := z.Extension(z.I2Rtid(x.Select)); yyxt7 != nil { - z.EncExtension(x.Select, yyxt7) - } else { - z.EncFallback(x.Select) - } - z.EncWriteArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Create)); yyxt8 != nil { - z.EncExtension(x.Create, yyxt8) - } else { - z.EncFallback(x.Create) - } - z.EncWriteArrayElem() - if yyxt9 := z.Extension(z.I2Rtid(x.Update)); yyxt9 != nil { - z.EncExtension(x.Update, yyxt9) - } else { - z.EncFallback(x.Update) - } - z.EncWriteArrayElem() - if yyxt10 := z.Extension(z.I2Rtid(x.Delete)); yyxt10 != nil { - z.EncExtension(x.Delete, yyxt10) - } else { - z.EncFallback(x.Delete) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(4) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Select\"") + 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.EncodeString(`Select`) + r.WriteMapStart(4) } - z.EncWriteMapElemValue() - if yyxt11 := z.Extension(z.I2Rtid(x.Select)); yyxt11 != nil { - z.EncExtension(x.Select, yyxt11) + 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) + } + } } else { - z.EncFallback(x.Select) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Select\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Create\"") + 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) + } + } } else { - r.EncodeString(`Create`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Create\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt12 := z.Extension(z.I2Rtid(x.Create)); yyxt12 != nil { - z.EncExtension(x.Create, yyxt12) + 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) + } + } } else { - z.EncFallback(x.Create) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Update\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Update\"") + 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) + } + } } else { - r.EncodeString(`Update`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Delete\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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) + } + } } - z.EncWriteMapElemValue() - if yyxt13 := z.Extension(z.I2Rtid(x.Update)); yyxt13 != nil { - z.EncExtension(x.Update, yyxt13) + if yyr2 || yy2arr2 { + r.WriteArrayEnd() } else { - z.EncFallback(x.Update) + r.WriteMapEnd() } - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Delete\"") - } else { - r.EncodeString(`Delete`) - } - z.EncWriteMapElemValue() - if yyxt14 := z.Extension(z.I2Rtid(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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = PermExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *PermExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -11296,46 +15286,67 @@ func (x *PermExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Select": - if yyxt5 := z.Extension(z.I2Rtid(x.Select)); yyxt5 != nil { - z.DecExtension(x.Select, yyxt5) + if r.TryDecodeAsNil() { + x.Select = nil } else { - z.DecFallback(&x.Select, true) + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(x.Select)); yyxt5 != nil { + z.DecExtension(x.Select, yyxt5) + } else { + z.DecFallback(&x.Select, true) + } } case "Create": - if yyxt7 := z.Extension(z.I2Rtid(x.Create)); yyxt7 != nil { - z.DecExtension(x.Create, yyxt7) + if r.TryDecodeAsNil() { + x.Create = nil } else { - z.DecFallback(&x.Create, true) + if false { + } else if yyxt7 := z.Extension(z.I2Rtid(x.Create)); yyxt7 != nil { + z.DecExtension(x.Create, yyxt7) + } else { + z.DecFallback(&x.Create, true) + } } case "Update": - if yyxt9 := z.Extension(z.I2Rtid(x.Update)); yyxt9 != nil { - z.DecExtension(x.Update, yyxt9) + if r.TryDecodeAsNil() { + x.Update = nil } else { - z.DecFallback(&x.Update, true) + 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 yyxt11 := z.Extension(z.I2Rtid(x.Delete)); yyxt11 != nil { - z.DecExtension(x.Delete, yyxt11) + if r.TryDecodeAsNil() { + x.Delete = nil } else { - z.DecFallback(&x.Delete, true) + if false { + } else if yyxt11 := z.Extension(z.I2Rtid(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 + r.ReadMapEnd() } func (x *PermExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj12 int @@ -11345,147 +15356,189 @@ func (x *PermExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl12 { yyb12 = yyj12 > l } else { - yyb12 = z.DecCheckBreak() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt14 := z.Extension(z.I2Rtid(x.Select)); yyxt14 != nil { - z.DecExtension(x.Select, yyxt14) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Select = nil } else { - z.DecFallback(&x.Select, true) + if false { + } else if yyxt14 := z.Extension(z.I2Rtid(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() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt16 := z.Extension(z.I2Rtid(x.Create)); yyxt16 != nil { - z.DecExtension(x.Create, yyxt16) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Create = nil } else { - z.DecFallback(&x.Create, true) + if false { + } else if yyxt16 := z.Extension(z.I2Rtid(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() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt18 := z.Extension(z.I2Rtid(x.Update)); yyxt18 != nil { - z.DecExtension(x.Update, yyxt18) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Update = nil } else { - z.DecFallback(&x.Update, true) + if false { + } else if yyxt18 := z.Extension(z.I2Rtid(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() + yyb12 = r.CheckBreak() } if yyb12 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt20 := z.Extension(z.I2Rtid(x.Delete)); yyxt20 != nil { - z.DecExtension(x.Delete, yyxt20) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Delete = nil } else { - z.DecFallback(&x.Delete, true) + if false { + } else if yyxt20 := z.Extension(z.I2Rtid(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() + yyb12 = r.CheckBreak() } if yyb12 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj12-1, "") } + r.ReadArrayEnd() } func (x *DataExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") + 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.EncodeString(`Data`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if x.Data == nil { - r.EncodeNil() + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.Data == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoItemExpression(([]*ItemExpression)(x.Data), e) + } + } } else { - h.encSlicePtrtoItemExpression(([]*ItemExpression)(x.Data), e) - } // end block: if x.Data slice == nil - z.EncWriteMapEnd() + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `Data`) + } + r.WriteMapElemValue() + if x.Data == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoItemExpression(([]*ItemExpression)(x.Data), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() + } } } } func (x *DataExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DataExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DataExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -11495,24 +15548,32 @@ func (x *DataExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Data": - h.decSlicePtrtoItemExpression((*[]*ItemExpression)(&x.Data), d) + if r.TryDecodeAsNil() { + x.Data = nil + } else { + if false { + } else { + h.decSlicePtrtoItemExpression((*[]*ItemExpression)(&x.Data), 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -11522,95 +15583,128 @@ func (x *DataExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - h.decSlicePtrtoItemExpression((*[]*ItemExpression)(&x.Data), d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil + } else { + if false { + } else { + h.decSlicePtrtoItemExpression((*[]*ItemExpression)(&x.Data), d) + } + } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *DiffExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { - z.EncExtension(x.Data, yyxt4) - } else { - z.EncFallback(x.Data) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") + 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.EncodeString(`Data`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.EncExtension(x.Data, yyxt5) + 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 { - z.EncFallback(x.Data) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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 yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapEnd() } } } func (x *DiffExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = DiffExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *DiffExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -11620,28 +15714,34 @@ func (x *DiffExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Data": - if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.DecExtension(x.Data, yyxt5) + if r.TryDecodeAsNil() { + x.Data = nil } else { - z.DecFallback(&x.Data, true) + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(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 + r.ReadMapEnd() } func (x *DiffExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -11651,99 +15751,130 @@ func (x *DiffExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { - z.DecExtension(x.Data, yyxt8) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil } else { - z.DecFallback(&x.Data, true) + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(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() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *MergeExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { - z.EncExtension(x.Data, yyxt4) - } else { - z.EncFallback(x.Data) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") + 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.EncodeString(`Data`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.EncExtension(x.Data, yyxt5) + 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 { - z.EncFallback(x.Data) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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 yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapEnd() } } } func (x *MergeExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = MergeExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *MergeExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -11753,28 +15884,34 @@ func (x *MergeExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Data": - if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.DecExtension(x.Data, yyxt5) + if r.TryDecodeAsNil() { + x.Data = nil } else { - z.DecFallback(&x.Data, true) + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(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 + r.ReadMapEnd() } func (x *MergeExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -11784,99 +15921,130 @@ func (x *MergeExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { - z.DecExtension(x.Data, yyxt8) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil } else { - z.DecFallback(&x.Data, true) + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(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() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x *ContentExpression) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { - z.EncExtension(x.Data, yyxt4) - } else { - z.EncFallback(x.Data) - } - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"Data\"") + 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.EncodeString(`Data`) + r.WriteMapStart(1) } - z.EncWriteMapElemValue() - if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.EncExtension(x.Data, yyxt5) + 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 { - z.EncFallback(x.Data) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"Data\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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 yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapEnd() } } } func (x *ContentExpression) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = ContentExpression{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *ContentExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -11886,28 +16054,34 @@ func (x *ContentExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "Data": - if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { - z.DecExtension(x.Data, yyxt5) + if r.TryDecodeAsNil() { + x.Data = nil } else { - z.DecFallback(&x.Data, true) + if false { + } else if yyxt5 := z.Extension(z.I2Rtid(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 + r.ReadMapEnd() } func (x *ContentExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -11917,109 +16091,146 @@ func (x *ContentExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { - z.DecExtension(x.Data, yyxt8) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.Data = nil } else { - z.DecFallback(&x.Data, true) + if false { + } else if yyxt8 := z.Extension(z.I2Rtid(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() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x Params) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encParams((Params)(x), e) - } // end block: if x slice == nil + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encParams((Params)(x), e) + } + } } func (x *Params) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decParams((*Params)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - r.EncodeString(string(x.VA)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"VA\"") + 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.EncodeString(`VA`) + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.VA)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VA\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `VA`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.VA)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - r.EncodeString(string(x.VA)) - z.EncWriteMapEnd() } } } func (x *Param) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Param{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Param) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -12029,24 +16240,29 @@ func (x *Param) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "VA": - x.VA = (string)(string(r.DecodeStringAsBytes())) + 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 *Param) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -12056,105 +16272,141 @@ func (x *Param) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.VA = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VA = "" + } else { + x.VA = (string)(r.DecodeString()) + } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x Idents) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encIdents((Idents)(x), e) - } // end block: if x slice == nil + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encIdents((Idents)(x), e) + } + } } func (x *Idents) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decIdents((*Idents)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - r.EncodeString(string(x.VA)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"VA\"") + 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.EncodeString(`VA`) + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.VA)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VA\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `VA`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.VA)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - r.EncodeString(string(x.VA)) - z.EncWriteMapEnd() } } } func (x *Ident) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Ident{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Ident) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -12164,24 +16416,29 @@ func (x *Ident) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "VA": - x.VA = (string)(string(r.DecodeStringAsBytes())) + 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 *Ident) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -12191,105 +16448,141 @@ func (x *Ident) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.VA = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VA = "" + } else { + x.VA = (string)(r.DecodeString()) + } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x Values) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encValues((Values)(x), e) - } // end block: if x slice == nil + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decValues((*Values)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - r.EncodeString(string(x.VA)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"VA\"") + 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.EncodeString(`VA`) + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.VA)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VA\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `VA`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.VA)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - r.EncodeString(string(x.VA)) - z.EncWriteMapEnd() } } } func (x *Value) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Value{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Value) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -12299,24 +16592,29 @@ func (x *Value) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "VA": - x.VA = (string)(string(r.DecodeStringAsBytes())) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -12326,105 +16624,141 @@ func (x *Value) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.VA = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VA = "" + } else { + x.VA = (string)(r.DecodeString()) + } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x Regexs) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encRegexs((Regexs)(x), e) - } // end block: if x slice == nil + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decRegexs((*Regexs)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - r.EncodeString(string(x.VA)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"VA\"") + 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.EncodeString(`VA`) + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.VA)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"VA\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `VA`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.VA)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - r.EncodeString(string(x.VA)) - z.EncWriteMapEnd() } } } func (x *Regex) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Regex{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Regex) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -12434,24 +16768,29 @@ func (x *Regex) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "VA": - x.VA = (string)(string(r.DecodeStringAsBytes())) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -12461,105 +16800,141 @@ func (x *Regex) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.VA = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.VA = "" + } else { + x.VA = (string)(r.DecodeString()) + } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x Tables) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encTables((Tables)(x), e) - } // end block: if x slice == nil + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decTables((*Tables)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() - r.EncodeString(string(x.TB)) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"TB\"") + 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.EncodeString(`TB`) + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.TB)) + } + } else { + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `TB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.TB)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - r.EncodeString(string(x.TB)) - z.EncWriteMapEnd() } } } func (x *Table) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Table{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Table) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -12569,24 +16944,29 @@ func (x *Table) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "TB": - x.TB = (string)(string(r.DecodeStringAsBytes())) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int @@ -12596,123 +16976,168 @@ func (x *Table) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.TB = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TB = "" + } else { + x.TB = (string)(r.DecodeString()) + } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { - yyb5 = z.DecCheckBreak() + yyb5 = r.CheckBreak() } if yyb5 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } + r.ReadArrayEnd() } func (x Batchs) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encBatchs((Batchs)(x), e) - } // end block: if x slice == nil + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decBatchs((*Batchs)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"TB\"") + 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.EncodeString(`TB`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - r.EncodeString(string(x.TB)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"BA\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.TB)) + } } else { - r.EncodeString(`BA`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `TB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.TB)) + } } - z.EncWriteMapElemValue() - if x.BA == nil { - r.EncodeNil() + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if x.BA == nil { + r.EncodeNil() + } else { + if false { + } else { + h.encSlicePtrtoThing(([]*Thing)(x.BA), e) + } + } } else { - h.encSlicePtrtoThing(([]*Thing)(x.BA), e) - } // end block: if x.BA slice == nil - z.EncWriteMapEnd() + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"BA\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Batch{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Batch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -12722,26 +17147,38 @@ func (x *Batch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "TB": - x.TB = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.TB = "" + } else { + x.TB = (string)(r.DecodeString()) + } case "BA": - h.decSlicePtrtoThing((*[]*Thing)(&x.BA), d) + if r.TryDecodeAsNil() { + x.BA = nil + } else { + if false { + } else { + h.decSlicePtrtoThing((*[]*Thing)(&x.BA), 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int @@ -12751,147 +17188,217 @@ func (x *Batch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.TB = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TB = "" + } else { + x.TB = (string)(r.DecodeString()) + } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - h.decSlicePtrtoThing((*[]*Thing)(&x.BA), d) + 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 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } + r.ReadArrayEnd() } func (x Models) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encModels((Models)(x), e) - } // end block: if x slice == nil + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decModels((*Models)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, 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() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) } else { - z.EncWriteMapStart(4) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"TB\"") + 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.EncodeString(`TB`) + r.WriteMapStart(4) } - z.EncWriteMapElemValue() - r.EncodeString(string(x.TB)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"MIN\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.TB)) + } } else { - r.EncodeString(`MIN`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `TB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.TB)) + } } - z.EncWriteMapElemValue() - r.EncodeFloat64(float64(x.MIN)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"INC\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.MIN)) + } } else { - r.EncodeString(`INC`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"MIN\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `MIN`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.MIN)) + } } - z.EncWriteMapElemValue() - r.EncodeFloat64(float64(x.INC)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"MAX\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.INC)) + } } else { - r.EncodeString(`MAX`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"INC\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `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(codecSelferCcUTF8216, `MAX`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.MAX)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } - z.EncWriteMapElemValue() - r.EncodeFloat64(float64(x.MAX)) - z.EncWriteMapEnd() } } } func (x *Model) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Model{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Model) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -12901,30 +17408,47 @@ func (x *Model) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "TB": - x.TB = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.TB = "" + } else { + x.TB = (string)(r.DecodeString()) + } case "MIN": - x.MIN = (float64)(r.DecodeFloat64()) + if r.TryDecodeAsNil() { + x.MIN = 0 + } else { + x.MIN = (float64)(r.DecodeFloat64()) + } case "INC": - x.INC = (float64)(r.DecodeFloat64()) + if r.TryDecodeAsNil() { + x.INC = 0 + } else { + x.INC = (float64)(r.DecodeFloat64()) + } case "MAX": - x.MAX = (float64)(r.DecodeFloat64()) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int @@ -12934,151 +17458,218 @@ func (x *Model) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.TB = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TB = "" + } else { + x.TB = (string)(r.DecodeString()) + } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.MIN = (float64)(r.DecodeFloat64()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MIN = 0 + } else { + x.MIN = (float64)(r.DecodeFloat64()) + } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.INC = (float64)(r.DecodeFloat64()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.INC = 0 + } else { + x.INC = (float64)(r.DecodeFloat64()) + } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.MAX = (float64)(r.DecodeFloat64()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.MAX = 0 + } else { + x.MAX = (float64)(r.DecodeFloat64()) + } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { - yyb8 = z.DecCheckBreak() + yyb8 = r.CheckBreak() } if yyb8 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } + r.ReadArrayEnd() } func (x Things) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encThings((Things)(x), e) - } // end block: if x slice == nil + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encThings((Things)(x), e) + } + } } func (x *Things) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decThings((*Things)(x), d) + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yysep2 := !z.EncBinary() - yy2arr2 := z.EncBasicHandle().StructToArray - _, _ = yysep2, yy2arr2 - const yyr2 bool = false // struct tag has 'toArray' - if yyr2 || yy2arr2 { - z.EncWriteArrayStart(2) - z.EncWriteArrayElem() - r.EncodeString(string(x.TB)) - z.EncWriteArrayElem() - z.EncFallback(x.ID) - z.EncWriteArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else if !z.EncBinary() { + z.EncTextMarshal(x) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"TB\"") + 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.EncodeString(`TB`) + r.WriteMapStart(2) } - z.EncWriteMapElemValue() - r.EncodeString(string(x.TB)) - z.EncWriteMapElemKey() - if z.IsJSONHandle() { - z.WriteStr("\"ID\"") + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, string(x.TB)) + } } else { - r.EncodeString(`ID`) + r.WriteMapElemKey() + if z.IsJSONHandle() { + z.WriteStr("\"TB\"") + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, `TB`) + } + r.WriteMapElemValue() + if false { + } else { + r.EncodeStringEnc(codecSelferCcUTF8216, 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(codecSelferCcUTF8216, `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() } - z.EncWriteMapElemValue() - z.EncFallback(x.ID) - z.EncWriteMapEnd() } } } func (x *Thing) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Thing{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Thing) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -13088,26 +17679,38 @@ func (x *Thing) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "TB": - x.TB = (string)(string(r.DecodeStringAsBytes())) + if r.TryDecodeAsNil() { + x.TB = "" + } else { + x.TB = (string)(r.DecodeString()) + } case "ID": - z.DecFallback(&x.ID, true) + if r.TryDecodeAsNil() { + x.ID = nil + } else { + if false { + } else { + z.DecFallback(&x.ID, true) + } + } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 + r.ReadMapEnd() } func (x *Thing) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int @@ -13117,67 +17720,92 @@ func (x *Thing) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.TB = (string)(string(r.DecodeStringAsBytes())) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.TB = "" + } else { + x.TB = (string)(r.DecodeString()) + } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - z.DecFallback(&x.ID, true) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.ID = nil + } else { + if false { + } else { + z.DecFallback(&x.ID, true) + } + } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { - yyb7 = z.DecCheckBreak() + yyb7 = r.CheckBreak() } if yyb7 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } + r.ReadArrayEnd() } func (x Points) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encPoints((Points)(x), e) - } // end block: if x slice == nil + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encPoints((Points)(x), e) + } + } } func (x *Points) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decPoints((*Points)(x), d) + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decPoints((*Points)(x), d) + } } func (x *Point) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if !z.EncBinary() && z.IsJSONHandle() { + 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) } else { yysep2 := !z.EncBinary() @@ -13185,63 +17813,88 @@ func (x *Point) CodecEncodeSelf(e *codec1978.Encoder) { _, _ = yysep2, 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() + r.WriteArrayStart(2) } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() + r.WriteMapStart(2) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.LA)) + } + } else { + r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"LA\"") } else { - r.EncodeString(`LA`) + r.EncodeStringEnc(codecSelferCcUTF8216, `LA`) } - z.EncWriteMapElemValue() - r.EncodeFloat64(float64(x.LA)) - z.EncWriteMapElemKey() + 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() if z.IsJSONHandle() { z.WriteStr("\"LO\"") } else { - r.EncodeString(`LO`) + r.EncodeStringEnc(codecSelferCcUTF8216, `LO`) } - z.EncWriteMapElemValue() - r.EncodeFloat64(float64(x.LO)) - z.EncWriteMapEnd() + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.LO)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } } } } func (x *Point) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Point{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Point) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -13251,26 +17904,35 @@ func (x *Point) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "LA": - x.LA = (float64)(r.DecodeFloat64()) + if r.TryDecodeAsNil() { + x.LA = 0 + } else { + x.LA = (float64)(r.DecodeFloat64()) + } case "LO": - x.LO = (float64)(r.DecodeFloat64()) + if r.TryDecodeAsNil() { + x.LO = 0 + } else { + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -13280,141 +17942,195 @@ func (x *Point) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.LA = (float64)(r.DecodeFloat64()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LA = 0 + } else { + x.LA = (float64)(r.DecodeFloat64()) + } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.LO = (float64)(r.DecodeFloat64()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.LO = 0 + } else { + x.LO = (float64)(r.DecodeFloat64()) + } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x Circles) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encCircles((Circles)(x), e) - } // end block: if x slice == nil + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encCircles((Circles)(x), e) + } + } } func (x *Circles) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decCircles((*Circles)(x), d) + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decCircles((*Circles)(x), d) + } } func (x *Circle) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if !z.EncBinary() && z.IsJSONHandle() { + 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) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' - var yyn3 bool = x.CE == nil if yyr2 || yy2arr2 { - z.EncWriteArrayStart(2) + r.WriteArrayStart(2) + } else { + r.WriteMapStart(2) + } + var yyn3 bool + if x.CE == nil { + yyn3 = true + goto LABEL3 + } + LABEL3: + if yyr2 || yy2arr2 { if yyn3 { - z.EncWriteArrayElem() + r.WriteArrayElem() r.EncodeNil() } else { - z.EncWriteArrayElem() - x.CE.CodecEncodeSelf(e) + r.WriteArrayElem() + if x.CE == nil { + r.EncodeNil() + } else { + x.CE.CodecEncodeSelf(e) + } } - z.EncWriteArrayElem() - r.EncodeFloat64(float64(x.RA)) - z.EncWriteArrayEnd() } else { - z.EncWriteMapStart(2) - z.EncWriteMapElemKey() + r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"CE\"") } else { - r.EncodeString(`CE`) + r.EncodeStringEnc(codecSelferCcUTF8216, `CE`) } - z.EncWriteMapElemValue() + r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { - x.CE.CodecEncodeSelf(e) + if x.CE == nil { + r.EncodeNil() + } else { + x.CE.CodecEncodeSelf(e) + } } - z.EncWriteMapElemKey() + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() + if false { + } else { + r.EncodeFloat64(float64(x.RA)) + } + } else { + r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"RA\"") } else { - r.EncodeString(`RA`) + r.EncodeStringEnc(codecSelferCcUTF8216, `RA`) } - z.EncWriteMapElemValue() - r.EncodeFloat64(float64(x.RA)) - z.EncWriteMapEnd() + r.WriteMapElemValue() + if false { + } else { + r.EncodeFloat64(float64(x.RA)) + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } } } } func (x *Circle) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Circle{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Circle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -13424,35 +18140,41 @@ func (x *Circle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "CE": - if r.TryNil() { - if x.CE != nil { // remove the if-true + if r.TryDecodeAsNil() { + if true && x.CE != nil { x.CE = nil } } else { if x.CE == nil { x.CE = new(Point) } + x.CE.CodecDecodeSelf(d) } case "RA": - x.RA = (float64)(r.DecodeFloat64()) + if r.TryDecodeAsNil() { + x.RA = 0 + } else { + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -13462,76 +18184,95 @@ func (x *Circle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - if r.TryNil() { - if x.CE != nil { // remove the if-true + r.ReadArrayElem() + if r.TryDecodeAsNil() { + if true && x.CE != nil { x.CE = nil } } else { if x.CE == nil { x.CE = new(Point) } + x.CE.CodecDecodeSelf(d) } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - x.RA = (float64)(r.DecodeFloat64()) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.RA = 0 + } else { + x.RA = (float64)(r.DecodeFloat64()) + } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } func (x Polygons) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - h.encPolygons((Polygons)(x), e) - } // end block: if x slice == nil + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.EncExtension(x, yyxt1) + } else { + h.encPolygons((Polygons)(x), e) + } + } } func (x *Polygons) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - h.decPolygons((*Polygons)(x), d) + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) + } else { + h.decPolygons((*Polygons)(x), d) + } } func (x *Polygon) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - if !z.EncBinary() && z.IsJSONHandle() { + 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) } else { yysep2 := !z.EncBinary() @@ -13539,61 +18280,77 @@ func (x *Polygon) CodecEncodeSelf(e *codec1978.Encoder) { _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { - z.EncWriteArrayStart(1) - z.EncWriteArrayElem() + r.WriteArrayStart(1) + } else { + r.WriteMapStart(1) + } + if yyr2 || yy2arr2 { + r.WriteArrayElem() if x.PS == nil { r.EncodeNil() } else { - h.encSlicePtrtoPoint(([]*Point)(x.PS), e) - } // end block: if x.PS slice == nil - z.EncWriteArrayEnd() + if false { + } else { + h.encSlicePtrtoPoint(([]*Point)(x.PS), e) + } + } } else { - z.EncWriteMapStart(1) - z.EncWriteMapElemKey() + r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"PS\"") } else { - r.EncodeString(`PS`) + r.EncodeStringEnc(codecSelferCcUTF8216, `PS`) } - z.EncWriteMapElemValue() + r.WriteMapElemValue() if x.PS == nil { r.EncodeNil() } else { - h.encSlicePtrtoPoint(([]*Point)(x.PS), e) - } // end block: if x.PS slice == nil - z.EncWriteMapEnd() + if false { + } else { + h.encSlicePtrtoPoint(([]*Point)(x.PS), e) + } + } + } + if yyr2 || yy2arr2 { + r.WriteArrayEnd() + } else { + r.WriteMapEnd() } } } } func (x *Polygon) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyct2 := r.ContainerType() - if yyct2 == codecSelferValueTypeNil7834 { - *(x) = Polygon{} - } else if yyct2 == codecSelferValueTypeMap7834 { - yyl2 := z.DecReadMapStart() - if yyl2 == 0 { - } else { - x.codecDecodeSelfFromMap(yyl2, d) - } - z.DecReadMapEnd() - } else if yyct2 == codecSelferValueTypeArray7834 { - yyl2 := z.DecReadArrayStart() - if yyl2 != 0 { - x.codecDecodeSelfFromArray(yyl2, d) - } - z.DecReadArrayEnd() + if false { + } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { + z.DecExtension(x, yyxt1) } else { - panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7834) + yyct2 := r.ContainerType() + if yyct2 == codecSelferValueTypeMap216 { + yyl2 := r.ReadMapStart() + if yyl2 == 0 { + r.ReadMapEnd() + } else { + x.codecDecodeSelfFromMap(yyl2, d) + } + } else if yyct2 == codecSelferValueTypeArray216 { + yyl2 := r.ReadArrayStart() + if yyl2 == 0 { + r.ReadArrayEnd() + } else { + x.codecDecodeSelfFromArray(yyl2, d) + } + } else { + panic(errCodecSelferOnlyMapOrArrayEncodeToStruct216) + } } } func (x *Polygon) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 @@ -13603,24 +18360,32 @@ func (x *Polygon) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { break } } else { - if z.DecCheckBreak() { + if r.CheckBreak() { break } } - z.DecReadMapElemKey() + r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) - z.DecReadMapElemValue() + r.ReadMapElemValue() switch yys3 { case "PS": - h.decSlicePtrtoPoint((*[]*Point)(&x.PS), d) + if r.TryDecodeAsNil() { + x.PS = nil + } else { + if false { + } else { + 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 codecSelfer7834 + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int @@ -13630,55 +18395,60 @@ func (x *Polygon) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { - z.DecReadArrayEnd() + r.ReadArrayEnd() return } - z.DecReadArrayElem() - h.decSlicePtrtoPoint((*[]*Point)(&x.PS), d) + r.ReadArrayElem() + if r.TryDecodeAsNil() { + x.PS = nil + } else { + if false { + } else { + h.decSlicePtrtoPoint((*[]*Point)(&x.PS), d) + } + } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { - yyb6 = z.DecCheckBreak() + yyb6 = r.CheckBreak() } if yyb6 { break } - z.DecReadArrayElem() + r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } + r.ReadArrayEnd() } -func (x codecSelfer7834) encStatements(v Statements, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encStatements(v Statements, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { + if false { + } else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { z.EncExtension(yyv1, yyxt2) } else { z.EncFallback(yyv1) } } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decStatements(v *Statements, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decStatements(v *Statements, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -13686,12 +18456,7 @@ func (x codecSelfer7834) decStatements(v *Statements, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []Statement{} yyc1 = true @@ -13718,7 +18483,8 @@ func (x codecSelfer7834) decStatements(v *Statements, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) @@ -13729,20 +18495,29 @@ func (x codecSelfer7834) 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 yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { - z.DecExtension(yyv1[yyj1], yyxt3) + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil } else { - z.DecFallback(&yyv1[yyj1], true) + if false { + } else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + z.DecFallback(&yyv1[yyj1], true) + } } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -13758,32 +18533,29 @@ func (x codecSelfer7834) decStatements(v *Statements, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encExprs(v Exprs, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encExprs(v Exprs, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { + if false { + } else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { z.EncExtension(yyv1, yyxt2) } else { z.EncFallback(yyv1) } } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decExprs(v *Exprs, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decExprs(v *Exprs, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -13791,12 +18563,7 @@ func (x codecSelfer7834) decExprs(v *Exprs, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []Expr{} yyc1 = true @@ -13823,7 +18590,8 @@ func (x codecSelfer7834) decExprs(v *Exprs, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) @@ -13834,20 +18602,29 @@ func (x codecSelfer7834) 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 yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { - z.DecExtension(yyv1[yyj1], yyxt3) + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil } else { - z.DecFallback(&yyv1[yyj1], true) + if false { + } else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + z.DecFallback(&yyv1[yyj1], true) + } } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -13863,28 +18640,24 @@ func (x codecSelfer7834) decExprs(v *Exprs, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encFields(v Fields, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encFields(v Fields, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decFields(v *Fields, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decFields(v *Fields, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -13892,12 +18665,7 @@ func (x codecSelfer7834) decFields(v *Fields, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Field{} yyc1 = true @@ -13924,7 +18692,8 @@ func (x codecSelfer7834) decFields(v *Fields, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -13935,15 +18704,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -13951,7 +18722,9 @@ func (x codecSelfer7834) decFields(v *Fields, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -13967,28 +18740,24 @@ func (x codecSelfer7834) decFields(v *Fields, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encGroups(v Groups, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encGroups(v Groups, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decGroups(v *Groups, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decGroups(v *Groups, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -13996,12 +18765,7 @@ func (x codecSelfer7834) decGroups(v *Groups, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Group{} yyc1 = true @@ -14028,7 +18792,8 @@ func (x codecSelfer7834) decGroups(v *Groups, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -14039,15 +18804,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -14055,7 +18822,9 @@ func (x codecSelfer7834) decGroups(v *Groups, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -14071,28 +18840,24 @@ func (x codecSelfer7834) decGroups(v *Groups, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encOrders(v Orders, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encOrders(v Orders, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decOrders(v *Orders, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decOrders(v *Orders, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -14100,12 +18865,7 @@ func (x codecSelfer7834) decOrders(v *Orders, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Order{} yyc1 = true @@ -14132,7 +18892,8 @@ func (x codecSelfer7834) decOrders(v *Orders, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -14143,15 +18904,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -14159,7 +18922,9 @@ func (x codecSelfer7834) decOrders(v *Orders, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -14175,28 +18940,24 @@ func (x codecSelfer7834) decOrders(v *Orders, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encFetchs(v Fetchs, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encFetchs(v Fetchs, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decFetchs(v *Fetchs, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decFetchs(v *Fetchs, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -14204,12 +18965,7 @@ func (x codecSelfer7834) decFetchs(v *Fetchs, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Fetch{} yyc1 = true @@ -14236,7 +18992,8 @@ func (x codecSelfer7834) decFetchs(v *Fetchs, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -14247,15 +19004,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -14263,7 +19022,9 @@ func (x codecSelfer7834) decFetchs(v *Fetchs, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -14279,32 +19040,29 @@ func (x codecSelfer7834) decFetchs(v *Fetchs, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encSliceExpr(v []Expr, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encSliceExpr(v []Expr, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { - if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { + if false { + } else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { z.EncExtension(yyv1, yyxt2) } else { z.EncFallback(yyv1) } } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decSliceExpr(v *[]Expr, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decSliceExpr(v *[]Expr, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -14312,12 +19070,7 @@ func (x codecSelfer7834) decSliceExpr(v *[]Expr, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []Expr{} yyc1 = true @@ -14344,7 +19097,8 @@ func (x codecSelfer7834) decSliceExpr(v *[]Expr, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) @@ -14355,20 +19109,29 @@ func (x codecSelfer7834) 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 yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { - z.DecExtension(yyv1[yyj1], yyxt3) + if r.TryDecodeAsNil() { + yyv1[yyj1] = nil } else { - z.DecFallback(&yyv1[yyj1], true) + if false { + } else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { + z.DecExtension(yyv1[yyj1], yyxt3) + } else { + z.DecFallback(&yyv1[yyj1], true) + } } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -14384,28 +19147,24 @@ func (x codecSelfer7834) decSliceExpr(v *[]Expr, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encSlicePtrtoItemExpression(v []*ItemExpression, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encSlicePtrtoItemExpression(v []*ItemExpression, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -14413,12 +19172,7 @@ func (x codecSelfer7834) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *co yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*ItemExpression{} yyc1 = true @@ -14445,7 +19199,8 @@ func (x codecSelfer7834) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *co } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -14456,15 +19211,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -14472,7 +19229,9 @@ func (x codecSelfer7834) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *co } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -14488,28 +19247,24 @@ func (x codecSelfer7834) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *co } } -func (x codecSelfer7834) encParams(v Params, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encParams(v Params, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decParams(v *Params, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decParams(v *Params, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -14517,12 +19272,7 @@ func (x codecSelfer7834) decParams(v *Params, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Param{} yyc1 = true @@ -14549,7 +19299,8 @@ func (x codecSelfer7834) decParams(v *Params, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -14560,15 +19311,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -14576,7 +19329,9 @@ func (x codecSelfer7834) decParams(v *Params, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -14592,28 +19347,24 @@ func (x codecSelfer7834) decParams(v *Params, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encIdents(v Idents, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encIdents(v Idents, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decIdents(v *Idents, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decIdents(v *Idents, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -14621,12 +19372,7 @@ func (x codecSelfer7834) decIdents(v *Idents, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Ident{} yyc1 = true @@ -14653,7 +19399,8 @@ func (x codecSelfer7834) decIdents(v *Idents, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -14664,15 +19411,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -14680,7 +19429,9 @@ func (x codecSelfer7834) decIdents(v *Idents, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -14696,28 +19447,24 @@ func (x codecSelfer7834) decIdents(v *Idents, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encValues(v Values, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encValues(v Values, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decValues(v *Values, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decValues(v *Values, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -14725,12 +19472,7 @@ func (x codecSelfer7834) decValues(v *Values, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Value{} yyc1 = true @@ -14757,7 +19499,8 @@ func (x codecSelfer7834) decValues(v *Values, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -14768,15 +19511,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -14784,7 +19529,9 @@ func (x codecSelfer7834) decValues(v *Values, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -14800,28 +19547,24 @@ func (x codecSelfer7834) decValues(v *Values, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encRegexs(v Regexs, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encRegexs(v Regexs, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decRegexs(v *Regexs, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decRegexs(v *Regexs, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -14829,12 +19572,7 @@ func (x codecSelfer7834) decRegexs(v *Regexs, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Regex{} yyc1 = true @@ -14861,7 +19599,8 @@ func (x codecSelfer7834) decRegexs(v *Regexs, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -14872,15 +19611,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -14888,7 +19629,9 @@ func (x codecSelfer7834) decRegexs(v *Regexs, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -14904,28 +19647,24 @@ func (x codecSelfer7834) decRegexs(v *Regexs, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encTables(v Tables, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encTables(v Tables, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decTables(v *Tables, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decTables(v *Tables, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -14933,12 +19672,7 @@ func (x codecSelfer7834) decTables(v *Tables, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Table{} yyc1 = true @@ -14965,7 +19699,8 @@ func (x codecSelfer7834) decTables(v *Tables, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -14976,15 +19711,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -14992,7 +19729,9 @@ func (x codecSelfer7834) decTables(v *Tables, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -15008,28 +19747,24 @@ func (x codecSelfer7834) decTables(v *Tables, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encBatchs(v Batchs, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encBatchs(v Batchs, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decBatchs(v *Batchs, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decBatchs(v *Batchs, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -15037,12 +19772,7 @@ func (x codecSelfer7834) decBatchs(v *Batchs, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Batch{} yyc1 = true @@ -15069,7 +19799,8 @@ func (x codecSelfer7834) decBatchs(v *Batchs, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -15080,15 +19811,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -15096,7 +19829,9 @@ func (x codecSelfer7834) decBatchs(v *Batchs, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -15112,28 +19847,24 @@ func (x codecSelfer7834) decBatchs(v *Batchs, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encSlicePtrtoThing(v []*Thing, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encSlicePtrtoThing(v []*Thing, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -15141,12 +19872,7 @@ func (x codecSelfer7834) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Thing{} yyc1 = true @@ -15173,7 +19899,8 @@ func (x codecSelfer7834) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -15184,15 +19911,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -15200,7 +19929,9 @@ func (x codecSelfer7834) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -15216,28 +19947,24 @@ func (x codecSelfer7834) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encModels(v Models, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encModels(v Models, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decModels(v *Models, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decModels(v *Models, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -15245,12 +19972,7 @@ func (x codecSelfer7834) decModels(v *Models, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Model{} yyc1 = true @@ -15277,7 +19999,8 @@ func (x codecSelfer7834) decModels(v *Models, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -15288,15 +20011,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -15304,7 +20029,9 @@ func (x codecSelfer7834) decModels(v *Models, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -15320,28 +20047,24 @@ func (x codecSelfer7834) decModels(v *Models, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encThings(v Things, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encThings(v Things, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decThings(v *Things, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decThings(v *Things, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -15349,12 +20072,7 @@ func (x codecSelfer7834) decThings(v *Things, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Thing{} yyc1 = true @@ -15381,7 +20099,8 @@ func (x codecSelfer7834) decThings(v *Things, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -15392,15 +20111,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -15408,7 +20129,9 @@ func (x codecSelfer7834) decThings(v *Things, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -15424,28 +20147,24 @@ func (x codecSelfer7834) decThings(v *Things, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encPoints(v Points, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encPoints(v Points, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decPoints(v *Points, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decPoints(v *Points, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -15453,12 +20172,7 @@ func (x codecSelfer7834) decPoints(v *Points, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Point{} yyc1 = true @@ -15485,7 +20199,8 @@ func (x codecSelfer7834) decPoints(v *Points, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -15496,15 +20211,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -15512,7 +20229,9 @@ func (x codecSelfer7834) decPoints(v *Points, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -15528,28 +20247,24 @@ func (x codecSelfer7834) decPoints(v *Points, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encCircles(v Circles, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encCircles(v Circles, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decCircles(v *Circles, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decCircles(v *Circles, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -15557,12 +20272,7 @@ func (x codecSelfer7834) decCircles(v *Circles, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Circle{} yyc1 = true @@ -15589,7 +20299,8 @@ func (x codecSelfer7834) decCircles(v *Circles, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -15600,15 +20311,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -15616,7 +20329,9 @@ func (x codecSelfer7834) decCircles(v *Circles, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -15632,28 +20347,24 @@ func (x codecSelfer7834) decCircles(v *Circles, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encPolygons(v Polygons, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encPolygons(v Polygons, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decPolygons(v *Polygons, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decPolygons(v *Polygons, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -15661,12 +20372,7 @@ func (x codecSelfer7834) decPolygons(v *Polygons, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Polygon{} yyc1 = true @@ -15693,7 +20399,8 @@ func (x codecSelfer7834) decPolygons(v *Polygons, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -15704,15 +20411,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -15720,7 +20429,9 @@ func (x codecSelfer7834) decPolygons(v *Polygons, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] @@ -15736,28 +20447,24 @@ func (x codecSelfer7834) decPolygons(v *Polygons, d *codec1978.Decoder) { } } -func (x codecSelfer7834) encSlicePtrtoPoint(v []*Point, e *codec1978.Encoder) { - var h codecSelfer7834 +func (x codecSelfer216) encSlicePtrtoPoint(v []*Point, e *codec1978.Encoder) { + var h codecSelfer216 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - if v == nil { - r.EncodeNil() - return - } - z.EncWriteArrayStart(len(v)) + r.WriteArrayStart(len(v)) for _, yyv1 := range v { - z.EncWriteArrayElem() + r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } - z.EncWriteArrayEnd() + r.WriteArrayEnd() } -func (x codecSelfer7834) decSlicePtrtoPoint(v *[]*Point, d *codec1978.Decoder) { - var h codecSelfer7834 +func (x codecSelfer216) decSlicePtrtoPoint(v *[]*Point, d *codec1978.Decoder) { + var h codecSelfer216 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -15765,12 +20472,7 @@ func (x codecSelfer7834) decSlicePtrtoPoint(v *[]*Point, d *codec1978.Decoder) { yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 - if yyh1.IsNil { - if yyv1 != nil { - yyv1 = nil - yyc1 = true - } - } else if yyl1 == 0 { + if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Point{} yyc1 = true @@ -15797,7 +20499,8 @@ func (x codecSelfer7834) decSlicePtrtoPoint(v *[]*Point, d *codec1978.Decoder) { } } var yyj1 int - for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || z.DecCheckBreak()); yyj1++ { // bounds-check-elimination + // var yydn1 bool + for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination if yyj1 == 0 && yyv1 == nil { if yyhl1 { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) @@ -15808,15 +20511,17 @@ func (x codecSelfer7834) 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.TryNil() { + if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { @@ -15824,7 +20529,9 @@ func (x codecSelfer7834) decSlicePtrtoPoint(v *[]*Point, d *codec1978.Decoder) { } yyv1[yyj1].CodecDecodeSelf(d) } + } + } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] diff --git a/sql/gen.go b/sql/gen.go index 420cbeb5..87c5594b 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 +//go:generate go get -u github.com/ugorji/go/codec/codecgen@v0.0.0-20181204163529-d75b2dcb6bc8 //go:generate codecgen -o ast.gen.go ast.go