// Code generated by codecgen - DO NOT EDIT. package sql import ( "errors" codec1978 "github.com/ugorji/go/codec" pkg1_language "golang.org/x/text/language" "runtime" "strconv" "time" ) const ( // ----- content types ---- codecSelferCcUTF85519 = 1 codecSelferCcRAW5519 = 255 // ----- value types used ---- codecSelferValueTypeArray5519 = 10 codecSelferValueTypeMap5519 = 9 codecSelferValueTypeString5519 = 6 codecSelferValueTypeInt5519 = 2 codecSelferValueTypeUint5519 = 3 codecSelferValueTypeFloat5519 = 4 codecSelferBitsize5519 = uint8(32 << (^uint(0) >> 63)) ) var ( errCodecSelferOnlyMapOrArrayEncodeToStruct5519 = errors.New(`only encoded map or array can be decoded into a struct`) ) type codecSelfer5519 struct{} func init() { if codec1978.GenVersion != 10 { _, file, _, _ := runtime.Caller(0) panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(codec1978.GenVersion), 10) + ". Re-generate file: " + file) } if false { var _ byte = 0 // reference the types, but skip this branch at build/run time var v0 pkg1_language.Tag var v1 time.Duration _, _ = v0, v1 } } func (x *Query) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Statements == nil { r.EncodeNil() } else { x.Statements.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Statements\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Statements`) } r.WriteMapElemValue() if x.Statements == nil { r.EncodeNil() } else { x.Statements.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Query) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Query) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Statements": 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 codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Statements = nil } else { x.Statements.CodecDecodeSelf(d) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x Statements) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encStatements((Statements)(x), e) } } } func (x *Statements) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decStatements((*Statements)(x), d) } } func (x *UseStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.NS)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"NS\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `NS`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.NS)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.DB)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"DB\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `DB`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.DB)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *UseStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *UseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "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()) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *UseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.NS = "" } else { x.NS = (string)(r.DecodeString()) } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.DB = "" } else { x.DB = (string)(r.DecodeString()) } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *OptStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Name)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Name)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.What)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.What)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *OptStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *OptStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = (string)(r.DecodeString()) } case "What": 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 codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = (string)(r.DecodeString()) } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = false } else { x.What = (bool)(r.DecodeBool()) } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *BeginStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(0) } else { r.WriteMapStart(0) } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *BeginStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *BeginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *BeginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int var yyb4 bool var yyhl4 bool = l >= 0 for { yyj4++ if yyhl4 { yyb4 = yyj4 > l } else { yyb4 = r.CheckBreak() } if yyb4 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } r.ReadArrayEnd() } func (x *CancelStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(0) } else { r.WriteMapStart(0) } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *CancelStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *CancelStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *CancelStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int var yyb4 bool var yyhl4 bool = l >= 0 for { yyj4++ if yyhl4 { yyb4 = yyj4 > l } else { yyb4 = r.CheckBreak() } if yyb4 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } r.ReadArrayEnd() } func (x *CommitStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(0) } else { r.WriteMapStart(0) } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *CommitStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *CommitStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *CommitStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int var yyb4 bool var yyhl4 bool = l >= 0 for { yyj4++ if yyhl4 { yyb4 = yyj4 > l } else { yyb4 = r.CheckBreak() } if yyb4 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } r.ReadArrayEnd() } func (x *InfoStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil { z.EncExtension(x.Kind, yyxt4) } else if z.EncBinary() { z.EncBinaryMarshal(x.Kind) } else if !z.EncBinary() { z.EncTextMarshal(x.Kind) } else { r.EncodeInt(int64(x.Kind)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Kind\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) } r.WriteMapElemValue() if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { z.EncExtension(x.Kind, yyxt5) } else if z.EncBinary() { z.EncBinaryMarshal(x.Kind) } else if !z.EncBinary() { z.EncTextMarshal(x.Kind) } else { r.EncodeInt(int64(x.Kind)) } } var yyn6 bool if x.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.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if yyn6 { r.EncodeNil() } else { if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *InfoStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *InfoStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Kind": if r.TryDecodeAsNil() { x.Kind = 0 } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { z.DecExtension(x.Kind, yyxt5) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Kind) } else { x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "What": if r.TryDecodeAsNil() { if true && x.What != nil { x.What = nil } } else { if x.What == nil { x.What = new(Ident) } x.What.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *InfoStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int var yyb7 bool var yyhl7 bool = l >= 0 yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Kind = 0 } else { if false { } else if yyxt9 := z.Extension(z.I2Rtid(x.Kind)); yyxt9 != nil { z.DecExtension(x.Kind, yyxt9) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Kind) } else { x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.What != nil { x.What = nil } } else { if x.What == nil { x.What = new(Ident) } x.What.CodecDecodeSelf(d) } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } r.ReadArrayEnd() } func (x *RunStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.RW)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"RW\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `RW`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.RW)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Expr)); yyxt7 != nil { z.EncExtension(x.Expr, yyxt7) } else { z.EncFallback(x.Expr) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Expr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) } r.WriteMapElemValue() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { z.EncExtension(x.Expr, yyxt8) } else { z.EncFallback(x.Expr) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *RunStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *RunStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "RW": if r.TryDecodeAsNil() { x.RW = false } else { x.RW = (bool)(r.DecodeBool()) } case "Expr": if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt6 := z.Extension(z.I2Rtid(x.Expr)); yyxt6 != nil { z.DecExtension(x.Expr, yyxt6) } else { z.DecFallback(&x.Expr, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *RunStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int var yyb7 bool var yyhl7 bool = l >= 0 yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.RW = false } else { x.RW = (bool)(r.DecodeBool()) } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Expr)); yyxt10 != nil { z.DecExtension(x.Expr, yyxt10) } else { z.DecFallback(&x.Expr, true) } } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } r.ReadArrayEnd() } func (x *LetStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(3) } else { r.WriteMapStart(3) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.RW)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"RW\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `RW`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.RW)) } } var yyn6 bool if x.Name == nil { yyn6 = true goto LABEL6 } LABEL6: if yyr2 || yy2arr2 { if yyn6 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn6 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.What)); yyxt10 != nil { z.EncExtension(x.What, yyxt10) } else { z.EncFallback(x.What) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.What)); yyxt11 != nil { z.EncExtension(x.What, yyxt11) } else { z.EncFallback(x.What) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *LetStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *LetStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "RW": if r.TryDecodeAsNil() { x.RW = false } else { x.RW = (bool)(r.DecodeBool()) } case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "What": if r.TryDecodeAsNil() { x.What = nil } else { if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.What)); yyxt7 != nil { z.DecExtension(x.What, yyxt7) } else { z.DecFallback(&x.What, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *LetStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int var yyb8 bool var yyhl8 bool = l >= 0 yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.RW = false } else { x.RW = (bool)(r.DecodeBool()) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { 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 = r.CheckBreak() } if yyb8 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } r.ReadArrayEnd() } func (x *LiveStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(9) } else { r.WriteMapStart(9) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.ID)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"ID\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `ID`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.ID)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.FB)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"FB\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `FB`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.FB)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.NS)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"NS\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `NS`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.NS)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.DB)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"DB\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `DB`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.DB)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.Diff)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Diff\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Diff`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.Diff)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Expr == nil { r.EncodeNil() } else { x.Expr.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Expr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) } r.WriteMapElemValue() if x.Expr == nil { r.EncodeNil() } else { x.Expr.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt25 := z.Extension(z.I2Rtid(x.Cond)); yyxt25 != nil { z.EncExtension(x.Cond, yyxt25) } else { z.EncFallback(x.Cond) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Cond\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) } r.WriteMapElemValue() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt26 := z.Extension(z.I2Rtid(x.Cond)); yyxt26 != nil { z.EncExtension(x.Cond, yyxt26) } else { z.EncFallback(x.Cond) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Fetch == nil { r.EncodeNil() } else { x.Fetch.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Fetch\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Fetch`) } r.WriteMapElemValue() if x.Fetch == nil { r.EncodeNil() } else { x.Fetch.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *LiveStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *LiveStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "ID": if r.TryDecodeAsNil() { x.ID = "" } else { x.ID = (string)(r.DecodeString()) } case "FB": if r.TryDecodeAsNil() { x.FB = "" } else { x.FB = (string)(r.DecodeString()) } case "NS": if r.TryDecodeAsNil() { x.NS = "" } else { x.NS = (string)(r.DecodeString()) } case "DB": if r.TryDecodeAsNil() { x.DB = "" } else { x.DB = (string)(r.DecodeString()) } case "Diff": if r.TryDecodeAsNil() { x.Diff = false } else { x.Diff = (bool)(r.DecodeBool()) } case "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": 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 codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj14 int var yyb14 bool var yyhl14 bool = l >= 0 yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.ID = "" } else { x.ID = (string)(r.DecodeString()) } yyj14++ if yyhl14 { yyb14 = yyj14 > l } else { yyb14 = r.CheckBreak() } if yyb14 { r.ReadArrayEnd() return } 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 = r.CheckBreak() } if yyb14 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj14-1, "") } r.ReadArrayEnd() } func (x *KillStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.FB)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"FB\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `FB`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.FB)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *KillStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *KillStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "FB": if r.TryDecodeAsNil() { x.FB = "" } else { x.FB = (string)(r.DecodeString()) } case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *KillStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.FB = "" } else { x.FB = (string)(r.DecodeString()) } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *ReturnStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.RW)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"RW\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `RW`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.RW)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *ReturnStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *ReturnStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "RW": if r.TryDecodeAsNil() { x.RW = false } else { x.RW = (bool)(r.DecodeBool()) } case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *ReturnStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.RW = false } else { x.RW = (bool)(r.DecodeBool()) } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *IfelseStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(4) } else { r.WriteMapStart(4) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.RW)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"RW\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `RW`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.RW)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Cond == nil { r.EncodeNil() } else { x.Cond.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Cond\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) } r.WriteMapElemValue() if x.Cond == nil { r.EncodeNil() } else { x.Cond.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Then == nil { r.EncodeNil() } else { x.Then.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Then\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Then`) } r.WriteMapElemValue() if x.Then == nil { r.EncodeNil() } else { x.Then.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Else == nil { r.EncodeNil() } else { if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Else)); yyxt13 != nil { z.EncExtension(x.Else, yyxt13) } else { z.EncFallback(x.Else) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Else\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Else`) } r.WriteMapElemValue() if x.Else == nil { r.EncodeNil() } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Else)); yyxt14 != nil { z.EncExtension(x.Else, yyxt14) } else { z.EncFallback(x.Else) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *IfelseStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *IfelseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "RW": if r.TryDecodeAsNil() { x.RW = false } else { x.RW = (bool)(r.DecodeBool()) } case "Cond": if r.TryDecodeAsNil() { x.Cond = nil } else { x.Cond.CodecDecodeSelf(d) } case "Then": if r.TryDecodeAsNil() { x.Then = nil } else { x.Then.CodecDecodeSelf(d) } case "Else": if r.TryDecodeAsNil() { x.Else = nil } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Else)); yyxt8 != nil { z.DecExtension(x.Else, yyxt8) } else { z.DecFallback(&x.Else, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *IfelseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj9 int var yyb9 bool var yyhl9 bool = l >= 0 yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.RW = false } else { x.RW = (bool)(r.DecodeBool()) } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Cond = nil } else { x.Cond.CodecDecodeSelf(d) } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Then = nil } else { x.Then.CodecDecodeSelf(d) } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Else = nil } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Else)); yyxt14 != nil { z.DecExtension(x.Else, yyxt14) } else { z.DecFallback(&x.Else, true) } } for { yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj9-1, "") } r.ReadArrayEnd() } func (x *SelectStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(12) } else { r.WriteMapStart(12) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.RW)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"RW\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `RW`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.RW)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Expr == nil { r.EncodeNil() } else { x.Expr.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Expr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) } r.WriteMapElemValue() if x.Expr == nil { r.EncodeNil() } else { x.Expr.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Cond)); yyxt13 != nil { z.EncExtension(x.Cond, yyxt13) } else { z.EncFallback(x.Cond) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Cond\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) } r.WriteMapElemValue() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Cond)); yyxt14 != nil { z.EncExtension(x.Cond, yyxt14) } else { z.EncFallback(x.Cond) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Split == nil { r.EncodeNil() } else { x.Split.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Split\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Split`) } r.WriteMapElemValue() if x.Split == nil { r.EncodeNil() } else { x.Split.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Group == nil { r.EncodeNil() } else { x.Group.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Group\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Group`) } r.WriteMapElemValue() if x.Group == nil { r.EncodeNil() } else { x.Group.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Order == nil { r.EncodeNil() } else { x.Order.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Order\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Order`) } r.WriteMapElemValue() if x.Order == nil { r.EncodeNil() } else { x.Order.CodecEncodeSelf(e) } } 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.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Limit\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Limit`) } r.WriteMapElemValue() if x.Limit == nil { r.EncodeNil() } else { if false { } else if yyxt26 := z.Extension(z.I2Rtid(x.Limit)); yyxt26 != nil { z.EncExtension(x.Limit, yyxt26) } else { z.EncFallback(x.Limit) } } } 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 { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Start\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Start`) } r.WriteMapElemValue() if x.Start == nil { r.EncodeNil() } else { if false { } else if yyxt29 := z.Extension(z.I2Rtid(x.Start)); yyxt29 != nil { z.EncExtension(x.Start, yyxt29) } else { z.EncFallback(x.Start) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Fetch == nil { r.EncodeNil() } else { x.Fetch.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Fetch\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Fetch`) } r.WriteMapElemValue() if x.Fetch == nil { r.EncodeNil() } else { x.Fetch.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Version == nil { r.EncodeNil() } else { if false { } else if yyxt34 := z.Extension(z.I2Rtid(x.Version)); yyxt34 != nil { z.EncExtension(x.Version, yyxt34) } else { z.EncFallback(x.Version) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Version\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Version`) } r.WriteMapElemValue() if x.Version == nil { r.EncodeNil() } else { if false { } else if yyxt35 := z.Extension(z.I2Rtid(x.Version)); yyxt35 != nil { z.EncExtension(x.Version, yyxt35) } else { z.EncFallback(x.Version) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt37 := z.Extension(z.I2Rtid(x.Timeout)); yyxt37 != nil { z.EncExtension(x.Timeout, yyxt37) } else { r.EncodeInt(int64(x.Timeout)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Timeout\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) } r.WriteMapElemValue() if false { } else if yyxt38 := z.Extension(z.I2Rtid(x.Timeout)); yyxt38 != nil { z.EncExtension(x.Timeout, yyxt38) } else { r.EncodeInt(int64(x.Timeout)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *SelectStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *SelectStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "RW": if r.TryDecodeAsNil() { x.RW = false } else { x.RW = (bool)(r.DecodeBool()) } case "Expr": if r.TryDecodeAsNil() { x.Expr = nil } else { 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": if r.TryDecodeAsNil() { x.Split = nil } else { x.Split.CodecDecodeSelf(d) } case "Group": if r.TryDecodeAsNil() { x.Group = nil } else { x.Group.CodecDecodeSelf(d) } case "Order": if r.TryDecodeAsNil() { x.Order = nil } else { x.Order.CodecDecodeSelf(d) } case "Limit": if r.TryDecodeAsNil() { x.Limit = nil } else { if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Limit)); yyxt13 != nil { z.DecExtension(x.Limit, yyxt13) } else { z.DecFallback(&x.Limit, true) } } case "Start": if r.TryDecodeAsNil() { x.Start = nil } else { if false { } else if yyxt15 := z.Extension(z.I2Rtid(x.Start)); yyxt15 != nil { z.DecExtension(x.Start, yyxt15) } else { z.DecFallback(&x.Start, true) } } case "Fetch": if r.TryDecodeAsNil() { x.Fetch = nil } else { x.Fetch.CodecDecodeSelf(d) } case "Version": if r.TryDecodeAsNil() { x.Version = nil } else { if false { } else if yyxt18 := z.Extension(z.I2Rtid(x.Version)); yyxt18 != nil { z.DecExtension(x.Version, yyxt18) } else { z.DecFallback(&x.Version, true) } } case "Timeout": if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt20 := z.Extension(z.I2Rtid(x.Timeout)); yyxt20 != nil { z.DecExtension(x.Timeout, yyxt20) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *SelectStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj21 int var yyb21 bool var yyhl21 bool = l >= 0 yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.RW = false } else { x.RW = (bool)(r.DecodeBool()) } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Expr = nil } else { x.Expr.CodecDecodeSelf(d) } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Cond = nil } else { if false { } else if yyxt26 := z.Extension(z.I2Rtid(x.Cond)); yyxt26 != nil { z.DecExtension(x.Cond, yyxt26) } else { z.DecFallback(&x.Cond, true) } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Split = nil } else { x.Split.CodecDecodeSelf(d) } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Group = nil } else { x.Group.CodecDecodeSelf(d) } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Order = nil } else { x.Order.CodecDecodeSelf(d) } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Limit = nil } else { if false { } else if yyxt31 := z.Extension(z.I2Rtid(x.Limit)); yyxt31 != nil { z.DecExtension(x.Limit, yyxt31) } else { z.DecFallback(&x.Limit, true) } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Start = nil } else { if false { } else if yyxt33 := z.Extension(z.I2Rtid(x.Start)); yyxt33 != nil { z.DecExtension(x.Start, yyxt33) } else { z.DecFallback(&x.Start, true) } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Fetch = nil } else { x.Fetch.CodecDecodeSelf(d) } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Version = nil } else { if false { } else if yyxt36 := z.Extension(z.I2Rtid(x.Version)); yyxt36 != nil { z.DecExtension(x.Version, yyxt36) } else { z.DecFallback(&x.Version, true) } } yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt38 := z.Extension(z.I2Rtid(x.Timeout)); yyxt38 != nil { z.DecExtension(x.Timeout, yyxt38) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } for { yyj21++ if yyhl21 { yyb21 = yyj21 > l } else { yyb21 = r.CheckBreak() } if yyb21 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj21-1, "") } r.ReadArrayEnd() } func (x *CreateStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(4) } else { r.WriteMapStart(4) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Data)); yyxt7 != nil { z.EncExtension(x.Data, yyxt7) } else { z.EncFallback(x.Data) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Data\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) } r.WriteMapElemValue() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { z.EncExtension(x.Data, yyxt8) } else { z.EncFallback(x.Data) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Echo)); yyxt10 != nil { z.EncExtension(x.Echo, yyxt10) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Echo\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) } r.WriteMapElemValue() if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.Echo)); yyxt11 != nil { z.EncExtension(x.Echo, yyxt11) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Timeout)); yyxt13 != nil { z.EncExtension(x.Timeout, yyxt13) } else { r.EncodeInt(int64(x.Timeout)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Timeout\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) } r.WriteMapElemValue() if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Timeout)); yyxt14 != nil { z.EncExtension(x.Timeout, yyxt14) } else { r.EncodeInt(int64(x.Timeout)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *CreateStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *CreateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } case "Data": if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt6 := z.Extension(z.I2Rtid(x.Data)); yyxt6 != nil { z.DecExtension(x.Data, yyxt6) } else { z.DecFallback(&x.Data, true) } } case "Echo": if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { z.DecExtension(x.Echo, yyxt8) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "Timeout": if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { z.DecExtension(x.Timeout, yyxt10) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *CreateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj11 int var yyb11 bool var yyhl11 bool = l >= 0 yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Data)); yyxt14 != nil { z.DecExtension(x.Data, yyxt14) } else { z.DecFallback(&x.Data, true) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.Echo)); yyxt16 != nil { z.DecExtension(x.Echo, yyxt16) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt18 := z.Extension(z.I2Rtid(x.Timeout)); yyxt18 != nil { z.DecExtension(x.Timeout, yyxt18) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj11-1, "") } r.ReadArrayEnd() } func (x *UpdateStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(5) } else { r.WriteMapStart(5) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Data)); yyxt7 != nil { z.EncExtension(x.Data, yyxt7) } else { z.EncFallback(x.Data) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Data\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) } r.WriteMapElemValue() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Data)); yyxt8 != nil { z.EncExtension(x.Data, yyxt8) } else { z.EncFallback(x.Data) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Cond)); yyxt10 != nil { z.EncExtension(x.Cond, yyxt10) } else { z.EncFallback(x.Cond) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Cond\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) } r.WriteMapElemValue() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.Cond)); yyxt11 != nil { z.EncExtension(x.Cond, yyxt11) } else { z.EncFallback(x.Cond) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Echo)); yyxt13 != nil { z.EncExtension(x.Echo, yyxt13) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Echo\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) } r.WriteMapElemValue() if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Echo)); yyxt14 != nil { z.EncExtension(x.Echo, yyxt14) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.Timeout)); yyxt16 != nil { z.EncExtension(x.Timeout, yyxt16) } else { r.EncodeInt(int64(x.Timeout)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Timeout\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) } r.WriteMapElemValue() if false { } else if yyxt17 := z.Extension(z.I2Rtid(x.Timeout)); yyxt17 != nil { z.EncExtension(x.Timeout, yyxt17) } else { r.EncodeInt(int64(x.Timeout)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *UpdateStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *UpdateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } case "Data": if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt6 := z.Extension(z.I2Rtid(x.Data)); yyxt6 != nil { z.DecExtension(x.Data, yyxt6) } else { z.DecFallback(&x.Data, true) } } case "Cond": if r.TryDecodeAsNil() { x.Cond = nil } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Cond)); yyxt8 != nil { z.DecExtension(x.Cond, yyxt8) } else { z.DecFallback(&x.Cond, true) } } case "Echo": if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Echo)); yyxt10 != nil { z.DecExtension(x.Echo, yyxt10) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "Timeout": if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt12 := z.Extension(z.I2Rtid(x.Timeout)); yyxt12 != nil { z.DecExtension(x.Timeout, yyxt12) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *UpdateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj13 int var yyb13 bool var yyhl13 bool = l >= 0 yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.Data)); yyxt16 != nil { z.DecExtension(x.Data, yyxt16) } else { z.DecFallback(&x.Data, true) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Cond = nil } else { if false { } else if yyxt18 := z.Extension(z.I2Rtid(x.Cond)); yyxt18 != nil { z.DecExtension(x.Cond, yyxt18) } else { z.DecFallback(&x.Cond, true) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt20 := z.Extension(z.I2Rtid(x.Echo)); yyxt20 != nil { z.DecExtension(x.Echo, yyxt20) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt22 := z.Extension(z.I2Rtid(x.Timeout)); yyxt22 != nil { z.DecExtension(x.Timeout, yyxt22) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } for { yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj13-1, "") } r.ReadArrayEnd() } func (x *DeleteStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(4) } else { r.WriteMapStart(4) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Cond)); yyxt7 != nil { z.EncExtension(x.Cond, yyxt7) } else { z.EncFallback(x.Cond) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Cond\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) } r.WriteMapElemValue() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Cond)); yyxt8 != nil { z.EncExtension(x.Cond, yyxt8) } else { z.EncFallback(x.Cond) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Echo)); yyxt10 != nil { z.EncExtension(x.Echo, yyxt10) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Echo\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) } r.WriteMapElemValue() if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.Echo)); yyxt11 != nil { z.EncExtension(x.Echo, yyxt11) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Timeout)); yyxt13 != nil { z.EncExtension(x.Timeout, yyxt13) } else { r.EncodeInt(int64(x.Timeout)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Timeout\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) } r.WriteMapElemValue() if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Timeout)); yyxt14 != nil { z.EncExtension(x.Timeout, yyxt14) } else { r.EncodeInt(int64(x.Timeout)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DeleteStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DeleteStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } case "Cond": if r.TryDecodeAsNil() { x.Cond = nil } else { if false { } else if yyxt6 := z.Extension(z.I2Rtid(x.Cond)); yyxt6 != nil { z.DecExtension(x.Cond, yyxt6) } else { z.DecFallback(&x.Cond, true) } } case "Echo": if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { z.DecExtension(x.Echo, yyxt8) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "Timeout": if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { z.DecExtension(x.Timeout, yyxt10) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *DeleteStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj11 int var yyb11 bool var yyhl11 bool = l >= 0 yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Cond = nil } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Cond)); yyxt14 != nil { z.DecExtension(x.Cond, yyxt14) } else { z.DecFallback(&x.Cond, true) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.Echo)); yyxt16 != nil { z.DecExtension(x.Echo, yyxt16) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt18 := z.Extension(z.I2Rtid(x.Timeout)); yyxt18 != nil { z.DecExtension(x.Timeout, yyxt18) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj11-1, "") } r.ReadArrayEnd() } func (x *RelateStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(7) } else { r.WriteMapStart(7) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Type == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Type)); yyxt4 != nil { z.EncExtension(x.Type, yyxt4) } else { z.EncFallback(x.Type) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Type\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Type`) } r.WriteMapElemValue() if x.Type == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Type)); yyxt5 != nil { z.EncExtension(x.Type, yyxt5) } else { z.EncFallback(x.Type) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.From == nil { r.EncodeNil() } else { x.From.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"From\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `From`) } r.WriteMapElemValue() if x.From == nil { r.EncodeNil() } else { x.From.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.With == nil { r.EncodeNil() } else { x.With.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"With\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `With`) } r.WriteMapElemValue() if x.With == nil { r.EncodeNil() } else { x.With.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Data)); yyxt13 != nil { z.EncExtension(x.Data, yyxt13) } else { z.EncFallback(x.Data) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Data\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) } r.WriteMapElemValue() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Data)); yyxt14 != nil { z.EncExtension(x.Data, yyxt14) } else { z.EncFallback(x.Data) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.Uniq)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Uniq\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Uniq`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.Uniq)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt19 := z.Extension(z.I2Rtid(x.Echo)); yyxt19 != nil { z.EncExtension(x.Echo, yyxt19) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Echo\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) } r.WriteMapElemValue() if false { } else if yyxt20 := z.Extension(z.I2Rtid(x.Echo)); yyxt20 != nil { z.EncExtension(x.Echo, yyxt20) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt22 := z.Extension(z.I2Rtid(x.Timeout)); yyxt22 != nil { z.EncExtension(x.Timeout, yyxt22) } else { r.EncodeInt(int64(x.Timeout)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Timeout\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) } r.WriteMapElemValue() if false { } else if yyxt23 := z.Extension(z.I2Rtid(x.Timeout)); yyxt23 != nil { z.EncExtension(x.Timeout, yyxt23) } else { r.EncodeInt(int64(x.Timeout)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *RelateStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *RelateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Type": if r.TryDecodeAsNil() { x.Type = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Type)); yyxt5 != nil { z.DecExtension(x.Type, yyxt5) } else { z.DecFallback(&x.Type, true) } } case "From": if r.TryDecodeAsNil() { x.From = nil } else { x.From.CodecDecodeSelf(d) } case "With": if r.TryDecodeAsNil() { x.With = nil } else { x.With.CodecDecodeSelf(d) } case "Data": if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt9 := z.Extension(z.I2Rtid(x.Data)); yyxt9 != nil { z.DecExtension(x.Data, yyxt9) } else { z.DecFallback(&x.Data, true) } } case "Uniq": if r.TryDecodeAsNil() { x.Uniq = false } else { x.Uniq = (bool)(r.DecodeBool()) } case "Echo": if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt12 := z.Extension(z.I2Rtid(x.Echo)); yyxt12 != nil { z.DecExtension(x.Echo, yyxt12) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "Timeout": if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Timeout)); yyxt14 != nil { z.DecExtension(x.Timeout, yyxt14) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *RelateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj15 int var yyb15 bool var yyhl15 bool = l >= 0 yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Type = nil } else { if false { } else if yyxt17 := z.Extension(z.I2Rtid(x.Type)); yyxt17 != nil { z.DecExtension(x.Type, yyxt17) } else { z.DecFallback(&x.Type, true) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.From = nil } else { x.From.CodecDecodeSelf(d) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.With = nil } else { x.With.CodecDecodeSelf(d) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt21 := z.Extension(z.I2Rtid(x.Data)); yyxt21 != nil { z.DecExtension(x.Data, yyxt21) } else { z.DecFallback(&x.Data, true) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Uniq = false } else { x.Uniq = (bool)(r.DecodeBool()) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt24 := z.Extension(z.I2Rtid(x.Echo)); yyxt24 != nil { z.DecExtension(x.Echo, yyxt24) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt26 := z.Extension(z.I2Rtid(x.Timeout)); yyxt26 != nil { z.DecExtension(x.Timeout, yyxt26) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } for { yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj15-1, "") } r.ReadArrayEnd() } func (x *InsertStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(4) } else { r.WriteMapStart(4) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { z.EncExtension(x.Data, yyxt4) } else { z.EncFallback(x.Data) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Data\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) } r.WriteMapElemValue() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { z.EncExtension(x.Data, yyxt5) } else { z.EncFallback(x.Data) } } } var yyn6 bool if x.Into == nil { yyn6 = true goto LABEL6 } LABEL6: if yyr2 || yy2arr2 { if yyn6 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Into == nil { r.EncodeNil() } else { x.Into.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Into\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Into`) } r.WriteMapElemValue() if yyn6 { r.EncodeNil() } else { if x.Into == nil { r.EncodeNil() } else { x.Into.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Echo)); yyxt10 != nil { z.EncExtension(x.Echo, yyxt10) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Echo\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) } r.WriteMapElemValue() if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.Echo)); yyxt11 != nil { z.EncExtension(x.Echo, yyxt11) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Timeout)); yyxt13 != nil { z.EncExtension(x.Timeout, yyxt13) } else { r.EncodeInt(int64(x.Timeout)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Timeout\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) } r.WriteMapElemValue() if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Timeout)); yyxt14 != nil { z.EncExtension(x.Timeout, yyxt14) } else { r.EncodeInt(int64(x.Timeout)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *InsertStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *InsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Data": if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { z.DecExtension(x.Data, yyxt5) } else { z.DecFallback(&x.Data, true) } } case "Into": if r.TryDecodeAsNil() { if true && x.Into != nil { x.Into = nil } } else { if x.Into == nil { x.Into = new(Table) } x.Into.CodecDecodeSelf(d) } case "Echo": if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { z.DecExtension(x.Echo, yyxt8) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "Timeout": if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { z.DecExtension(x.Timeout, yyxt10) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *InsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj11 int var yyb11 bool var yyhl11 bool = l >= 0 yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Data)); yyxt13 != nil { z.DecExtension(x.Data, yyxt13) } else { z.DecFallback(&x.Data, true) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Into != nil { x.Into = nil } } else { if x.Into == nil { x.Into = new(Table) } x.Into.CodecDecodeSelf(d) } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.Echo)); yyxt16 != nil { z.DecExtension(x.Echo, yyxt16) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt18 := z.Extension(z.I2Rtid(x.Timeout)); yyxt18 != nil { z.DecExtension(x.Timeout, yyxt18) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj11-1, "") } r.ReadArrayEnd() } func (x *UpsertStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(4) } else { r.WriteMapStart(4) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { z.EncExtension(x.Data, yyxt4) } else { z.EncFallback(x.Data) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Data\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) } r.WriteMapElemValue() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { z.EncExtension(x.Data, yyxt5) } else { z.EncFallback(x.Data) } } } var yyn6 bool if x.Into == nil { yyn6 = true goto LABEL6 } LABEL6: if yyr2 || yy2arr2 { if yyn6 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Into == nil { r.EncodeNil() } else { x.Into.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Into\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Into`) } r.WriteMapElemValue() if yyn6 { r.EncodeNil() } else { if x.Into == nil { r.EncodeNil() } else { x.Into.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Echo)); yyxt10 != nil { z.EncExtension(x.Echo, yyxt10) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Echo\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Echo`) } r.WriteMapElemValue() if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.Echo)); yyxt11 != nil { z.EncExtension(x.Echo, yyxt11) } else if z.EncBinary() { z.EncBinaryMarshal(x.Echo) } else if !z.EncBinary() { z.EncTextMarshal(x.Echo) } else { r.EncodeInt(int64(x.Echo)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Timeout)); yyxt13 != nil { z.EncExtension(x.Timeout, yyxt13) } else { r.EncodeInt(int64(x.Timeout)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Timeout\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Timeout`) } r.WriteMapElemValue() if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Timeout)); yyxt14 != nil { z.EncExtension(x.Timeout, yyxt14) } else { r.EncodeInt(int64(x.Timeout)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *UpsertStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *UpsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Data": if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { z.DecExtension(x.Data, yyxt5) } else { z.DecFallback(&x.Data, true) } } case "Into": if r.TryDecodeAsNil() { if true && x.Into != nil { x.Into = nil } } else { if x.Into == nil { x.Into = new(Table) } x.Into.CodecDecodeSelf(d) } case "Echo": if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Echo)); yyxt8 != nil { z.DecExtension(x.Echo, yyxt8) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "Timeout": if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Timeout)); yyxt10 != nil { z.DecExtension(x.Timeout, yyxt10) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *UpsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj11 int var yyb11 bool var yyhl11 bool = l >= 0 yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Data)); yyxt13 != nil { z.DecExtension(x.Data, yyxt13) } else { z.DecFallback(&x.Data, true) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Into != nil { x.Into = nil } } else { if x.Into == nil { x.Into = new(Table) } x.Into.CodecDecodeSelf(d) } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Echo = 0 } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.Echo)); yyxt16 != nil { z.DecExtension(x.Echo, yyxt16) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Echo) } else { x.Echo = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Timeout = 0 } else { if false { } else if yyxt18 := z.Extension(z.I2Rtid(x.Timeout)); yyxt18 != nil { z.DecExtension(x.Timeout, yyxt18) } else { x.Timeout = (time.Duration)(r.DecodeInt64()) } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj11-1, "") } r.ReadArrayEnd() } func (x *DefineNamespaceStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DefineNamespaceStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DefineNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *DefineNamespaceStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x *RemoveNamespaceStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *RemoveNamespaceStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *RemoveNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *RemoveNamespaceStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x *DefineDatabaseStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DefineDatabaseStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DefineDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *DefineDatabaseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x *RemoveDatabaseStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *RemoveDatabaseStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *RemoveDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *RemoveDatabaseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x *DefineLoginStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(5) } else { r.WriteMapStart(5) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil { z.EncExtension(x.Kind, yyxt4) } else if z.EncBinary() { z.EncBinaryMarshal(x.Kind) } else if !z.EncBinary() { z.EncTextMarshal(x.Kind) } else { r.EncodeInt(int64(x.Kind)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Kind\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) } r.WriteMapElemValue() if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { z.EncExtension(x.Kind, yyxt5) } else if z.EncBinary() { z.EncBinaryMarshal(x.Kind) } else if !z.EncBinary() { z.EncTextMarshal(x.Kind) } else { r.EncodeInt(int64(x.Kind)) } } var yyn6 bool if x.User == nil { yyn6 = true goto LABEL6 } LABEL6: if yyr2 || yy2arr2 { if yyn6 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.User == nil { r.EncodeNil() } else { x.User.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"User\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `User`) } r.WriteMapElemValue() if yyn6 { r.EncodeNil() } else { if x.User == nil { r.EncodeNil() } else { x.User.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Pass == nil { r.EncodeNil() } else { if false { } else { r.EncodeStringBytesRaw([]byte(x.Pass)) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Pass\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Pass`) } r.WriteMapElemValue() if x.Pass == nil { r.EncodeNil() } else { if false { } else { r.EncodeStringBytesRaw([]byte(x.Pass)) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Hash == nil { r.EncodeNil() } else { if false { } else { r.EncodeStringBytesRaw([]byte(x.Hash)) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Hash\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Hash`) } r.WriteMapElemValue() if x.Hash == nil { r.EncodeNil() } else { if false { } else { r.EncodeStringBytesRaw([]byte(x.Hash)) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Code == nil { r.EncodeNil() } else { if false { } else { r.EncodeStringBytesRaw([]byte(x.Code)) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Code\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Code`) } r.WriteMapElemValue() if x.Code == nil { r.EncodeNil() } else { if false { } else { r.EncodeStringBytesRaw([]byte(x.Code)) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DefineLoginStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DefineLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Kind": if r.TryDecodeAsNil() { x.Kind = 0 } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { z.DecExtension(x.Kind, yyxt5) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Kind) } else { x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "User": if r.TryDecodeAsNil() { if true && x.User != nil { x.User = nil } } else { if x.User == nil { x.User = new(Ident) } x.User.CodecDecodeSelf(d) } case "Pass": if r.TryDecodeAsNil() { x.Pass = nil } else { if false { } else { x.Pass = r.DecodeBytes(([]byte)(x.Pass), false) } } case "Hash": if r.TryDecodeAsNil() { x.Hash = nil } else { if false { } else { x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) } } case "Code": if r.TryDecodeAsNil() { x.Code = nil } else { if false { } else { x.Code = r.DecodeBytes(([]byte)(x.Code), false) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *DefineLoginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj13 int var yyb13 bool var yyhl13 bool = l >= 0 yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Kind = 0 } else { if false { } else if yyxt15 := z.Extension(z.I2Rtid(x.Kind)); yyxt15 != nil { z.DecExtension(x.Kind, yyxt15) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Kind) } else { x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.User != nil { x.User = nil } } else { if x.User == nil { x.User = new(Ident) } x.User.CodecDecodeSelf(d) } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Pass = nil } else { if false { } else { x.Pass = r.DecodeBytes(([]byte)(x.Pass), false) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Hash = nil } else { if false { } else { x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) } } yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Code = nil } else { if false { } else { x.Code = r.DecodeBytes(([]byte)(x.Code), false) } } for { yyj13++ if yyhl13 { yyb13 = yyj13 > l } else { yyb13 = r.CheckBreak() } if yyb13 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj13-1, "") } r.ReadArrayEnd() } func (x *RemoveLoginStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil { z.EncExtension(x.Kind, yyxt4) } else if z.EncBinary() { z.EncBinaryMarshal(x.Kind) } else if !z.EncBinary() { z.EncTextMarshal(x.Kind) } else { r.EncodeInt(int64(x.Kind)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Kind\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) } r.WriteMapElemValue() if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { z.EncExtension(x.Kind, yyxt5) } else if z.EncBinary() { z.EncBinaryMarshal(x.Kind) } else if !z.EncBinary() { z.EncTextMarshal(x.Kind) } else { r.EncodeInt(int64(x.Kind)) } } var yyn6 bool if x.User == nil { yyn6 = true goto LABEL6 } LABEL6: if yyr2 || yy2arr2 { if yyn6 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.User == nil { r.EncodeNil() } else { x.User.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"User\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `User`) } r.WriteMapElemValue() if yyn6 { r.EncodeNil() } else { if x.User == nil { r.EncodeNil() } else { x.User.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *RemoveLoginStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *RemoveLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Kind": if r.TryDecodeAsNil() { x.Kind = 0 } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { z.DecExtension(x.Kind, yyxt5) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Kind) } else { x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "User": if r.TryDecodeAsNil() { if true && x.User != nil { x.User = nil } } else { if x.User == nil { x.User = new(Ident) } x.User.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *RemoveLoginStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int var yyb7 bool var yyhl7 bool = l >= 0 yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Kind = 0 } else { if false { } else if yyxt9 := z.Extension(z.I2Rtid(x.Kind)); yyxt9 != nil { z.DecExtension(x.Kind, yyxt9) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Kind) } else { x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.User != nil { x.User = nil } } else { if x.User == nil { x.User = new(Ident) } x.User.CodecDecodeSelf(d) } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } r.ReadArrayEnd() } func (x *DefineTokenStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(5) } else { r.WriteMapStart(5) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil { z.EncExtension(x.Kind, yyxt4) } else if z.EncBinary() { z.EncBinaryMarshal(x.Kind) } else if !z.EncBinary() { z.EncTextMarshal(x.Kind) } else { r.EncodeInt(int64(x.Kind)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Kind\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) } r.WriteMapElemValue() if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { z.EncExtension(x.Kind, yyxt5) } else if z.EncBinary() { z.EncBinaryMarshal(x.Kind) } else if !z.EncBinary() { z.EncTextMarshal(x.Kind) } else { r.EncodeInt(int64(x.Kind)) } } var yyn6 bool if x.Name == nil { yyn6 = true goto LABEL6 } LABEL6: if yyr2 || yy2arr2 { if yyn6 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn6 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } var yyn9 bool if x.What == nil { yyn9 = true goto LABEL9 } LABEL9: if yyr2 || yy2arr2 { if yyn9 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if yyn9 { r.EncodeNil() } else { if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Type)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Type\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Type`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Type)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Code == nil { r.EncodeNil() } else { if false { } else { r.EncodeStringBytesRaw([]byte(x.Code)) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Code\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Code`) } r.WriteMapElemValue() if x.Code == nil { r.EncodeNil() } else { if false { } else { r.EncodeStringBytesRaw([]byte(x.Code)) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DefineTokenStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DefineTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Kind": if r.TryDecodeAsNil() { x.Kind = 0 } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { z.DecExtension(x.Kind, yyxt5) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Kind) } else { x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "What": if r.TryDecodeAsNil() { if true && x.What != nil { x.What = nil } } else { if x.What == nil { x.What = new(Ident) } x.What.CodecDecodeSelf(d) } case "Type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = (string)(r.DecodeString()) } case "Code": if r.TryDecodeAsNil() { x.Code = nil } else { if false { } else { x.Code = r.DecodeBytes(([]byte)(x.Code), false) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *DefineTokenStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj11 int var yyb11 bool var yyhl11 bool = l >= 0 yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Kind = 0 } else { if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Kind)); yyxt13 != nil { z.DecExtension(x.Kind, yyxt13) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Kind) } else { x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.What != nil { x.What = nil } } else { if x.What == nil { x.What = new(Ident) } x.What.CodecDecodeSelf(d) } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = (string)(r.DecodeString()) } yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Code = nil } else { if false { } else { x.Code = r.DecodeBytes(([]byte)(x.Code), false) } } for { yyj11++ if yyhl11 { yyb11 = yyj11 > l } else { yyb11 = r.CheckBreak() } if yyb11 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj11-1, "") } r.ReadArrayEnd() } func (x *RemoveTokenStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(3) } else { r.WriteMapStart(3) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil { z.EncExtension(x.Kind, yyxt4) } else if z.EncBinary() { z.EncBinaryMarshal(x.Kind) } else if !z.EncBinary() { z.EncTextMarshal(x.Kind) } else { r.EncodeInt(int64(x.Kind)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Kind\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) } r.WriteMapElemValue() if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { z.EncExtension(x.Kind, yyxt5) } else if z.EncBinary() { z.EncBinaryMarshal(x.Kind) } else if !z.EncBinary() { z.EncTextMarshal(x.Kind) } else { r.EncodeInt(int64(x.Kind)) } } var yyn6 bool if x.Name == nil { yyn6 = true goto LABEL6 } LABEL6: if yyr2 || yy2arr2 { if yyn6 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn6 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } var yyn9 bool if x.What == nil { yyn9 = true goto LABEL9 } LABEL9: if yyr2 || yy2arr2 { if yyn9 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if yyn9 { r.EncodeNil() } else { if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *RemoveTokenStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *RemoveTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Kind": if r.TryDecodeAsNil() { x.Kind = 0 } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil { z.DecExtension(x.Kind, yyxt5) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Kind) } else { x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "What": if r.TryDecodeAsNil() { if true && x.What != nil { x.What = nil } } else { if x.What == nil { x.What = new(Ident) } x.What.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *RemoveTokenStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int var yyb8 bool var yyhl8 bool = l >= 0 yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Kind = 0 } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Kind)); yyxt10 != nil { z.DecExtension(x.Kind, yyxt10) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Kind) } else { x.Kind = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.What != nil { x.What = nil } } else { if x.What == nil { x.What = new(Ident) } x.What.CodecDecodeSelf(d) } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } r.ReadArrayEnd() } func (x *DefineScopeStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(8) } else { r.WriteMapStart(8) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Time)); yyxt7 != nil { z.EncExtension(x.Time, yyxt7) } else { r.EncodeInt(int64(x.Time)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Time\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Time`) } r.WriteMapElemValue() if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Time)); yyxt8 != nil { z.EncExtension(x.Time, yyxt8) } else { r.EncodeInt(int64(x.Time)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Code == nil { r.EncodeNil() } else { if false { } else { r.EncodeStringBytesRaw([]byte(x.Code)) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Code\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Code`) } r.WriteMapElemValue() if x.Code == nil { r.EncodeNil() } else { if false { } else { r.EncodeStringBytesRaw([]byte(x.Code)) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Signup == nil { r.EncodeNil() } else { if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Signup)); yyxt13 != nil { z.EncExtension(x.Signup, yyxt13) } else { z.EncFallback(x.Signup) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Signup\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Signup`) } r.WriteMapElemValue() if x.Signup == nil { r.EncodeNil() } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Signup)); yyxt14 != nil { z.EncExtension(x.Signup, yyxt14) } else { z.EncFallback(x.Signup) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Signin == nil { r.EncodeNil() } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.Signin)); yyxt16 != nil { z.EncExtension(x.Signin, yyxt16) } else { z.EncFallback(x.Signin) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Signin\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Signin`) } r.WriteMapElemValue() if x.Signin == nil { r.EncodeNil() } else { if false { } else if yyxt17 := z.Extension(z.I2Rtid(x.Signin)); yyxt17 != nil { z.EncExtension(x.Signin, yyxt17) } else { z.EncFallback(x.Signin) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Connect == nil { r.EncodeNil() } else { if false { } else if yyxt19 := z.Extension(z.I2Rtid(x.Connect)); yyxt19 != nil { z.EncExtension(x.Connect, yyxt19) } else { z.EncFallback(x.Connect) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Connect\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Connect`) } r.WriteMapElemValue() if x.Connect == nil { r.EncodeNil() } else { if false { } else if yyxt20 := z.Extension(z.I2Rtid(x.Connect)); yyxt20 != nil { z.EncExtension(x.Connect, yyxt20) } else { z.EncFallback(x.Connect) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.OnSignup == nil { r.EncodeNil() } else { if false { } else if yyxt22 := z.Extension(z.I2Rtid(x.OnSignup)); yyxt22 != nil { z.EncExtension(x.OnSignup, yyxt22) } else { z.EncFallback(x.OnSignup) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"OnSignup\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `OnSignup`) } r.WriteMapElemValue() if x.OnSignup == nil { r.EncodeNil() } else { if false { } else if yyxt23 := z.Extension(z.I2Rtid(x.OnSignup)); yyxt23 != nil { z.EncExtension(x.OnSignup, yyxt23) } else { z.EncFallback(x.OnSignup) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.OnSignin == nil { r.EncodeNil() } else { if false { } else if yyxt25 := z.Extension(z.I2Rtid(x.OnSignin)); yyxt25 != nil { z.EncExtension(x.OnSignin, yyxt25) } else { z.EncFallback(x.OnSignin) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"OnSignin\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `OnSignin`) } r.WriteMapElemValue() if x.OnSignin == nil { r.EncodeNil() } else { if false { } else if yyxt26 := z.Extension(z.I2Rtid(x.OnSignin)); yyxt26 != nil { z.EncExtension(x.OnSignin, yyxt26) } else { z.EncFallback(x.OnSignin) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DefineScopeStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DefineScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "Time": if r.TryDecodeAsNil() { x.Time = 0 } else { if false { } else if yyxt6 := z.Extension(z.I2Rtid(x.Time)); yyxt6 != nil { z.DecExtension(x.Time, yyxt6) } else { x.Time = (time.Duration)(r.DecodeInt64()) } } case "Code": if r.TryDecodeAsNil() { x.Code = nil } else { if false { } else { x.Code = r.DecodeBytes(([]byte)(x.Code), false) } } case "Signup": if r.TryDecodeAsNil() { x.Signup = nil } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Signup)); yyxt10 != nil { z.DecExtension(x.Signup, yyxt10) } else { z.DecFallback(&x.Signup, true) } } case "Signin": if r.TryDecodeAsNil() { x.Signin = nil } else { if false { } else if yyxt12 := z.Extension(z.I2Rtid(x.Signin)); yyxt12 != nil { z.DecExtension(x.Signin, yyxt12) } else { z.DecFallback(&x.Signin, true) } } case "Connect": if r.TryDecodeAsNil() { x.Connect = nil } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Connect)); yyxt14 != nil { z.DecExtension(x.Connect, yyxt14) } else { z.DecFallback(&x.Connect, true) } } case "OnSignup": if r.TryDecodeAsNil() { x.OnSignup = nil } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.OnSignup)); yyxt16 != nil { z.DecExtension(x.OnSignup, yyxt16) } else { z.DecFallback(&x.OnSignup, true) } } case "OnSignin": if r.TryDecodeAsNil() { x.OnSignin = nil } else { if false { } else if yyxt18 := z.Extension(z.I2Rtid(x.OnSignin)); yyxt18 != nil { z.DecExtension(x.OnSignin, yyxt18) } else { z.DecFallback(&x.OnSignin, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *DefineScopeStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj19 int var yyb19 bool var yyhl19 bool = l >= 0 yyj19++ if yyhl19 { yyb19 = yyj19 > l } else { yyb19 = r.CheckBreak() } if yyb19 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj19++ if yyhl19 { yyb19 = yyj19 > l } else { yyb19 = r.CheckBreak() } if yyb19 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Time = 0 } else { if false { } else if yyxt22 := z.Extension(z.I2Rtid(x.Time)); yyxt22 != nil { z.DecExtension(x.Time, yyxt22) } else { x.Time = (time.Duration)(r.DecodeInt64()) } } yyj19++ if yyhl19 { yyb19 = yyj19 > l } else { yyb19 = r.CheckBreak() } if yyb19 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Code = nil } else { if false { } else { x.Code = r.DecodeBytes(([]byte)(x.Code), false) } } yyj19++ if yyhl19 { yyb19 = yyj19 > l } else { yyb19 = r.CheckBreak() } if yyb19 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Signup = nil } else { if false { } else if yyxt26 := z.Extension(z.I2Rtid(x.Signup)); yyxt26 != nil { z.DecExtension(x.Signup, yyxt26) } else { z.DecFallback(&x.Signup, true) } } yyj19++ if yyhl19 { yyb19 = yyj19 > l } else { yyb19 = r.CheckBreak() } if yyb19 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Signin = nil } else { if false { } else if yyxt28 := z.Extension(z.I2Rtid(x.Signin)); yyxt28 != nil { z.DecExtension(x.Signin, yyxt28) } else { z.DecFallback(&x.Signin, true) } } yyj19++ if yyhl19 { yyb19 = yyj19 > l } else { yyb19 = r.CheckBreak() } if yyb19 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Connect = nil } else { if false { } else if yyxt30 := z.Extension(z.I2Rtid(x.Connect)); yyxt30 != nil { z.DecExtension(x.Connect, yyxt30) } else { z.DecFallback(&x.Connect, true) } } yyj19++ if yyhl19 { yyb19 = yyj19 > l } else { yyb19 = r.CheckBreak() } if yyb19 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.OnSignup = nil } else { if false { } else if yyxt32 := z.Extension(z.I2Rtid(x.OnSignup)); yyxt32 != nil { z.DecExtension(x.OnSignup, yyxt32) } else { z.DecFallback(&x.OnSignup, true) } } yyj19++ if yyhl19 { yyb19 = yyj19 > l } else { yyb19 = r.CheckBreak() } if yyb19 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.OnSignin = nil } else { if false { } else if yyxt34 := z.Extension(z.I2Rtid(x.OnSignin)); yyxt34 != nil { z.DecExtension(x.OnSignin, yyxt34) } else { z.DecFallback(&x.OnSignin, true) } } for { yyj19++ if yyhl19 { yyb19 = yyj19 > l } else { yyb19 = r.CheckBreak() } if yyb19 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj19-1, "") } r.ReadArrayEnd() } func (x *RemoveScopeStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *RemoveScopeStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *RemoveScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *RemoveScopeStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x *DefineTableStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(11) } else { r.WriteMapStart(11) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.Full)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Full\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Full`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.Full)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.Vers)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Vers\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Vers`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.Vers)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.Drop)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Drop\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Drop`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.Drop)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.Lock)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Lock\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Lock`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.Lock)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Expr == nil { r.EncodeNil() } else { x.Expr.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Expr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) } r.WriteMapElemValue() if x.Expr == nil { r.EncodeNil() } else { x.Expr.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.From == nil { r.EncodeNil() } else { x.From.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"From\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `From`) } r.WriteMapElemValue() if x.From == nil { r.EncodeNil() } else { x.From.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt28 := z.Extension(z.I2Rtid(x.Cond)); yyxt28 != nil { z.EncExtension(x.Cond, yyxt28) } else { z.EncFallback(x.Cond) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Cond\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) } r.WriteMapElemValue() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt29 := z.Extension(z.I2Rtid(x.Cond)); yyxt29 != nil { z.EncExtension(x.Cond, yyxt29) } else { z.EncFallback(x.Cond) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Group == nil { r.EncodeNil() } else { x.Group.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Group\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Group`) } r.WriteMapElemValue() if x.Group == nil { r.EncodeNil() } else { x.Group.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Perms == nil { r.EncodeNil() } else { if false { } else if yyxt34 := z.Extension(z.I2Rtid(x.Perms)); yyxt34 != nil { z.EncExtension(x.Perms, yyxt34) } else { z.EncFallback(x.Perms) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Perms\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Perms`) } r.WriteMapElemValue() if x.Perms == nil { r.EncodeNil() } else { if false { } else if yyxt35 := z.Extension(z.I2Rtid(x.Perms)); yyxt35 != nil { z.EncExtension(x.Perms, yyxt35) } else { z.EncFallback(x.Perms) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DefineTableStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DefineTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } case "Full": if r.TryDecodeAsNil() { x.Full = false } else { x.Full = (bool)(r.DecodeBool()) } case "Vers": if r.TryDecodeAsNil() { x.Vers = false } else { x.Vers = (bool)(r.DecodeBool()) } case "Drop": if r.TryDecodeAsNil() { x.Drop = false } else { x.Drop = (bool)(r.DecodeBool()) } case "Lock": if r.TryDecodeAsNil() { x.Lock = false } else { x.Lock = (bool)(r.DecodeBool()) } case "Expr": if r.TryDecodeAsNil() { x.Expr = nil } else { x.Expr.CodecDecodeSelf(d) } case "From": if r.TryDecodeAsNil() { x.From = nil } else { x.From.CodecDecodeSelf(d) } case "Cond": if r.TryDecodeAsNil() { x.Cond = nil } else { if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Cond)); yyxt13 != nil { z.DecExtension(x.Cond, yyxt13) } else { z.DecFallback(&x.Cond, true) } } case "Group": if r.TryDecodeAsNil() { x.Group = nil } else { x.Group.CodecDecodeSelf(d) } case "Perms": if r.TryDecodeAsNil() { x.Perms = nil } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.Perms)); yyxt16 != nil { z.DecExtension(x.Perms, yyxt16) } else { z.DecFallback(&x.Perms, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *DefineTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj17 int var yyb17 bool var yyhl17 bool = l >= 0 yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Full = false } else { x.Full = (bool)(r.DecodeBool()) } yyj17++ if yyhl17 { yyb17 = yyj17 > l } else { yyb17 = r.CheckBreak() } if yyb17 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Vers = false } else { 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 = r.CheckBreak() } if yyb17 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj17-1, "") } r.ReadArrayEnd() } func (x *RemoveTableStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *RemoveTableStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *RemoveTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *RemoveTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x *DefineEventStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(4) } else { r.WriteMapStart(4) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.When == nil { r.EncodeNil() } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.When)); yyxt10 != nil { z.EncExtension(x.When, yyxt10) } else { z.EncFallback(x.When) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"When\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `When`) } r.WriteMapElemValue() if x.When == nil { r.EncodeNil() } else { if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.When)); yyxt11 != nil { z.EncExtension(x.When, yyxt11) } else { z.EncFallback(x.When) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Then == nil { r.EncodeNil() } else { if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Then)); yyxt13 != nil { z.EncExtension(x.Then, yyxt13) } else { z.EncFallback(x.Then) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Then\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Then`) } r.WriteMapElemValue() if x.Then == nil { r.EncodeNil() } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Then)); yyxt14 != nil { z.EncExtension(x.Then, yyxt14) } else { z.EncFallback(x.Then) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DefineEventStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DefineEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } case "When": if r.TryDecodeAsNil() { x.When = nil } else { if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.When)); yyxt7 != nil { z.DecExtension(x.When, yyxt7) } else { z.DecFallback(&x.When, true) } } case "Then": if r.TryDecodeAsNil() { x.Then = nil } else { if false { } else if yyxt9 := z.Extension(z.I2Rtid(x.Then)); yyxt9 != nil { z.DecExtension(x.Then, yyxt9) } else { z.DecFallback(&x.Then, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *DefineEventStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj10 int var yyb10 bool var yyhl10 bool = l >= 0 yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.When = nil } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.When)); yyxt14 != nil { z.DecExtension(x.When, yyxt14) } else { z.DecFallback(&x.When, true) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Then = nil } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.Then)); yyxt16 != nil { z.DecExtension(x.Then, yyxt16) } else { z.DecFallback(&x.Then, true) } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj10-1, "") } r.ReadArrayEnd() } func (x *RemoveEventStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *RemoveEventStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *RemoveEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *RemoveEventStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *DefineFieldStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(8) } else { r.WriteMapStart(8) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Perms == nil { r.EncodeNil() } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Perms)); yyxt10 != nil { z.EncExtension(x.Perms, yyxt10) } else { z.EncFallback(x.Perms) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Perms\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Perms`) } r.WriteMapElemValue() if x.Perms == nil { r.EncodeNil() } else { if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.Perms)); yyxt11 != nil { z.EncExtension(x.Perms, yyxt11) } else { z.EncFallback(x.Perms) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Type)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Type\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Type`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Type)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Kind)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Kind\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Kind`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Kind)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Value == nil { r.EncodeNil() } else { if false { } else if yyxt19 := z.Extension(z.I2Rtid(x.Value)); yyxt19 != nil { z.EncExtension(x.Value, yyxt19) } else { z.EncFallback(x.Value) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Value\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Value`) } r.WriteMapElemValue() if x.Value == nil { r.EncodeNil() } else { if false { } else if yyxt20 := z.Extension(z.I2Rtid(x.Value)); yyxt20 != nil { z.EncExtension(x.Value, yyxt20) } else { z.EncFallback(x.Value) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Assert == nil { r.EncodeNil() } else { if false { } else if yyxt22 := z.Extension(z.I2Rtid(x.Assert)); yyxt22 != nil { z.EncExtension(x.Assert, yyxt22) } else { z.EncFallback(x.Assert) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Assert\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Assert`) } r.WriteMapElemValue() if x.Assert == nil { r.EncodeNil() } else { if false { } else if yyxt23 := z.Extension(z.I2Rtid(x.Assert)); yyxt23 != nil { z.EncExtension(x.Assert, yyxt23) } else { z.EncFallback(x.Assert) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeFloat64(float64(x.Priority)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Priority\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Priority`) } r.WriteMapElemValue() if false { } else { r.EncodeFloat64(float64(x.Priority)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DefineFieldStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DefineFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } case "Perms": if r.TryDecodeAsNil() { x.Perms = nil } else { if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Perms)); yyxt7 != nil { z.DecExtension(x.Perms, yyxt7) } else { z.DecFallback(&x.Perms, true) } } case "Type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = (string)(r.DecodeString()) } case "Kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = (string)(r.DecodeString()) } case "Value": if r.TryDecodeAsNil() { x.Value = nil } else { if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.Value)); yyxt11 != nil { z.DecExtension(x.Value, yyxt11) } else { z.DecFallback(&x.Value, true) } } case "Assert": if r.TryDecodeAsNil() { x.Assert = nil } else { if false { } else if yyxt13 := z.Extension(z.I2Rtid(x.Assert)); yyxt13 != nil { z.DecExtension(x.Assert, yyxt13) } else { z.DecFallback(&x.Assert, true) } } case "Priority": if r.TryDecodeAsNil() { x.Priority = 0 } else { x.Priority = (float64)(r.DecodeFloat64()) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *DefineFieldStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj15 int var yyb15 bool var yyhl15 bool = l >= 0 yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Perms = nil } else { if false { } else if yyxt19 := z.Extension(z.I2Rtid(x.Perms)); yyxt19 != nil { z.DecExtension(x.Perms, yyxt19) } else { z.DecFallback(&x.Perms, true) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = (string)(r.DecodeString()) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = (string)(r.DecodeString()) } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Value = nil } else { if false { } else if yyxt23 := z.Extension(z.I2Rtid(x.Value)); yyxt23 != nil { z.DecExtension(x.Value, yyxt23) } else { z.DecFallback(&x.Value, true) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Assert = nil } else { if false { } else if yyxt25 := z.Extension(z.I2Rtid(x.Assert)); yyxt25 != nil { z.DecExtension(x.Assert, yyxt25) } else { z.DecFallback(&x.Assert, true) } } yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Priority = 0 } else { x.Priority = (float64)(r.DecodeFloat64()) } for { yyj15++ if yyhl15 { yyb15 = yyj15 > l } else { yyb15 = r.CheckBreak() } if yyb15 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj15-1, "") } r.ReadArrayEnd() } func (x *RemoveFieldStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *RemoveFieldStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *RemoveFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *RemoveFieldStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *DefineIndexStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(4) } else { r.WriteMapStart(4) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Cols == nil { r.EncodeNil() } else { x.Cols.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Cols\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Cols`) } r.WriteMapElemValue() if x.Cols == nil { r.EncodeNil() } else { x.Cols.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.Uniq)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Uniq\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Uniq`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.Uniq)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DefineIndexStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DefineIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } case "Cols": if r.TryDecodeAsNil() { x.Cols = nil } else { x.Cols.CodecDecodeSelf(d) } case "Uniq": if r.TryDecodeAsNil() { x.Uniq = false } else { x.Uniq = (bool)(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *DefineIndexStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int var yyb8 bool var yyhl8 bool = l >= 0 yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Cols = nil } else { x.Cols.CodecDecodeSelf(d) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Uniq = false } else { x.Uniq = (bool)(r.DecodeBool()) } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } r.ReadArrayEnd() } func (x *RemoveIndexStatement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } var yyn3 bool if x.Name == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *RemoveIndexStatement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *RemoveIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *RemoveIndexStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x Exprs) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encExprs((Exprs)(x), e) } } } func (x *Exprs) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decExprs((*Exprs)(x), d) } } func (x *All) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(0) } else { r.WriteMapStart(0) } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *All) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *All) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *All) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int var yyb4 bool var yyhl4 bool = l >= 0 for { yyj4++ if yyhl4 { yyb4 = yyj4 > l } else { yyb4 = r.CheckBreak() } if yyb4 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } r.ReadArrayEnd() } func (x *Any) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(0) } else { r.WriteMapStart(0) } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Any) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Any) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Any) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int var yyb4 bool var yyhl4 bool = l >= 0 for { yyj4++ if yyhl4 { yyb4 = yyj4 > l } else { yyb4 = r.CheckBreak() } if yyb4 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } r.ReadArrayEnd() } func (x *Null) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(0) } else { r.WriteMapStart(0) } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Null) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Null) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Null) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int var yyb4 bool var yyhl4 bool = l >= 0 for { yyj4++ if yyhl4 { yyb4 = yyj4 > l } else { yyb4 = r.CheckBreak() } if yyb4 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } r.ReadArrayEnd() } func (x *Void) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(0) } else { r.WriteMapStart(0) } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Void) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Void) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Void) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int var yyb4 bool var yyhl4 bool = l >= 0 for { yyj4++ if yyhl4 { yyb4 = yyj4 > l } else { yyb4 = r.CheckBreak() } if yyb4 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } r.ReadArrayEnd() } func (x *Empty) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(0) } else { r.WriteMapStart(0) } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Empty) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Empty) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Empty) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4 int var yyb4 bool var yyhl4 bool = l >= 0 for { yyj4++ if yyhl4 { yyb4 = yyj4 > l } else { yyb4 = r.CheckBreak() } if yyb4 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj4-1, "") } r.ReadArrayEnd() } func (x *Field) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(3) } else { r.WriteMapStart(3) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { z.EncExtension(x.Expr, yyxt4) } else { z.EncFallback(x.Expr) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Expr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) } r.WriteMapElemValue() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { z.EncExtension(x.Expr, yyxt5) } else { z.EncFallback(x.Expr) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Field)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Field\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Field`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Field)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Alias)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Alias\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Alias`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Alias)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Field) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Field) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Expr": if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { z.DecExtension(x.Expr, yyxt5) } else { z.DecFallback(&x.Expr, true) } } case "Field": if r.TryDecodeAsNil() { x.Field = "" } else { x.Field = (string)(r.DecodeString()) } case "Alias": if r.TryDecodeAsNil() { x.Alias = "" } else { x.Alias = (string)(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Field) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int var yyb8 bool var yyhl8 bool = l >= 0 yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Expr)); yyxt10 != nil { z.DecExtension(x.Expr, yyxt10) } else { z.DecFallback(&x.Expr, true) } } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Field = "" } else { x.Field = (string)(r.DecodeString()) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Alias = "" } else { x.Alias = (string)(r.DecodeString()) } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } r.ReadArrayEnd() } func (x Fields) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encFields((Fields)(x), e) } } } func (x *Fields) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decFields((*Fields)(x), d) } } func (x *Group) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { z.EncExtension(x.Expr, yyxt4) } else { z.EncFallback(x.Expr) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Expr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) } r.WriteMapElemValue() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { z.EncExtension(x.Expr, yyxt5) } else { z.EncFallback(x.Expr) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Group) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Group) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Expr": if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { z.DecExtension(x.Expr, yyxt5) } else { z.DecFallback(&x.Expr, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Group) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { z.DecExtension(x.Expr, yyxt8) } else { z.DecFallback(&x.Expr, true) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x Groups) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encGroups((Groups)(x), e) } } } func (x *Groups) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decGroups((*Groups)(x), d) } } func (x *Order) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(3) } else { r.WriteMapStart(3) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { z.EncExtension(x.Expr, yyxt4) } else { z.EncFallback(x.Expr) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Expr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) } r.WriteMapElemValue() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { z.EncExtension(x.Expr, yyxt5) } else { z.EncFallback(x.Expr) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.Dir)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Dir\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Dir`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.Dir)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() yy10 := &x.Tag if false { } else if yyxt11 := z.Extension(z.I2Rtid(yy10)); yyxt11 != nil { z.EncExtension(yy10, yyxt11) } else if !z.EncBinary() { z.EncTextMarshal(yy10) } else { z.EncFallback(yy10) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Tag\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Tag`) } r.WriteMapElemValue() yy12 := &x.Tag if false { } else if yyxt13 := z.Extension(z.I2Rtid(yy12)); yyxt13 != nil { z.EncExtension(yy12, yyxt13) } else if !z.EncBinary() { z.EncTextMarshal(yy12) } else { z.EncFallback(yy12) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Order) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Order) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Expr": if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { z.DecExtension(x.Expr, yyxt5) } else { z.DecFallback(&x.Expr, true) } } case "Dir": if r.TryDecodeAsNil() { x.Dir = false } else { x.Dir = (bool)(r.DecodeBool()) } case "Tag": if r.TryDecodeAsNil() { x.Tag = pkg1_language.Tag{} } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Tag)); yyxt8 != nil { z.DecExtension(x.Tag, yyxt8) } else if !z.DecBinary() { z.DecTextUnmarshal(&x.Tag) } else { z.DecFallback(&x.Tag, false) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Order) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj9 int var yyb9 bool var yyhl9 bool = l >= 0 yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.Expr)); yyxt11 != nil { z.DecExtension(x.Expr, yyxt11) } else { z.DecFallback(&x.Expr, true) } } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Dir = false } else { x.Dir = (bool)(r.DecodeBool()) } yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Tag = pkg1_language.Tag{} } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Tag)); yyxt14 != nil { z.DecExtension(x.Tag, yyxt14) } else if !z.DecBinary() { z.DecTextUnmarshal(&x.Tag) } else { z.DecFallback(&x.Tag, false) } } for { yyj9++ if yyhl9 { yyb9 = yyj9 > l } else { yyb9 = r.CheckBreak() } if yyb9 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj9-1, "") } r.ReadArrayEnd() } func (x Orders) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encOrders((Orders)(x), e) } } } func (x *Orders) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decOrders((*Orders)(x), d) } } func (x *Fetch) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { z.EncExtension(x.Expr, yyxt4) } else { z.EncFallback(x.Expr) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Expr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) } r.WriteMapElemValue() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { z.EncExtension(x.Expr, yyxt5) } else { z.EncFallback(x.Expr) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Fetch) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Fetch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Expr": if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { z.DecExtension(x.Expr, yyxt5) } else { z.DecFallback(&x.Expr, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Fetch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { z.DecExtension(x.Expr, yyxt8) } else { z.DecFallback(&x.Expr, true) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x Fetchs) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encFetchs((Fetchs)(x), e) } } } func (x *Fetchs) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decFetchs((*Fetchs)(x), d) } } func (x *SubExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Expr)); yyxt4 != nil { z.EncExtension(x.Expr, yyxt4) } else { z.EncFallback(x.Expr) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Expr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) } r.WriteMapElemValue() if x.Expr == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { z.EncExtension(x.Expr, yyxt5) } else { z.EncFallback(x.Expr) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *SubExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *SubExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Expr": if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Expr)); yyxt5 != nil { z.DecExtension(x.Expr, yyxt5) } else { z.DecFallback(&x.Expr, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *SubExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Expr)); yyxt8 != nil { z.DecExtension(x.Expr, yyxt8) } else { z.DecFallback(&x.Expr, true) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *MultExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Expr == nil { r.EncodeNil() } else { if false { } else { h.encSliceExpr(([]Expr)(x.Expr), e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Expr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) } r.WriteMapElemValue() if x.Expr == nil { r.EncodeNil() } else { if false { } else { h.encSliceExpr(([]Expr)(x.Expr), e) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *MultExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *MultExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Expr": if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else { h.decSliceExpr((*[]Expr)(&x.Expr), d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *MultExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Expr = nil } else { if false { } else { h.decSliceExpr((*[]Expr)(&x.Expr), d) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *FuncExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(3) } else { r.WriteMapStart(3) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Name)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.Name)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Args == nil { r.EncodeNil() } else { x.Args.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Args\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Args`) } r.WriteMapElemValue() if x.Args == nil { r.EncodeNil() } else { x.Args.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeBool(bool(x.Aggr)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Aggr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Aggr`) } r.WriteMapElemValue() if false { } else { r.EncodeBool(bool(x.Aggr)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *FuncExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *FuncExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = (string)(r.DecodeString()) } case "Args": if r.TryDecodeAsNil() { x.Args = nil } else { x.Args.CodecDecodeSelf(d) } case "Aggr": if r.TryDecodeAsNil() { x.Aggr = false } else { x.Aggr = (bool)(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *FuncExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int var yyb7 bool var yyhl7 bool = l >= 0 yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = (string)(r.DecodeString()) } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Args = nil } else { x.Args.CodecDecodeSelf(d) } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Aggr = false } else { x.Aggr = (bool)(r.DecodeBool()) } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } r.ReadArrayEnd() } func (x *ItemExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(3) } else { r.WriteMapStart(3) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.LHS == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.LHS)); yyxt4 != nil { z.EncExtension(x.LHS, yyxt4) } else { z.EncFallback(x.LHS) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"LHS\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `LHS`) } r.WriteMapElemValue() if x.LHS == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.LHS)); yyxt5 != nil { z.EncExtension(x.LHS, yyxt5) } else { z.EncFallback(x.LHS) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil { z.EncExtension(x.Op, yyxt7) } else if z.EncBinary() { z.EncBinaryMarshal(x.Op) } else if !z.EncBinary() { z.EncTextMarshal(x.Op) } else { r.EncodeInt(int64(x.Op)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Op\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Op`) } r.WriteMapElemValue() if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Op)); yyxt8 != nil { z.EncExtension(x.Op, yyxt8) } else if z.EncBinary() { z.EncBinaryMarshal(x.Op) } else if !z.EncBinary() { z.EncTextMarshal(x.Op) } else { r.EncodeInt(int64(x.Op)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.RHS == nil { r.EncodeNil() } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.RHS)); yyxt10 != nil { z.EncExtension(x.RHS, yyxt10) } else { z.EncFallback(x.RHS) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"RHS\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `RHS`) } r.WriteMapElemValue() if x.RHS == nil { r.EncodeNil() } else { if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.RHS)); yyxt11 != nil { z.EncExtension(x.RHS, yyxt11) } else { z.EncFallback(x.RHS) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *ItemExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *ItemExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "LHS": if r.TryDecodeAsNil() { x.LHS = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.LHS)); yyxt5 != nil { z.DecExtension(x.LHS, yyxt5) } else { z.DecFallback(&x.LHS, true) } } case "Op": if r.TryDecodeAsNil() { x.Op = 0 } else { if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil { z.DecExtension(x.Op, yyxt7) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Op) } else { x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "RHS": if r.TryDecodeAsNil() { x.RHS = nil } else { if false { } else if yyxt9 := z.Extension(z.I2Rtid(x.RHS)); yyxt9 != nil { z.DecExtension(x.RHS, yyxt9) } else { z.DecFallback(&x.RHS, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *ItemExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj10 int var yyb10 bool var yyhl10 bool = l >= 0 yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.LHS = nil } else { if false { } else if yyxt12 := z.Extension(z.I2Rtid(x.LHS)); yyxt12 != nil { z.DecExtension(x.LHS, yyxt12) } else { z.DecFallback(&x.LHS, true) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Op = 0 } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Op)); yyxt14 != nil { z.DecExtension(x.Op, yyxt14) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Op) } else { x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.RHS = nil } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.RHS)); yyxt16 != nil { z.DecExtension(x.RHS, yyxt16) } else { z.DecFallback(&x.RHS, true) } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj10-1, "") } r.ReadArrayEnd() } func (x *BinaryExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(3) } else { r.WriteMapStart(3) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.LHS == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.LHS)); yyxt4 != nil { z.EncExtension(x.LHS, yyxt4) } else { z.EncFallback(x.LHS) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"LHS\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `LHS`) } r.WriteMapElemValue() if x.LHS == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.LHS)); yyxt5 != nil { z.EncExtension(x.LHS, yyxt5) } else { z.EncFallback(x.LHS) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil { z.EncExtension(x.Op, yyxt7) } else if z.EncBinary() { z.EncBinaryMarshal(x.Op) } else if !z.EncBinary() { z.EncTextMarshal(x.Op) } else { r.EncodeInt(int64(x.Op)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Op\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Op`) } r.WriteMapElemValue() if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Op)); yyxt8 != nil { z.EncExtension(x.Op, yyxt8) } else if z.EncBinary() { z.EncBinaryMarshal(x.Op) } else if !z.EncBinary() { z.EncTextMarshal(x.Op) } else { r.EncodeInt(int64(x.Op)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.RHS == nil { r.EncodeNil() } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.RHS)); yyxt10 != nil { z.EncExtension(x.RHS, yyxt10) } else { z.EncFallback(x.RHS) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"RHS\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `RHS`) } r.WriteMapElemValue() if x.RHS == nil { r.EncodeNil() } else { if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.RHS)); yyxt11 != nil { z.EncExtension(x.RHS, yyxt11) } else { z.EncFallback(x.RHS) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *BinaryExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *BinaryExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "LHS": if r.TryDecodeAsNil() { x.LHS = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.LHS)); yyxt5 != nil { z.DecExtension(x.LHS, yyxt5) } else { z.DecFallback(&x.LHS, true) } } case "Op": if r.TryDecodeAsNil() { x.Op = 0 } else { if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil { z.DecExtension(x.Op, yyxt7) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Op) } else { x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } case "RHS": if r.TryDecodeAsNil() { x.RHS = nil } else { if false { } else if yyxt9 := z.Extension(z.I2Rtid(x.RHS)); yyxt9 != nil { z.DecExtension(x.RHS, yyxt9) } else { z.DecFallback(&x.RHS, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *BinaryExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj10 int var yyb10 bool var yyhl10 bool = l >= 0 yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.LHS = nil } else { if false { } else if yyxt12 := z.Extension(z.I2Rtid(x.LHS)); yyxt12 != nil { z.DecExtension(x.LHS, yyxt12) } else { z.DecFallback(&x.LHS, true) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Op = 0 } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Op)); yyxt14 != nil { z.DecExtension(x.Op, yyxt14) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Op) } else { x.Op = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.RHS = nil } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.RHS)); yyxt16 != nil { z.DecExtension(x.RHS, yyxt16) } else { z.DecFallback(&x.RHS, true) } } for { yyj10++ if yyhl10 { yyb10 = yyj10 > l } else { yyb10 = r.CheckBreak() } if yyb10 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj10-1, "") } r.ReadArrayEnd() } func (x *PathExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Expr == nil { r.EncodeNil() } else { x.Expr.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Expr\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Expr`) } r.WriteMapElemValue() if x.Expr == nil { r.EncodeNil() } else { x.Expr.CodecEncodeSelf(e) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *PathExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *PathExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Expr": if r.TryDecodeAsNil() { x.Expr = nil } else { x.Expr.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *PathExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Expr = nil } else { x.Expr.CodecDecodeSelf(d) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x *PartExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Part == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Part)); yyxt4 != nil { z.EncExtension(x.Part, yyxt4) } else { z.EncFallback(x.Part) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Part\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Part`) } r.WriteMapElemValue() if x.Part == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Part)); yyxt5 != nil { z.EncExtension(x.Part, yyxt5) } else { z.EncFallback(x.Part) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *PartExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *PartExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Part": if r.TryDecodeAsNil() { x.Part = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Part)); yyxt5 != nil { z.DecExtension(x.Part, yyxt5) } else { z.DecFallback(&x.Part, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *PartExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Part = nil } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Part)); yyxt8 != nil { z.DecExtension(x.Part, yyxt8) } else { z.DecFallback(&x.Part, true) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *JoinExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Join)); yyxt4 != nil { z.EncExtension(x.Join, yyxt4) } else if z.EncBinary() { z.EncBinaryMarshal(x.Join) } else if !z.EncBinary() { z.EncTextMarshal(x.Join) } else { r.EncodeInt(int64(x.Join)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Join\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Join`) } r.WriteMapElemValue() if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Join)); yyxt5 != nil { z.EncExtension(x.Join, yyxt5) } else if z.EncBinary() { z.EncBinaryMarshal(x.Join) } else if !z.EncBinary() { z.EncTextMarshal(x.Join) } else { r.EncodeInt(int64(x.Join)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *JoinExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *JoinExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Join": if r.TryDecodeAsNil() { x.Join = 0 } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Join)); yyxt5 != nil { z.DecExtension(x.Join, yyxt5) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Join) } else { x.Join = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *JoinExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Join = 0 } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Join)); yyxt8 != nil { z.DecExtension(x.Join, yyxt8) } else if z.DecBinary() { z.DecBinaryUnmarshal(&x.Join) } else { x.Join = (Token)(z.C.IntV(r.DecodeInt64(), 16)) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *SubpExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(3) } else { r.WriteMapStart(3) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"What\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `What`) } r.WriteMapElemValue() if x.What == nil { r.EncodeNil() } else { x.What.CodecEncodeSelf(e) } } var yyn6 bool if x.Name == nil { yyn6 = true goto LABEL6 } LABEL6: if yyr2 || yy2arr2 { if yyn6 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Name\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Name`) } r.WriteMapElemValue() if yyn6 { r.EncodeNil() } else { if x.Name == nil { r.EncodeNil() } else { x.Name.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt10 := z.Extension(z.I2Rtid(x.Cond)); yyxt10 != nil { z.EncExtension(x.Cond, yyxt10) } else { z.EncFallback(x.Cond) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Cond\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Cond`) } r.WriteMapElemValue() if x.Cond == nil { r.EncodeNil() } else { if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.Cond)); yyxt11 != nil { z.EncExtension(x.Cond, yyxt11) } else { z.EncFallback(x.Cond) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *SubpExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *SubpExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "What": if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } case "Name": if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } case "Cond": if r.TryDecodeAsNil() { x.Cond = nil } else { if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Cond)); yyxt7 != nil { z.DecExtension(x.Cond, yyxt7) } else { z.DecFallback(&x.Cond, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *SubpExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int var yyb8 bool var yyhl8 bool = l >= 0 yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.What = nil } else { x.What.CodecDecodeSelf(d) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.Name != nil { x.Name = nil } } else { if x.Name == nil { x.Name = new(Ident) } x.Name.CodecDecodeSelf(d) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Cond = nil } else { if false { } else if yyxt12 := z.Extension(z.I2Rtid(x.Cond)); yyxt12 != nil { z.DecExtension(x.Cond, yyxt12) } else { z.DecFallback(&x.Cond, true) } } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } r.ReadArrayEnd() } func (x *PermExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(4) } else { r.WriteMapStart(4) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.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 { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Select\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Select`) } r.WriteMapElemValue() if x.Select == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Select)); yyxt5 != nil { z.EncExtension(x.Select, yyxt5) } else { z.EncFallback(x.Select) } } } 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.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Create\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Create`) } r.WriteMapElemValue() if x.Create == nil { r.EncodeNil() } else { if false { } else if yyxt8 := z.Extension(z.I2Rtid(x.Create)); yyxt8 != nil { z.EncExtension(x.Create, yyxt8) } else { z.EncFallback(x.Create) } } } 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 { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Update\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Update`) } r.WriteMapElemValue() if x.Update == nil { r.EncodeNil() } else { if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.Update)); yyxt11 != nil { z.EncExtension(x.Update, yyxt11) } else { z.EncFallback(x.Update) } } } 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.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Delete\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Delete`) } r.WriteMapElemValue() if x.Delete == nil { r.EncodeNil() } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Delete)); yyxt14 != nil { z.EncExtension(x.Delete, yyxt14) } else { z.EncFallback(x.Delete) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *PermExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *PermExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Select": if r.TryDecodeAsNil() { x.Select = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Select)); yyxt5 != nil { z.DecExtension(x.Select, yyxt5) } else { z.DecFallback(&x.Select, true) } } case "Create": if r.TryDecodeAsNil() { x.Create = nil } else { if false { } else if yyxt7 := z.Extension(z.I2Rtid(x.Create)); yyxt7 != nil { z.DecExtension(x.Create, yyxt7) } else { z.DecFallback(&x.Create, true) } } case "Update": if r.TryDecodeAsNil() { x.Update = nil } else { if false { } else if yyxt9 := z.Extension(z.I2Rtid(x.Update)); yyxt9 != nil { z.DecExtension(x.Update, yyxt9) } else { z.DecFallback(&x.Update, true) } } case "Delete": if r.TryDecodeAsNil() { x.Delete = nil } else { if false { } else if yyxt11 := z.Extension(z.I2Rtid(x.Delete)); yyxt11 != nil { z.DecExtension(x.Delete, yyxt11) } else { z.DecFallback(&x.Delete, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *PermExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj12 int var yyb12 bool var yyhl12 bool = l >= 0 yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Select = nil } else { if false { } else if yyxt14 := z.Extension(z.I2Rtid(x.Select)); yyxt14 != nil { z.DecExtension(x.Select, yyxt14) } else { z.DecFallback(&x.Select, true) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Create = nil } else { if false { } else if yyxt16 := z.Extension(z.I2Rtid(x.Create)); yyxt16 != nil { z.DecExtension(x.Create, yyxt16) } else { z.DecFallback(&x.Create, true) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Update = nil } else { if false { } else if yyxt18 := z.Extension(z.I2Rtid(x.Update)); yyxt18 != nil { z.DecExtension(x.Update, yyxt18) } else { z.DecFallback(&x.Update, true) } } yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Delete = nil } else { if false { } else if yyxt20 := z.Extension(z.I2Rtid(x.Delete)); yyxt20 != nil { z.DecExtension(x.Delete, yyxt20) } else { z.DecFallback(&x.Delete, true) } } for { yyj12++ if yyhl12 { yyb12 = yyj12 > l } else { yyb12 = r.CheckBreak() } if yyb12 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj12-1, "") } r.ReadArrayEnd() } func (x *DataExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Data == nil { r.EncodeNil() } else { if false { } else { h.encSlicePtrtoItemExpression(([]*ItemExpression)(x.Data), e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Data\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) } r.WriteMapElemValue() if x.Data == nil { r.EncodeNil() } else { if false { } else { h.encSlicePtrtoItemExpression(([]*ItemExpression)(x.Data), e) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DataExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DataExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Data": if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else { 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 codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else { h.decSlicePtrtoItemExpression((*[]*ItemExpression)(&x.Data), d) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *DiffExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { z.EncExtension(x.Data, yyxt4) } else { z.EncFallback(x.Data) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Data\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) } r.WriteMapElemValue() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { z.EncExtension(x.Data, yyxt5) } else { z.EncFallback(x.Data) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *DiffExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *DiffExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Data": if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { z.DecExtension(x.Data, yyxt5) } else { z.DecFallback(&x.Data, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *DiffExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Data = nil } else { 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 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *MergeExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { z.EncExtension(x.Data, yyxt4) } else { z.EncFallback(x.Data) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Data\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) } r.WriteMapElemValue() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { z.EncExtension(x.Data, yyxt5) } else { z.EncFallback(x.Data) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *MergeExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *MergeExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Data": if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { z.DecExtension(x.Data, yyxt5) } else { z.DecFallback(&x.Data, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *MergeExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Data = nil } else { 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 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x *ContentExpression) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt4 := z.Extension(z.I2Rtid(x.Data)); yyxt4 != nil { z.EncExtension(x.Data, yyxt4) } else { z.EncFallback(x.Data) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"Data\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `Data`) } r.WriteMapElemValue() if x.Data == nil { r.EncodeNil() } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { z.EncExtension(x.Data, yyxt5) } else { z.EncFallback(x.Data) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *ContentExpression) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *ContentExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "Data": if r.TryDecodeAsNil() { x.Data = nil } else { if false { } else if yyxt5 := z.Extension(z.I2Rtid(x.Data)); yyxt5 != nil { z.DecExtension(x.Data, yyxt5) } else { z.DecFallback(&x.Data, true) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *ContentExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.Data = nil } else { 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 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x Params) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encParams((Params)(x), e) } } } func (x *Params) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decParams((*Params)(x), d) } } func (x *Param) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"VA\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `VA`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Param) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Param) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "VA": if r.TryDecodeAsNil() { x.VA = "" } else { x.VA = (string)(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Param) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.VA = "" } else { x.VA = (string)(r.DecodeString()) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x Idents) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encIdents((Idents)(x), e) } } } func (x *Idents) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decIdents((*Idents)(x), d) } } func (x *Ident) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"VA\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `VA`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Ident) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Ident) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "VA": if r.TryDecodeAsNil() { x.VA = "" } else { x.VA = (string)(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Ident) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.VA = "" } else { x.VA = (string)(r.DecodeString()) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x Values) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encValues((Values)(x), e) } } } func (x *Values) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decValues((*Values)(x), d) } } func (x *Value) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"VA\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `VA`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Value) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Value) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "VA": if r.TryDecodeAsNil() { x.VA = "" } else { x.VA = (string)(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Value) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.VA = "" } else { x.VA = (string)(r.DecodeString()) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x Regexs) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encRegexs((Regexs)(x), e) } } } func (x *Regexs) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decRegexs((*Regexs)(x), d) } } func (x *Regex) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"VA\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `VA`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.VA)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Regex) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Regex) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "VA": if r.TryDecodeAsNil() { x.VA = "" } else { x.VA = (string)(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Regex) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.VA = "" } else { x.VA = (string)(r.DecodeString()) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x Tables) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encTables((Tables)(x), e) } } } func (x *Tables) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decTables((*Tables)(x), d) } } func (x *Table) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"TB\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `TB`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Table) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Table) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "TB": if r.TryDecodeAsNil() { x.TB = "" } else { x.TB = (string)(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Table) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj5 int var yyb5 bool var yyhl5 bool = l >= 0 yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.TB = "" } else { x.TB = (string)(r.DecodeString()) } for { yyj5++ if yyhl5 { yyb5 = yyj5 > l } else { yyb5 = r.CheckBreak() } if yyb5 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj5-1, "") } r.ReadArrayEnd() } func (x Batchs) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encBatchs((Batchs)(x), e) } } } func (x *Batchs) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decBatchs((*Batchs)(x), d) } } func (x *Batch) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"TB\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `TB`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.BA == nil { r.EncodeNil() } else { if false { } else { h.encSlicePtrtoThing(([]*Thing)(x.BA), e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"BA\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `BA`) } r.WriteMapElemValue() if x.BA == nil { r.EncodeNil() } else { if false { } else { h.encSlicePtrtoThing(([]*Thing)(x.BA), e) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Batch) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Batch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "TB": if r.TryDecodeAsNil() { x.TB = "" } else { x.TB = (string)(r.DecodeString()) } case "BA": if r.TryDecodeAsNil() { x.BA = nil } else { if false { } else { h.decSlicePtrtoThing((*[]*Thing)(&x.BA), d) } } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Batch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int var yyb7 bool var yyhl7 bool = l >= 0 yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.TB = "" } else { x.TB = (string)(r.DecodeString()) } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.BA = nil } else { if false { } else { h.decSlicePtrtoThing((*[]*Thing)(&x.BA), d) } } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } r.ReadArrayEnd() } func (x Models) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encModels((Models)(x), e) } } } func (x *Models) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decModels((*Models)(x), d) } } func (x *Model) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(4) } else { r.WriteMapStart(4) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"TB\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `TB`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeFloat64(float64(x.MIN)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"MIN\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `MIN`) } r.WriteMapElemValue() if false { } else { r.EncodeFloat64(float64(x.MIN)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeFloat64(float64(x.INC)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"INC\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `INC`) } r.WriteMapElemValue() if false { } else { r.EncodeFloat64(float64(x.INC)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeFloat64(float64(x.MAX)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"MAX\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `MAX`) } r.WriteMapElemValue() if false { } else { r.EncodeFloat64(float64(x.MAX)) } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Model) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Model) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "TB": if r.TryDecodeAsNil() { x.TB = "" } else { x.TB = (string)(r.DecodeString()) } case "MIN": if r.TryDecodeAsNil() { x.MIN = 0 } else { x.MIN = (float64)(r.DecodeFloat64()) } case "INC": if r.TryDecodeAsNil() { x.INC = 0 } else { x.INC = (float64)(r.DecodeFloat64()) } case "MAX": if r.TryDecodeAsNil() { x.MAX = 0 } else { x.MAX = (float64)(r.DecodeFloat64()) } default: z.DecStructFieldNotFound(-1, yys3) } // end switch yys3 } // end for yyj3 r.ReadMapEnd() } func (x *Model) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj8 int var yyb8 bool var yyhl8 bool = l >= 0 yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.TB = "" } else { x.TB = (string)(r.DecodeString()) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.MIN = 0 } else { x.MIN = (float64)(r.DecodeFloat64()) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.INC = 0 } else { x.INC = (float64)(r.DecodeFloat64()) } yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.MAX = 0 } else { x.MAX = (float64)(r.DecodeFloat64()) } for { yyj8++ if yyhl8 { yyb8 = yyj8 > l } else { yyb8 = r.CheckBreak() } if yyb8 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj8-1, "") } r.ReadArrayEnd() } func (x Things) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encThings((Things)(x), e) } } } func (x *Things) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decThings((*Things)(x), d) } } func (x *Thing) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else if !z.EncBinary() { z.EncTextMarshal(x) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"TB\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `TB`) } r.WriteMapElemValue() if false { } else { r.EncodeStringEnc(codecSelferCcUTF85519, string(x.TB)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.ID == nil { r.EncodeNil() } else { if false { } else { z.EncFallback(x.ID) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"ID\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `ID`) } r.WriteMapElemValue() if x.ID == nil { r.EncodeNil() } else { if false { } else { z.EncFallback(x.ID) } } } if yyr2 || yy2arr2 { r.WriteArrayEnd() } else { r.WriteMapEnd() } } } } func (x *Thing) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Thing) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "TB": if r.TryDecodeAsNil() { x.TB = "" } else { x.TB = (string)(r.DecodeString()) } case "ID": 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 codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj7 int var yyb7 bool var yyhl7 bool = l >= 0 yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.TB = "" } else { x.TB = (string)(r.DecodeString()) } yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.ID = nil } else { if false { } else { z.DecFallback(&x.ID, true) } } for { yyj7++ if yyhl7 { yyb7 = yyj7 > l } else { yyb7 = r.CheckBreak() } if yyb7 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj7-1, "") } r.ReadArrayEnd() } func (x Points) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encPoints((Points)(x), e) } } } func (x *Points) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decPoints((*Points)(x), d) } } func (x *Point) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else if !z.EncBinary() && z.IsJSONHandle() { z.EncJSONMarshal(x) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeFloat64(float64(x.LA)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"LA\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `LA`) } r.WriteMapElemValue() if false { } else { r.EncodeFloat64(float64(x.LA)) } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeFloat64(float64(x.LO)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"LO\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `LO`) } 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 codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Point) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "LA": if r.TryDecodeAsNil() { x.LA = 0 } else { x.LA = (float64)(r.DecodeFloat64()) } case "LO": 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 codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.LA = 0 } else { x.LA = (float64)(r.DecodeFloat64()) } yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.LO = 0 } else { x.LO = (float64)(r.DecodeFloat64()) } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x Circles) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encCircles((Circles)(x), e) } } } func (x *Circles) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decCircles((*Circles)(x), d) } } func (x *Circle) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else if !z.EncBinary() && z.IsJSONHandle() { z.EncJSONMarshal(x) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(2) } else { r.WriteMapStart(2) } var yyn3 bool if x.CE == nil { yyn3 = true goto LABEL3 } LABEL3: if yyr2 || yy2arr2 { if yyn3 { r.WriteArrayElem() r.EncodeNil() } else { r.WriteArrayElem() if x.CE == nil { r.EncodeNil() } else { x.CE.CodecEncodeSelf(e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"CE\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `CE`) } r.WriteMapElemValue() if yyn3 { r.EncodeNil() } else { if x.CE == nil { r.EncodeNil() } else { x.CE.CodecEncodeSelf(e) } } } if yyr2 || yy2arr2 { r.WriteArrayElem() if false { } else { r.EncodeFloat64(float64(x.RA)) } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"RA\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `RA`) } 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 codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Circle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "CE": 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": 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 codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { if true && x.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 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.RA = 0 } else { x.RA = (float64)(r.DecodeFloat64()) } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x Polygons) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else { h.encPolygons((Polygons)(x), e) } } } func (x *Polygons) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { h.decPolygons((*Polygons)(x), d) } } func (x *Polygon) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.EncExtension(x, yyxt1) } else if !z.EncBinary() && z.IsJSONHandle() { z.EncJSONMarshal(x) } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray _, _ = yysep2, yy2arr2 const yyr2 bool = false // struct tag has 'toArray' if yyr2 || yy2arr2 { r.WriteArrayStart(1) } else { r.WriteMapStart(1) } if yyr2 || yy2arr2 { r.WriteArrayElem() if x.PS == nil { r.EncodeNil() } else { if false { } else { h.encSlicePtrtoPoint(([]*Point)(x.PS), e) } } } else { r.WriteMapElemKey() if z.IsJSONHandle() { z.WriteStr("\"PS\"") } else { r.EncodeStringEnc(codecSelferCcUTF85519, `PS`) } r.WriteMapElemValue() if x.PS == nil { r.EncodeNil() } else { 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 codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r if false { } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { z.DecExtension(x, yyxt1) } else { yyct2 := r.ContainerType() if yyct2 == codecSelferValueTypeMap5519 { yyl2 := r.ReadMapStart() if yyl2 == 0 { r.ReadMapEnd() } else { x.codecDecodeSelfFromMap(yyl2, d) } } else if yyct2 == codecSelferValueTypeArray5519 { yyl2 := r.ReadArrayStart() if yyl2 == 0 { r.ReadArrayEnd() } else { x.codecDecodeSelfFromArray(yyl2, d) } } else { panic(errCodecSelferOnlyMapOrArrayEncodeToStruct5519) } } } func (x *Polygon) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyhl3 bool = l >= 0 for yyj3 := 0; ; yyj3++ { if yyhl3 { if yyj3 >= l { break } } else { if r.CheckBreak() { break } } r.ReadMapElemKey() yys3 := z.StringView(r.DecodeStringAsBytes()) r.ReadMapElemValue() switch yys3 { case "PS": 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 codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj6 int var yyb6 bool var yyhl6 bool = l >= 0 yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { r.ReadArrayEnd() return } r.ReadArrayElem() if r.TryDecodeAsNil() { x.PS = nil } else { if false { } else { h.decSlicePtrtoPoint((*[]*Point)(&x.PS), d) } } for { yyj6++ if yyhl6 { yyb6 = yyj6 > l } else { yyb6 = r.CheckBreak() } if yyb6 { break } r.ReadArrayElem() z.DecStructFieldNotFound(yyj6-1, "") } r.ReadArrayEnd() } func (x codecSelfer5519) encStatements(v Statements, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { if false { } else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { z.EncExtension(yyv1, yyxt2) } else { z.EncFallback(yyv1) } } } r.WriteArrayEnd() } func (x codecSelfer5519) decStatements(v *Statements, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []Statement{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]Statement, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]Statement, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if false { } else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { z.DecExtension(yyv1[yyj1], yyxt3) } else { z.DecFallback(&yyv1[yyj1], true) } } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]Statement, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encExprs(v Exprs, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { if false { } else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { z.EncExtension(yyv1, yyxt2) } else { z.EncFallback(yyv1) } } } r.WriteArrayEnd() } func (x codecSelfer5519) decExprs(v *Exprs, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []Expr{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]Expr, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]Expr, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if false { } else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { z.DecExtension(yyv1[yyj1], yyxt3) } else { z.DecFallback(&yyv1[yyj1], true) } } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]Expr, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encFields(v Fields, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decFields(v *Fields, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Field{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Field, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Field, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Field) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Field, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encGroups(v Groups, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decGroups(v *Groups, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Group{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Group, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Group, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Group) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Group, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encOrders(v Orders, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decOrders(v *Orders, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Order{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Order, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Order, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Order) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Order, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encFetchs(v Fetchs, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decFetchs(v *Fetchs, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Fetch{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Fetch, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Fetch, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Fetch) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Fetch, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encSliceExpr(v []Expr, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { if false { } else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil { z.EncExtension(yyv1, yyxt2) } else { z.EncFallback(yyv1) } } } r.WriteArrayEnd() } func (x codecSelfer5519) decSliceExpr(v *[]Expr, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []Expr{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]Expr, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]Expr, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if false { } else if yyxt3 := z.Extension(z.I2Rtid(yyv1[yyj1])); yyxt3 != nil { z.DecExtension(yyv1[yyj1], yyxt3) } else { z.DecFallback(&yyv1[yyj1], true) } } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]Expr, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encSlicePtrtoItemExpression(v []*ItemExpression, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*ItemExpression{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*ItemExpression, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*ItemExpression, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(ItemExpression) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*ItemExpression, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encParams(v Params, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decParams(v *Params, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Param{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Param, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Param, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Param) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Param, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encIdents(v Idents, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decIdents(v *Idents, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Ident{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Ident, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Ident, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Ident) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Ident, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encValues(v Values, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decValues(v *Values, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Value{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Value, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Value, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Value) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Value, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encRegexs(v Regexs, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decRegexs(v *Regexs, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Regex{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Regex, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Regex, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Regex) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Regex, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encTables(v Tables, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decTables(v *Tables, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Table{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Table, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Table, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Table) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Table, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encBatchs(v Batchs, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decBatchs(v *Batchs, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Batch{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Batch, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Batch, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Batch) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Batch, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encSlicePtrtoThing(v []*Thing, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Thing{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Thing, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Thing, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Thing) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Thing, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encModels(v Models, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decModels(v *Models, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Model{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Model, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Model, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Model) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Model, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encThings(v Things, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decThings(v *Things, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Thing{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Thing, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Thing, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Thing) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Thing, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encPoints(v Points, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decPoints(v *Points, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Point{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Point, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Point, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Point) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Point, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encCircles(v Circles, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decCircles(v *Circles, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Circle{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Circle, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Circle, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Circle) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Circle, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encPolygons(v Polygons, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decPolygons(v *Polygons, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Polygon{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Polygon, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Polygon, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Polygon) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Polygon, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } } func (x codecSelfer5519) encSlicePtrtoPoint(v []*Point, e *codec1978.Encoder) { var h codecSelfer5519 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.WriteArrayStart(len(v)) for _, yyv1 := range v { r.WriteArrayElem() if yyv1 == nil { r.EncodeNil() } else { yyv1.CodecEncodeSelf(e) } } r.WriteArrayEnd() } func (x codecSelfer5519) decSlicePtrtoPoint(v *[]*Point, d *codec1978.Decoder) { var h codecSelfer5519 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv1 := *v yyh1, yyl1 := z.DecSliceHelperStart() var yyc1 bool _ = yyc1 if yyl1 == 0 { if yyv1 == nil { yyv1 = []*Point{} yyc1 = true } else if len(yyv1) != 0 { yyv1 = yyv1[:0] yyc1 = true } } else { yyhl1 := yyl1 > 0 var yyrl1 int _ = yyrl1 if yyhl1 { if yyl1 > cap(yyv1) { yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) if yyrl1 <= cap(yyv1) { yyv1 = yyv1[:yyrl1] } else { yyv1 = make([]*Point, yyrl1) } yyc1 = true } else if yyl1 != len(yyv1) { yyv1 = yyv1[:yyl1] yyc1 = true } } var yyj1 int // 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) } else { yyrl1 = 8 } yyv1 = make([]*Point, yyrl1) yyc1 = true } yyh1.ElemContainerState(yyj1) var yydb1 bool if yyj1 >= len(yyv1) { yyv1 = append(yyv1, nil) yyc1 = true } if yydb1 { z.DecSwallow() } else { if r.TryDecodeAsNil() { yyv1[yyj1] = nil } else { if yyv1[yyj1] == nil { yyv1[yyj1] = new(Point) } yyv1[yyj1].CodecDecodeSelf(d) } } } if yyj1 < len(yyv1) { yyv1 = yyv1[:yyj1] yyc1 = true } else if yyj1 == 0 && yyv1 == nil { yyv1 = make([]*Point, 0) yyc1 = true } } yyh1.End() if yyc1 { *v = yyv1 } }