surrealpatch/sql/ast.gen.go
Tobie Morgan Hitchcock a569ad78d6 Improve statement read/write status detection
Only store read-write statement status in the database for statements which can be either read or write. For those statements which are always write statements (Live, Kill, Create, Update, Delete, Relate, Insert, Upsert, Define, Remove….), then hardcode this on the statement itself.
2017-11-24 12:56:53 +00:00

20482 lines
400 KiB
Go

// Code generated by codecgen - DO NOT EDIT.
package sql
import (
"errors"
"fmt"
codec1978 "github.com/ugorji/go/codec"
pkg1_language "golang.org/x/text/language"
"reflect"
"runtime"
time "time"
)
const (
// ----- content types ----
codecSelferCcUTF88654 = 1
codecSelferCcRAW8654 = 0
// ----- value types used ----
codecSelferValueTypeArray8654 = 10
codecSelferValueTypeMap8654 = 9
)
var (
codecSelferBitsize8654 = uint8(reflect.TypeOf(uint(0)).Bits())
errCodecSelferOnlyMapOrArrayEncodeToStruct8654 = errors.New(`only encoded map or array can be decoded into a struct`)
)
type codecSelfer8654 struct{}
func init() {
if codec1978.GenVersion != 8 {
_, file, _, _ := runtime.Caller(0)
err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v",
8, codec1978.GenVersion, file)
panic(err)
}
if false { // 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
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()
r.EncodeString(codecSelferCcUTF88654, `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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Query) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Statements":
if r.TryDecodeAsNil() {
x.Statements = nil
} else {
yyv4 := &x.Statements
yyv4.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 codecSelfer8654
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 {
yyv6 := &x.Statements
yyv6.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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
h.decStatements((*Statements)(x), d)
}
}
func (x *BeginStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *BeginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
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 codecSelfer8654
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *CancelStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
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 codecSelfer8654
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *CommitStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
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 codecSelfer8654
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 *UseStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(0)
} else {
r.WriteMapStart(0)
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *UseStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *UseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *UseStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(0)
} else {
r.WriteMapStart(0)
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *InfoStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *InfoStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *InfoStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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 *IfStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(3)
} else {
r.WriteMapStart(3)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Cond == nil {
r.EncodeNil()
} else {
x.Cond.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `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()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym10 := z.EncBinary()
_ = yym10
if false {
} else if yyxt10 := z.Extension(z.I2Rtid(x.Else)); yyxt10 != nil {
z.EncExtension(x.Else, yyxt10)
} else {
z.EncFallback(x.Else)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `else`)
r.WriteMapElemValue()
if x.Else == nil {
r.EncodeNil()
} else {
yym11 := z.EncBinary()
_ = yym11
if false {
} else if yyxt11 := z.Extension(z.I2Rtid(x.Else)); yyxt11 != nil {
z.EncExtension(x.Else, yyxt11)
} else {
z.EncFallback(x.Else)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *IfStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *IfStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "cond":
if r.TryDecodeAsNil() {
x.Cond = nil
} else {
yyv4 := &x.Cond
yyv4.CodecDecodeSelf(d)
}
case "then":
if r.TryDecodeAsNil() {
x.Then = nil
} else {
yyv5 := &x.Then
yyv5.CodecDecodeSelf(d)
}
case "else":
if r.TryDecodeAsNil() {
x.Else = nil
} else {
yyv6 := &x.Else
yym7 := z.DecBinary()
_ = yym7
if false {
} else if yyxt7 := z.Extension(z.I2Rtid(yyv6)); yyxt7 != nil {
z.DecExtension(yyv6, yyxt7)
} else {
z.DecFallback(yyv6, true)
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *IfStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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.Cond = nil
} else {
yyv9 := &x.Cond
yyv9.CodecDecodeSelf(d)
}
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
} else {
yyb8 = r.CheckBreak()
}
if yyb8 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Then = nil
} else {
yyv10 := &x.Then
yyv10.CodecDecodeSelf(d)
}
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
} else {
yyb8 = r.CheckBreak()
}
if yyb8 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Else = nil
} else {
yyv11 := &x.Else
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, 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 *LetStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(0)
} else {
r.WriteMapStart(0)
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *LetStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *LetStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *LetStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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 *ReturnStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(0)
} else {
r.WriteMapStart(0)
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *ReturnStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *ReturnStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *ReturnStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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 *LiveStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(9)
} else {
r.WriteMapStart(9)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.ID))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `ID`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.ID))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.FB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `FB`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.FB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `KV`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `NS`)
r.WriteMapElemValue()
yym14 := z.EncBinary()
_ = yym14
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym16 := z.EncBinary()
_ = yym16
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `DB`)
r.WriteMapElemValue()
yym17 := z.EncBinary()
_ = yym17
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym19 := z.EncBinary()
_ = yym19
if false {
} else {
r.EncodeBool(bool(x.Diff))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `diff`)
r.WriteMapElemValue()
yym20 := z.EncBinary()
_ = yym20
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()
r.EncodeString(codecSelferCcUTF88654, `expr`)
r.WriteMapElemValue()
if x.Expr == nil {
r.EncodeNil()
} else {
x.Expr.CodecEncodeSelf(e)
}
}
var yyn24 bool
if x.What == nil {
yyn24 = true
goto LABEL24
}
LABEL24:
if yyr2 || yy2arr2 {
if yyn24 {
r.WriteArrayElem()
r.EncodeNil()
} else {
r.WriteArrayElem()
if x.What == nil {
r.EncodeNil()
} else {
x.What.CodecEncodeSelf(e)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `what`)
r.WriteMapElemValue()
if yyn24 {
r.EncodeNil()
} else {
if x.What == nil {
r.EncodeNil()
} else {
x.What.CodecEncodeSelf(e)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Cond == nil {
r.EncodeNil()
} else {
yym28 := z.EncBinary()
_ = yym28
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()
r.EncodeString(codecSelferCcUTF88654, `cond`)
r.WriteMapElemValue()
if x.Cond == nil {
r.EncodeNil()
} else {
yym29 := z.EncBinary()
_ = yym29
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.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *LiveStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *LiveStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "ID":
if r.TryDecodeAsNil() {
x.ID = ""
} else {
yyv4 := &x.ID
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "FB":
if r.TryDecodeAsNil() {
x.FB = ""
} else {
yyv6 := &x.FB
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "KV":
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv8 := &x.KV
yym9 := z.DecBinary()
_ = yym9
if false {
} else {
*((*string)(yyv8)) = r.DecodeString()
}
}
case "NS":
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv10 := &x.NS
yym11 := z.DecBinary()
_ = yym11
if false {
} else {
*((*string)(yyv10)) = r.DecodeString()
}
}
case "DB":
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv12 := &x.DB
yym13 := z.DecBinary()
_ = yym13
if false {
} else {
*((*string)(yyv12)) = r.DecodeString()
}
}
case "diff":
if r.TryDecodeAsNil() {
x.Diff = false
} else {
yyv14 := &x.Diff
yym15 := z.DecBinary()
_ = yym15
if false {
} else {
*((*bool)(yyv14)) = r.DecodeBool()
}
}
case "expr":
if r.TryDecodeAsNil() {
x.Expr = nil
} else {
yyv16 := &x.Expr
yyv16.CodecDecodeSelf(d)
}
case "what":
if x.What == nil {
x.What = new(Table)
}
if r.TryDecodeAsNil() {
if x.What != nil {
x.What = nil
}
} else {
if x.What == nil {
x.What = new(Table)
}
x.What.CodecDecodeSelf(d)
}
case "cond":
if r.TryDecodeAsNil() {
x.Cond = nil
} else {
yyv18 := &x.Cond
yym19 := z.DecBinary()
_ = yym19
if false {
} else if yyxt19 := z.Extension(z.I2Rtid(yyv18)); yyxt19 != nil {
z.DecExtension(yyv18, yyxt19)
} else {
z.DecFallback(yyv18, true)
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *LiveStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj20 int
var yyb20 bool
var yyhl20 bool = l >= 0
yyj20++
if yyhl20 {
yyb20 = yyj20 > l
} else {
yyb20 = r.CheckBreak()
}
if yyb20 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.ID = ""
} else {
yyv21 := &x.ID
yym22 := z.DecBinary()
_ = yym22
if false {
} else {
*((*string)(yyv21)) = r.DecodeString()
}
}
yyj20++
if yyhl20 {
yyb20 = yyj20 > l
} else {
yyb20 = r.CheckBreak()
}
if yyb20 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.FB = ""
} else {
yyv23 := &x.FB
yym24 := z.DecBinary()
_ = yym24
if false {
} else {
*((*string)(yyv23)) = r.DecodeString()
}
}
yyj20++
if yyhl20 {
yyb20 = yyj20 > l
} else {
yyb20 = r.CheckBreak()
}
if yyb20 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv25 := &x.KV
yym26 := z.DecBinary()
_ = yym26
if false {
} else {
*((*string)(yyv25)) = r.DecodeString()
}
}
yyj20++
if yyhl20 {
yyb20 = yyj20 > l
} else {
yyb20 = r.CheckBreak()
}
if yyb20 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv27 := &x.NS
yym28 := z.DecBinary()
_ = yym28
if false {
} else {
*((*string)(yyv27)) = r.DecodeString()
}
}
yyj20++
if yyhl20 {
yyb20 = yyj20 > l
} else {
yyb20 = r.CheckBreak()
}
if yyb20 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv29 := &x.DB
yym30 := z.DecBinary()
_ = yym30
if false {
} else {
*((*string)(yyv29)) = r.DecodeString()
}
}
yyj20++
if yyhl20 {
yyb20 = yyj20 > l
} else {
yyb20 = r.CheckBreak()
}
if yyb20 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Diff = false
} else {
yyv31 := &x.Diff
yym32 := z.DecBinary()
_ = yym32
if false {
} else {
*((*bool)(yyv31)) = r.DecodeBool()
}
}
yyj20++
if yyhl20 {
yyb20 = yyj20 > l
} else {
yyb20 = r.CheckBreak()
}
if yyb20 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Expr = nil
} else {
yyv33 := &x.Expr
yyv33.CodecDecodeSelf(d)
}
if x.What == nil {
x.What = new(Table)
}
yyj20++
if yyhl20 {
yyb20 = yyj20 > l
} else {
yyb20 = r.CheckBreak()
}
if yyb20 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if x.What != nil {
x.What = nil
}
} else {
if x.What == nil {
x.What = new(Table)
}
x.What.CodecDecodeSelf(d)
}
yyj20++
if yyhl20 {
yyb20 = yyj20 > l
} else {
yyb20 = r.CheckBreak()
}
if yyb20 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Cond = nil
} else {
yyv35 := &x.Cond
yym36 := z.DecBinary()
_ = yym36
if false {
} else if yyxt36 := z.Extension(z.I2Rtid(yyv35)); yyxt36 != nil {
z.DecExtension(yyv35, yyxt36)
} else {
z.DecFallback(yyv35, true)
}
}
for {
yyj20++
if yyhl20 {
yyb20 = yyj20 > l
} else {
yyb20 = r.CheckBreak()
}
if yyb20 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj20-1, "")
}
r.ReadArrayEnd()
}
func (x *KillStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(5)
} else {
r.WriteMapStart(5)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.FB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `FB`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.FB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `KV`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `NS`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `DB`)
r.WriteMapElemValue()
yym14 := z.EncBinary()
_ = yym14
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
}
var yyn15 bool
if x.Name == nil {
yyn15 = true
goto LABEL15
}
LABEL15:
if yyr2 || yy2arr2 {
if yyn15 {
r.WriteArrayElem()
r.EncodeNil()
} else {
r.WriteArrayElem()
if x.Name == nil {
r.EncodeNil()
} else {
x.Name.CodecEncodeSelf(e)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `name`)
r.WriteMapElemValue()
if yyn15 {
r.EncodeNil()
} else {
if x.Name == nil {
r.EncodeNil()
} else {
x.Name.CodecEncodeSelf(e)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *KillStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *KillStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "FB":
if r.TryDecodeAsNil() {
x.FB = ""
} else {
yyv4 := &x.FB
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "KV":
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv6 := &x.KV
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "NS":
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv8 := &x.NS
yym9 := z.DecBinary()
_ = yym9
if false {
} else {
*((*string)(yyv8)) = r.DecodeString()
}
}
case "DB":
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv10 := &x.DB
yym11 := z.DecBinary()
_ = yym11
if false {
} else {
*((*string)(yyv10)) = r.DecodeString()
}
}
case "name":
if x.Name == nil {
x.Name = new(Value)
}
if r.TryDecodeAsNil() {
if x.Name != nil {
x.Name = nil
}
} else {
if x.Name == nil {
x.Name = new(Value)
}
x.Name.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 codecSelfer8654
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.FB = ""
} else {
yyv14 := &x.FB
yym15 := z.DecBinary()
_ = yym15
if false {
} else {
*((*string)(yyv14)) = r.DecodeString()
}
}
yyj13++
if yyhl13 {
yyb13 = yyj13 > l
} else {
yyb13 = r.CheckBreak()
}
if yyb13 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv16 := &x.KV
yym17 := z.DecBinary()
_ = yym17
if false {
} else {
*((*string)(yyv16)) = r.DecodeString()
}
}
yyj13++
if yyhl13 {
yyb13 = yyj13 > l
} else {
yyb13 = r.CheckBreak()
}
if yyb13 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv18 := &x.NS
yym19 := z.DecBinary()
_ = yym19
if false {
} else {
*((*string)(yyv18)) = r.DecodeString()
}
}
yyj13++
if yyhl13 {
yyb13 = yyj13 > l
} else {
yyb13 = r.CheckBreak()
}
if yyb13 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv20 := &x.DB
yym21 := z.DecBinary()
_ = yym21
if false {
} else {
*((*string)(yyv20)) = r.DecodeString()
}
}
if x.Name == nil {
x.Name = new(Value)
}
yyj13++
if yyhl13 {
yyb13 = yyj13 > l
} else {
yyb13 = r.CheckBreak()
}
if yyb13 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if x.Name != nil {
x.Name = nil
}
} else {
if x.Name == nil {
x.Name = new(Value)
}
x.Name.CodecDecodeSelf(d)
}
for {
yyj13++
if yyhl13 {
yyb13 = yyj13 > l
} else {
yyb13 = r.CheckBreak()
}
if yyb13 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj13-1, "")
}
r.ReadArrayEnd()
}
func (x *SelectStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(13)
} else {
r.WriteMapStart(13)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `KV`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `NS`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `DB`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Expr == nil {
r.EncodeNil()
} else {
x.Expr.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `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()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym19 := z.EncBinary()
_ = yym19
if false {
} else if yyxt19 := z.Extension(z.I2Rtid(x.Cond)); yyxt19 != nil {
z.EncExtension(x.Cond, yyxt19)
} else {
z.EncFallback(x.Cond)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `cond`)
r.WriteMapElemValue()
if x.Cond == nil {
r.EncodeNil()
} else {
yym20 := z.EncBinary()
_ = yym20
if false {
} else if yyxt20 := z.Extension(z.I2Rtid(x.Cond)); yyxt20 != nil {
z.EncExtension(x.Cond, yyxt20)
} else {
z.EncFallback(x.Cond)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Group == nil {
r.EncodeNil()
} else {
x.Group.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `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()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym28 := z.EncBinary()
_ = yym28
if false {
} else if yyxt28 := z.Extension(z.I2Rtid(x.Limit)); yyxt28 != nil {
z.EncExtension(x.Limit, yyxt28)
} else {
z.EncFallback(x.Limit)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `limit`)
r.WriteMapElemValue()
if x.Limit == nil {
r.EncodeNil()
} else {
yym29 := z.EncBinary()
_ = yym29
if false {
} else if yyxt29 := z.Extension(z.I2Rtid(x.Limit)); yyxt29 != nil {
z.EncExtension(x.Limit, yyxt29)
} else {
z.EncFallback(x.Limit)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Start == nil {
r.EncodeNil()
} else {
yym31 := z.EncBinary()
_ = yym31
if false {
} else if yyxt31 := z.Extension(z.I2Rtid(x.Start)); yyxt31 != nil {
z.EncExtension(x.Start, yyxt31)
} else {
z.EncFallback(x.Start)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `start`)
r.WriteMapElemValue()
if x.Start == nil {
r.EncodeNil()
} else {
yym32 := z.EncBinary()
_ = yym32
if false {
} else if yyxt32 := z.Extension(z.I2Rtid(x.Start)); yyxt32 != nil {
z.EncExtension(x.Start, yyxt32)
} else {
z.EncFallback(x.Start)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Version == nil {
r.EncodeNil()
} else {
yym34 := z.EncBinary()
_ = yym34
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()
r.EncodeString(codecSelferCcUTF88654, `version`)
r.WriteMapElemValue()
if x.Version == nil {
r.EncodeNil()
} else {
yym35 := z.EncBinary()
_ = yym35
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()
yym37 := z.EncBinary()
_ = yym37
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()
r.EncodeString(codecSelferCcUTF88654, `timeout`)
r.WriteMapElemValue()
yym38 := z.EncBinary()
_ = yym38
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.WriteArrayElem()
yym40 := z.EncBinary()
_ = yym40
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `parallel`)
r.WriteMapElemValue()
yym41 := z.EncBinary()
_ = yym41
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *SelectStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *SelectStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "KV":
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv4 := &x.KV
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "NS":
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv6 := &x.NS
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "DB":
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv8 := &x.DB
yym9 := z.DecBinary()
_ = yym9
if false {
} else {
*((*string)(yyv8)) = r.DecodeString()
}
}
case "expr":
if r.TryDecodeAsNil() {
x.Expr = nil
} else {
yyv10 := &x.Expr
yyv10.CodecDecodeSelf(d)
}
case "what":
if r.TryDecodeAsNil() {
x.What = nil
} else {
yyv11 := &x.What
yyv11.CodecDecodeSelf(d)
}
case "cond":
if r.TryDecodeAsNil() {
x.Cond = nil
} else {
yyv12 := &x.Cond
yym13 := z.DecBinary()
_ = yym13
if false {
} else if yyxt13 := z.Extension(z.I2Rtid(yyv12)); yyxt13 != nil {
z.DecExtension(yyv12, yyxt13)
} else {
z.DecFallback(yyv12, true)
}
}
case "group":
if r.TryDecodeAsNil() {
x.Group = nil
} else {
yyv14 := &x.Group
yyv14.CodecDecodeSelf(d)
}
case "order":
if r.TryDecodeAsNil() {
x.Order = nil
} else {
yyv15 := &x.Order
yyv15.CodecDecodeSelf(d)
}
case "limit":
if r.TryDecodeAsNil() {
x.Limit = nil
} else {
yyv16 := &x.Limit
yym17 := z.DecBinary()
_ = yym17
if false {
} else if yyxt17 := z.Extension(z.I2Rtid(yyv16)); yyxt17 != nil {
z.DecExtension(yyv16, yyxt17)
} else {
z.DecFallback(yyv16, true)
}
}
case "start":
if r.TryDecodeAsNil() {
x.Start = nil
} else {
yyv18 := &x.Start
yym19 := z.DecBinary()
_ = yym19
if false {
} else if yyxt19 := z.Extension(z.I2Rtid(yyv18)); yyxt19 != nil {
z.DecExtension(yyv18, yyxt19)
} else {
z.DecFallback(yyv18, true)
}
}
case "version":
if r.TryDecodeAsNil() {
x.Version = nil
} else {
yyv20 := &x.Version
yym21 := z.DecBinary()
_ = yym21
if false {
} else if yyxt21 := z.Extension(z.I2Rtid(yyv20)); yyxt21 != nil {
z.DecExtension(yyv20, yyxt21)
} else {
z.DecFallback(yyv20, true)
}
}
case "timeout":
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv22 := &x.Timeout
yym23 := z.DecBinary()
_ = yym23
if false {
} else if yyxt23 := z.Extension(z.I2Rtid(yyv22)); yyxt23 != nil {
z.DecExtension(yyv22, yyxt23)
} else {
*((*int64)(yyv22)) = int64(r.DecodeInt(64))
}
}
case "parallel":
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv24 := &x.Parallel
yym25 := z.DecBinary()
_ = yym25
if false {
} else {
*((*int)(yyv24)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *SelectStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj26 int
var yyb26 bool
var yyhl26 bool = l >= 0
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv27 := &x.KV
yym28 := z.DecBinary()
_ = yym28
if false {
} else {
*((*string)(yyv27)) = r.DecodeString()
}
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv29 := &x.NS
yym30 := z.DecBinary()
_ = yym30
if false {
} else {
*((*string)(yyv29)) = r.DecodeString()
}
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv31 := &x.DB
yym32 := z.DecBinary()
_ = yym32
if false {
} else {
*((*string)(yyv31)) = r.DecodeString()
}
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Expr = nil
} else {
yyv33 := &x.Expr
yyv33.CodecDecodeSelf(d)
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.What = nil
} else {
yyv34 := &x.What
yyv34.CodecDecodeSelf(d)
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Cond = nil
} else {
yyv35 := &x.Cond
yym36 := z.DecBinary()
_ = yym36
if false {
} else if yyxt36 := z.Extension(z.I2Rtid(yyv35)); yyxt36 != nil {
z.DecExtension(yyv35, yyxt36)
} else {
z.DecFallback(yyv35, true)
}
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Group = nil
} else {
yyv37 := &x.Group
yyv37.CodecDecodeSelf(d)
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Order = nil
} else {
yyv38 := &x.Order
yyv38.CodecDecodeSelf(d)
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Limit = nil
} else {
yyv39 := &x.Limit
yym40 := z.DecBinary()
_ = yym40
if false {
} else if yyxt40 := z.Extension(z.I2Rtid(yyv39)); yyxt40 != nil {
z.DecExtension(yyv39, yyxt40)
} else {
z.DecFallback(yyv39, true)
}
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Start = nil
} else {
yyv41 := &x.Start
yym42 := z.DecBinary()
_ = yym42
if false {
} else if yyxt42 := z.Extension(z.I2Rtid(yyv41)); yyxt42 != nil {
z.DecExtension(yyv41, yyxt42)
} else {
z.DecFallback(yyv41, true)
}
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Version = nil
} else {
yyv43 := &x.Version
yym44 := z.DecBinary()
_ = yym44
if false {
} else if yyxt44 := z.Extension(z.I2Rtid(yyv43)); yyxt44 != nil {
z.DecExtension(yyv43, yyxt44)
} else {
z.DecFallback(yyv43, true)
}
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv45 := &x.Timeout
yym46 := z.DecBinary()
_ = yym46
if false {
} else if yyxt46 := z.Extension(z.I2Rtid(yyv45)); yyxt46 != nil {
z.DecExtension(yyv45, yyxt46)
} else {
*((*int64)(yyv45)) = int64(r.DecodeInt(64))
}
}
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv47 := &x.Parallel
yym48 := z.DecBinary()
_ = yym48
if false {
} else {
*((*int)(yyv47)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
for {
yyj26++
if yyhl26 {
yyb26 = yyj26 > l
} else {
yyb26 = r.CheckBreak()
}
if yyb26 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj26-1, "")
}
r.ReadArrayEnd()
}
func (x *CreateStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(8)
} else {
r.WriteMapStart(8)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `KV`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `NS`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `DB`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.What == nil {
r.EncodeNil()
} else {
x.What.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym16 := z.EncBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(x.Data)); yyxt16 != nil {
z.EncExtension(x.Data, yyxt16)
} else {
z.EncFallback(x.Data)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `data`)
r.WriteMapElemValue()
if x.Data == nil {
r.EncodeNil()
} else {
yym17 := z.EncBinary()
_ = yym17
if false {
} else if yyxt17 := z.Extension(z.I2Rtid(x.Data)); yyxt17 != nil {
z.EncExtension(x.Data, yyxt17)
} else {
z.EncFallback(x.Data)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym19 := z.EncBinary()
_ = yym19
if false {
} else if yyxt19 := z.Extension(z.I2Rtid(x.Echo)); yyxt19 != nil {
z.EncExtension(x.Echo, yyxt19)
} else if yym19 {
z.EncBinaryMarshal(x.Echo)
} else if !yym19 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `echo`)
r.WriteMapElemValue()
yym20 := z.EncBinary()
_ = yym20
if false {
} else if yyxt20 := z.Extension(z.I2Rtid(x.Echo)); yyxt20 != nil {
z.EncExtension(x.Echo, yyxt20)
} else if yym20 {
z.EncBinaryMarshal(x.Echo)
} else if !yym20 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym22 := z.EncBinary()
_ = yym22
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()
r.EncodeString(codecSelferCcUTF88654, `timeout`)
r.WriteMapElemValue()
yym23 := z.EncBinary()
_ = yym23
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.WriteArrayElem()
yym25 := z.EncBinary()
_ = yym25
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `parallel`)
r.WriteMapElemValue()
yym26 := z.EncBinary()
_ = yym26
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *CreateStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *CreateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "KV":
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv4 := &x.KV
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "NS":
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv6 := &x.NS
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "DB":
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv8 := &x.DB
yym9 := z.DecBinary()
_ = yym9
if false {
} else {
*((*string)(yyv8)) = r.DecodeString()
}
}
case "what":
if r.TryDecodeAsNil() {
x.What = nil
} else {
yyv10 := &x.What
yyv10.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv11 := &x.Data
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, true)
}
}
case "echo":
if r.TryDecodeAsNil() {
x.Echo = 0
} else {
yyv13 := &x.Echo
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else if yym14 {
z.DecBinaryUnmarshal(yyv13)
} else {
*((*int16)(yyv13)) = int16(r.DecodeInt(16))
}
}
case "timeout":
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv15 := &x.Timeout
yym16 := z.DecBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(yyv15)); yyxt16 != nil {
z.DecExtension(yyv15, yyxt16)
} else {
*((*int64)(yyv15)) = int64(r.DecodeInt(64))
}
}
case "parallel":
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv17 := &x.Parallel
yym18 := z.DecBinary()
_ = yym18
if false {
} else {
*((*int)(yyv17)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *CreateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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() {
x.KV = ""
} else {
yyv20 := &x.KV
yym21 := z.DecBinary()
_ = yym21
if false {
} else {
*((*string)(yyv20)) = r.DecodeString()
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv22 := &x.NS
yym23 := z.DecBinary()
_ = yym23
if false {
} else {
*((*string)(yyv22)) = r.DecodeString()
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv24 := &x.DB
yym25 := z.DecBinary()
_ = yym25
if false {
} else {
*((*string)(yyv24)) = r.DecodeString()
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.What = nil
} else {
yyv26 := &x.What
yyv26.CodecDecodeSelf(d)
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv27 := &x.Data
yym28 := z.DecBinary()
_ = yym28
if false {
} else if yyxt28 := z.Extension(z.I2Rtid(yyv27)); yyxt28 != nil {
z.DecExtension(yyv27, yyxt28)
} else {
z.DecFallback(yyv27, true)
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Echo = 0
} else {
yyv29 := &x.Echo
yym30 := z.DecBinary()
_ = yym30
if false {
} else if yyxt30 := z.Extension(z.I2Rtid(yyv29)); yyxt30 != nil {
z.DecExtension(yyv29, yyxt30)
} else if yym30 {
z.DecBinaryUnmarshal(yyv29)
} else {
*((*int16)(yyv29)) = int16(r.DecodeInt(16))
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv31 := &x.Timeout
yym32 := z.DecBinary()
_ = yym32
if false {
} else if yyxt32 := z.Extension(z.I2Rtid(yyv31)); yyxt32 != nil {
z.DecExtension(yyv31, yyxt32)
} else {
*((*int64)(yyv31)) = int64(r.DecodeInt(64))
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv33 := &x.Parallel
yym34 := z.DecBinary()
_ = yym34
if false {
} else {
*((*int)(yyv33)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
for {
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj19-1, "")
}
r.ReadArrayEnd()
}
func (x *UpdateStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(9)
} else {
r.WriteMapStart(9)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `KV`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `NS`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `DB`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.What == nil {
r.EncodeNil()
} else {
x.What.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym16 := z.EncBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(x.Data)); yyxt16 != nil {
z.EncExtension(x.Data, yyxt16)
} else {
z.EncFallback(x.Data)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `data`)
r.WriteMapElemValue()
if x.Data == nil {
r.EncodeNil()
} else {
yym17 := z.EncBinary()
_ = yym17
if false {
} else if yyxt17 := z.Extension(z.I2Rtid(x.Data)); yyxt17 != nil {
z.EncExtension(x.Data, yyxt17)
} else {
z.EncFallback(x.Data)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Cond == nil {
r.EncodeNil()
} else {
yym19 := z.EncBinary()
_ = yym19
if false {
} else if yyxt19 := z.Extension(z.I2Rtid(x.Cond)); yyxt19 != nil {
z.EncExtension(x.Cond, yyxt19)
} else {
z.EncFallback(x.Cond)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `cond`)
r.WriteMapElemValue()
if x.Cond == nil {
r.EncodeNil()
} else {
yym20 := z.EncBinary()
_ = yym20
if false {
} else if yyxt20 := z.Extension(z.I2Rtid(x.Cond)); yyxt20 != nil {
z.EncExtension(x.Cond, yyxt20)
} else {
z.EncFallback(x.Cond)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym22 := z.EncBinary()
_ = yym22
if false {
} else if yyxt22 := z.Extension(z.I2Rtid(x.Echo)); yyxt22 != nil {
z.EncExtension(x.Echo, yyxt22)
} else if yym22 {
z.EncBinaryMarshal(x.Echo)
} else if !yym22 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `echo`)
r.WriteMapElemValue()
yym23 := z.EncBinary()
_ = yym23
if false {
} else if yyxt23 := z.Extension(z.I2Rtid(x.Echo)); yyxt23 != nil {
z.EncExtension(x.Echo, yyxt23)
} else if yym23 {
z.EncBinaryMarshal(x.Echo)
} else if !yym23 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym25 := z.EncBinary()
_ = yym25
if false {
} else if yyxt25 := z.Extension(z.I2Rtid(x.Timeout)); yyxt25 != nil {
z.EncExtension(x.Timeout, yyxt25)
} else {
r.EncodeInt(int64(x.Timeout))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `timeout`)
r.WriteMapElemValue()
yym26 := z.EncBinary()
_ = yym26
if false {
} else if yyxt26 := z.Extension(z.I2Rtid(x.Timeout)); yyxt26 != nil {
z.EncExtension(x.Timeout, yyxt26)
} else {
r.EncodeInt(int64(x.Timeout))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym28 := z.EncBinary()
_ = yym28
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `parallel`)
r.WriteMapElemValue()
yym29 := z.EncBinary()
_ = yym29
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *UpdateStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *UpdateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "KV":
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv4 := &x.KV
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "NS":
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv6 := &x.NS
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "DB":
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv8 := &x.DB
yym9 := z.DecBinary()
_ = yym9
if false {
} else {
*((*string)(yyv8)) = r.DecodeString()
}
}
case "what":
if r.TryDecodeAsNil() {
x.What = nil
} else {
yyv10 := &x.What
yyv10.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv11 := &x.Data
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, true)
}
}
case "cond":
if r.TryDecodeAsNil() {
x.Cond = nil
} else {
yyv13 := &x.Cond
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else {
z.DecFallback(yyv13, true)
}
}
case "echo":
if r.TryDecodeAsNil() {
x.Echo = 0
} else {
yyv15 := &x.Echo
yym16 := z.DecBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(yyv15)); yyxt16 != nil {
z.DecExtension(yyv15, yyxt16)
} else if yym16 {
z.DecBinaryUnmarshal(yyv15)
} else {
*((*int16)(yyv15)) = int16(r.DecodeInt(16))
}
}
case "timeout":
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv17 := &x.Timeout
yym18 := z.DecBinary()
_ = yym18
if false {
} else if yyxt18 := z.Extension(z.I2Rtid(yyv17)); yyxt18 != nil {
z.DecExtension(yyv17, yyxt18)
} else {
*((*int64)(yyv17)) = int64(r.DecodeInt(64))
}
}
case "parallel":
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv19 := &x.Parallel
yym20 := z.DecBinary()
_ = yym20
if false {
} else {
*((*int)(yyv19)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *UpdateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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.KV = ""
} else {
yyv22 := &x.KV
yym23 := z.DecBinary()
_ = yym23
if false {
} else {
*((*string)(yyv22)) = r.DecodeString()
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv24 := &x.NS
yym25 := z.DecBinary()
_ = yym25
if false {
} else {
*((*string)(yyv24)) = r.DecodeString()
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv26 := &x.DB
yym27 := z.DecBinary()
_ = yym27
if false {
} else {
*((*string)(yyv26)) = r.DecodeString()
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.What = nil
} else {
yyv28 := &x.What
yyv28.CodecDecodeSelf(d)
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv29 := &x.Data
yym30 := z.DecBinary()
_ = yym30
if false {
} else if yyxt30 := z.Extension(z.I2Rtid(yyv29)); yyxt30 != nil {
z.DecExtension(yyv29, yyxt30)
} else {
z.DecFallback(yyv29, true)
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Cond = nil
} else {
yyv31 := &x.Cond
yym32 := z.DecBinary()
_ = yym32
if false {
} else if yyxt32 := z.Extension(z.I2Rtid(yyv31)); yyxt32 != nil {
z.DecExtension(yyv31, yyxt32)
} else {
z.DecFallback(yyv31, true)
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Echo = 0
} else {
yyv33 := &x.Echo
yym34 := z.DecBinary()
_ = yym34
if false {
} else if yyxt34 := z.Extension(z.I2Rtid(yyv33)); yyxt34 != nil {
z.DecExtension(yyv33, yyxt34)
} else if yym34 {
z.DecBinaryUnmarshal(yyv33)
} else {
*((*int16)(yyv33)) = int16(r.DecodeInt(16))
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv35 := &x.Timeout
yym36 := z.DecBinary()
_ = yym36
if false {
} else if yyxt36 := z.Extension(z.I2Rtid(yyv35)); yyxt36 != nil {
z.DecExtension(yyv35, yyxt36)
} else {
*((*int64)(yyv35)) = int64(r.DecodeInt(64))
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv37 := &x.Parallel
yym38 := z.DecBinary()
_ = yym38
if false {
} else {
*((*int)(yyv37)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
for {
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj21-1, "")
}
r.ReadArrayEnd()
}
func (x *DeleteStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(9)
} else {
r.WriteMapStart(9)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `KV`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `NS`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `DB`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeBool(bool(x.Hard))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `hard`)
r.WriteMapElemValue()
yym14 := z.EncBinary()
_ = yym14
if false {
} else {
r.EncodeBool(bool(x.Hard))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.What == nil {
r.EncodeNil()
} else {
x.What.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym19 := z.EncBinary()
_ = yym19
if false {
} else if yyxt19 := z.Extension(z.I2Rtid(x.Cond)); yyxt19 != nil {
z.EncExtension(x.Cond, yyxt19)
} else {
z.EncFallback(x.Cond)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `cond`)
r.WriteMapElemValue()
if x.Cond == nil {
r.EncodeNil()
} else {
yym20 := z.EncBinary()
_ = yym20
if false {
} else if yyxt20 := z.Extension(z.I2Rtid(x.Cond)); yyxt20 != nil {
z.EncExtension(x.Cond, yyxt20)
} else {
z.EncFallback(x.Cond)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym22 := z.EncBinary()
_ = yym22
if false {
} else if yyxt22 := z.Extension(z.I2Rtid(x.Echo)); yyxt22 != nil {
z.EncExtension(x.Echo, yyxt22)
} else if yym22 {
z.EncBinaryMarshal(x.Echo)
} else if !yym22 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `echo`)
r.WriteMapElemValue()
yym23 := z.EncBinary()
_ = yym23
if false {
} else if yyxt23 := z.Extension(z.I2Rtid(x.Echo)); yyxt23 != nil {
z.EncExtension(x.Echo, yyxt23)
} else if yym23 {
z.EncBinaryMarshal(x.Echo)
} else if !yym23 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym25 := z.EncBinary()
_ = yym25
if false {
} else if yyxt25 := z.Extension(z.I2Rtid(x.Timeout)); yyxt25 != nil {
z.EncExtension(x.Timeout, yyxt25)
} else {
r.EncodeInt(int64(x.Timeout))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `timeout`)
r.WriteMapElemValue()
yym26 := z.EncBinary()
_ = yym26
if false {
} else if yyxt26 := z.Extension(z.I2Rtid(x.Timeout)); yyxt26 != nil {
z.EncExtension(x.Timeout, yyxt26)
} else {
r.EncodeInt(int64(x.Timeout))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym28 := z.EncBinary()
_ = yym28
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `parallel`)
r.WriteMapElemValue()
yym29 := z.EncBinary()
_ = yym29
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *DeleteStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DeleteStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "KV":
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv4 := &x.KV
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "NS":
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv6 := &x.NS
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "DB":
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv8 := &x.DB
yym9 := z.DecBinary()
_ = yym9
if false {
} else {
*((*string)(yyv8)) = r.DecodeString()
}
}
case "hard":
if r.TryDecodeAsNil() {
x.Hard = false
} else {
yyv10 := &x.Hard
yym11 := z.DecBinary()
_ = yym11
if false {
} else {
*((*bool)(yyv10)) = r.DecodeBool()
}
}
case "what":
if r.TryDecodeAsNil() {
x.What = nil
} else {
yyv12 := &x.What
yyv12.CodecDecodeSelf(d)
}
case "cond":
if r.TryDecodeAsNil() {
x.Cond = nil
} else {
yyv13 := &x.Cond
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else {
z.DecFallback(yyv13, true)
}
}
case "echo":
if r.TryDecodeAsNil() {
x.Echo = 0
} else {
yyv15 := &x.Echo
yym16 := z.DecBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(yyv15)); yyxt16 != nil {
z.DecExtension(yyv15, yyxt16)
} else if yym16 {
z.DecBinaryUnmarshal(yyv15)
} else {
*((*int16)(yyv15)) = int16(r.DecodeInt(16))
}
}
case "timeout":
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv17 := &x.Timeout
yym18 := z.DecBinary()
_ = yym18
if false {
} else if yyxt18 := z.Extension(z.I2Rtid(yyv17)); yyxt18 != nil {
z.DecExtension(yyv17, yyxt18)
} else {
*((*int64)(yyv17)) = int64(r.DecodeInt(64))
}
}
case "parallel":
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv19 := &x.Parallel
yym20 := z.DecBinary()
_ = yym20
if false {
} else {
*((*int)(yyv19)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *DeleteStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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.KV = ""
} else {
yyv22 := &x.KV
yym23 := z.DecBinary()
_ = yym23
if false {
} else {
*((*string)(yyv22)) = r.DecodeString()
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv24 := &x.NS
yym25 := z.DecBinary()
_ = yym25
if false {
} else {
*((*string)(yyv24)) = r.DecodeString()
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv26 := &x.DB
yym27 := z.DecBinary()
_ = yym27
if false {
} else {
*((*string)(yyv26)) = r.DecodeString()
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Hard = false
} else {
yyv28 := &x.Hard
yym29 := z.DecBinary()
_ = yym29
if false {
} else {
*((*bool)(yyv28)) = r.DecodeBool()
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.What = nil
} else {
yyv30 := &x.What
yyv30.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 {
yyv31 := &x.Cond
yym32 := z.DecBinary()
_ = yym32
if false {
} else if yyxt32 := z.Extension(z.I2Rtid(yyv31)); yyxt32 != nil {
z.DecExtension(yyv31, yyxt32)
} else {
z.DecFallback(yyv31, true)
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Echo = 0
} else {
yyv33 := &x.Echo
yym34 := z.DecBinary()
_ = yym34
if false {
} else if yyxt34 := z.Extension(z.I2Rtid(yyv33)); yyxt34 != nil {
z.DecExtension(yyv33, yyxt34)
} else if yym34 {
z.DecBinaryUnmarshal(yyv33)
} else {
*((*int16)(yyv33)) = int16(r.DecodeInt(16))
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv35 := &x.Timeout
yym36 := z.DecBinary()
_ = yym36
if false {
} else if yyxt36 := z.Extension(z.I2Rtid(yyv35)); yyxt36 != nil {
z.DecExtension(yyv35, yyxt36)
} else {
*((*int64)(yyv35)) = int64(r.DecodeInt(64))
}
}
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv37 := &x.Parallel
yym38 := z.DecBinary()
_ = yym38
if false {
} else {
*((*int)(yyv37)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
for {
yyj21++
if yyhl21 {
yyb21 = yyj21 > l
} else {
yyb21 = r.CheckBreak()
}
if yyb21 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj21-1, "")
}
r.ReadArrayEnd()
}
func (x *RelateStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(11)
} else {
r.WriteMapStart(11)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `KV`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `NS`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `DB`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Type == nil {
r.EncodeNil()
} else {
yym13 := z.EncBinary()
_ = yym13
if false {
} else if yyxt13 := z.Extension(z.I2Rtid(x.Type)); yyxt13 != nil {
z.EncExtension(x.Type, yyxt13)
} else {
z.EncFallback(x.Type)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `type`)
r.WriteMapElemValue()
if x.Type == nil {
r.EncodeNil()
} else {
yym14 := z.EncBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(x.Type)); yyxt14 != nil {
z.EncExtension(x.Type, yyxt14)
} else {
z.EncFallback(x.Type)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.From == nil {
r.EncodeNil()
} else {
x.From.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `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()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym22 := z.EncBinary()
_ = yym22
if false {
} else if yyxt22 := z.Extension(z.I2Rtid(x.Data)); yyxt22 != nil {
z.EncExtension(x.Data, yyxt22)
} else {
z.EncFallback(x.Data)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `data`)
r.WriteMapElemValue()
if x.Data == nil {
r.EncodeNil()
} else {
yym23 := z.EncBinary()
_ = yym23
if false {
} else if yyxt23 := z.Extension(z.I2Rtid(x.Data)); yyxt23 != nil {
z.EncExtension(x.Data, yyxt23)
} else {
z.EncFallback(x.Data)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym25 := z.EncBinary()
_ = yym25
if false {
} else {
r.EncodeBool(bool(x.Uniq))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `uniq`)
r.WriteMapElemValue()
yym26 := z.EncBinary()
_ = yym26
if false {
} else {
r.EncodeBool(bool(x.Uniq))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym28 := z.EncBinary()
_ = yym28
if false {
} else if yyxt28 := z.Extension(z.I2Rtid(x.Echo)); yyxt28 != nil {
z.EncExtension(x.Echo, yyxt28)
} else if yym28 {
z.EncBinaryMarshal(x.Echo)
} else if !yym28 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `echo`)
r.WriteMapElemValue()
yym29 := z.EncBinary()
_ = yym29
if false {
} else if yyxt29 := z.Extension(z.I2Rtid(x.Echo)); yyxt29 != nil {
z.EncExtension(x.Echo, yyxt29)
} else if yym29 {
z.EncBinaryMarshal(x.Echo)
} else if !yym29 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym31 := z.EncBinary()
_ = yym31
if false {
} else if yyxt31 := z.Extension(z.I2Rtid(x.Timeout)); yyxt31 != nil {
z.EncExtension(x.Timeout, yyxt31)
} else {
r.EncodeInt(int64(x.Timeout))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `timeout`)
r.WriteMapElemValue()
yym32 := z.EncBinary()
_ = yym32
if false {
} else if yyxt32 := z.Extension(z.I2Rtid(x.Timeout)); yyxt32 != nil {
z.EncExtension(x.Timeout, yyxt32)
} else {
r.EncodeInt(int64(x.Timeout))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym34 := z.EncBinary()
_ = yym34
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `parallel`)
r.WriteMapElemValue()
yym35 := z.EncBinary()
_ = yym35
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *RelateStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *RelateStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "KV":
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv4 := &x.KV
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "NS":
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv6 := &x.NS
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "DB":
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv8 := &x.DB
yym9 := z.DecBinary()
_ = yym9
if false {
} else {
*((*string)(yyv8)) = r.DecodeString()
}
}
case "type":
if r.TryDecodeAsNil() {
x.Type = nil
} else {
yyv10 := &x.Type
yym11 := z.DecBinary()
_ = yym11
if false {
} else if yyxt11 := z.Extension(z.I2Rtid(yyv10)); yyxt11 != nil {
z.DecExtension(yyv10, yyxt11)
} else {
z.DecFallback(yyv10, true)
}
}
case "from":
if r.TryDecodeAsNil() {
x.From = nil
} else {
yyv12 := &x.From
yyv12.CodecDecodeSelf(d)
}
case "with":
if r.TryDecodeAsNil() {
x.With = nil
} else {
yyv13 := &x.With
yyv13.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv14 := &x.Data
yym15 := z.DecBinary()
_ = yym15
if false {
} else if yyxt15 := z.Extension(z.I2Rtid(yyv14)); yyxt15 != nil {
z.DecExtension(yyv14, yyxt15)
} else {
z.DecFallback(yyv14, true)
}
}
case "uniq":
if r.TryDecodeAsNil() {
x.Uniq = false
} else {
yyv16 := &x.Uniq
yym17 := z.DecBinary()
_ = yym17
if false {
} else {
*((*bool)(yyv16)) = r.DecodeBool()
}
}
case "echo":
if r.TryDecodeAsNil() {
x.Echo = 0
} else {
yyv18 := &x.Echo
yym19 := z.DecBinary()
_ = yym19
if false {
} else if yyxt19 := z.Extension(z.I2Rtid(yyv18)); yyxt19 != nil {
z.DecExtension(yyv18, yyxt19)
} else if yym19 {
z.DecBinaryUnmarshal(yyv18)
} else {
*((*int16)(yyv18)) = int16(r.DecodeInt(16))
}
}
case "timeout":
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv20 := &x.Timeout
yym21 := z.DecBinary()
_ = yym21
if false {
} else if yyxt21 := z.Extension(z.I2Rtid(yyv20)); yyxt21 != nil {
z.DecExtension(yyv20, yyxt21)
} else {
*((*int64)(yyv20)) = int64(r.DecodeInt(64))
}
}
case "parallel":
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv22 := &x.Parallel
yym23 := z.DecBinary()
_ = yym23
if false {
} else {
*((*int)(yyv22)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *RelateStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj24 int
var yyb24 bool
var yyhl24 bool = l >= 0
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv25 := &x.KV
yym26 := z.DecBinary()
_ = yym26
if false {
} else {
*((*string)(yyv25)) = r.DecodeString()
}
}
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv27 := &x.NS
yym28 := z.DecBinary()
_ = yym28
if false {
} else {
*((*string)(yyv27)) = r.DecodeString()
}
}
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv29 := &x.DB
yym30 := z.DecBinary()
_ = yym30
if false {
} else {
*((*string)(yyv29)) = r.DecodeString()
}
}
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Type = nil
} else {
yyv31 := &x.Type
yym32 := z.DecBinary()
_ = yym32
if false {
} else if yyxt32 := z.Extension(z.I2Rtid(yyv31)); yyxt32 != nil {
z.DecExtension(yyv31, yyxt32)
} else {
z.DecFallback(yyv31, true)
}
}
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.From = nil
} else {
yyv33 := &x.From
yyv33.CodecDecodeSelf(d)
}
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.With = nil
} else {
yyv34 := &x.With
yyv34.CodecDecodeSelf(d)
}
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv35 := &x.Data
yym36 := z.DecBinary()
_ = yym36
if false {
} else if yyxt36 := z.Extension(z.I2Rtid(yyv35)); yyxt36 != nil {
z.DecExtension(yyv35, yyxt36)
} else {
z.DecFallback(yyv35, true)
}
}
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Uniq = false
} else {
yyv37 := &x.Uniq
yym38 := z.DecBinary()
_ = yym38
if false {
} else {
*((*bool)(yyv37)) = r.DecodeBool()
}
}
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Echo = 0
} else {
yyv39 := &x.Echo
yym40 := z.DecBinary()
_ = yym40
if false {
} else if yyxt40 := z.Extension(z.I2Rtid(yyv39)); yyxt40 != nil {
z.DecExtension(yyv39, yyxt40)
} else if yym40 {
z.DecBinaryUnmarshal(yyv39)
} else {
*((*int16)(yyv39)) = int16(r.DecodeInt(16))
}
}
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv41 := &x.Timeout
yym42 := z.DecBinary()
_ = yym42
if false {
} else if yyxt42 := z.Extension(z.I2Rtid(yyv41)); yyxt42 != nil {
z.DecExtension(yyv41, yyxt42)
} else {
*((*int64)(yyv41)) = int64(r.DecodeInt(64))
}
}
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv43 := &x.Parallel
yym44 := z.DecBinary()
_ = yym44
if false {
} else {
*((*int)(yyv43)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
for {
yyj24++
if yyhl24 {
yyb24 = yyj24 > l
} else {
yyb24 = r.CheckBreak()
}
if yyb24 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj24-1, "")
}
r.ReadArrayEnd()
}
func (x *InsertStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(8)
} else {
r.WriteMapStart(8)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `KV`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `NS`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `DB`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Data == nil {
r.EncodeNil()
} else {
yym13 := z.EncBinary()
_ = yym13
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()
r.EncodeString(codecSelferCcUTF88654, `data`)
r.WriteMapElemValue()
if x.Data == nil {
r.EncodeNil()
} else {
yym14 := z.EncBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(x.Data)); yyxt14 != nil {
z.EncExtension(x.Data, yyxt14)
} else {
z.EncFallback(x.Data)
}
}
}
var yyn15 bool
if x.Into == nil {
yyn15 = true
goto LABEL15
}
LABEL15:
if yyr2 || yy2arr2 {
if yyn15 {
r.WriteArrayElem()
r.EncodeNil()
} else {
r.WriteArrayElem()
if x.Into == nil {
r.EncodeNil()
} else {
x.Into.CodecEncodeSelf(e)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `into`)
r.WriteMapElemValue()
if yyn15 {
r.EncodeNil()
} else {
if x.Into == nil {
r.EncodeNil()
} else {
x.Into.CodecEncodeSelf(e)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym19 := z.EncBinary()
_ = yym19
if false {
} else if yyxt19 := z.Extension(z.I2Rtid(x.Echo)); yyxt19 != nil {
z.EncExtension(x.Echo, yyxt19)
} else if yym19 {
z.EncBinaryMarshal(x.Echo)
} else if !yym19 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `echo`)
r.WriteMapElemValue()
yym20 := z.EncBinary()
_ = yym20
if false {
} else if yyxt20 := z.Extension(z.I2Rtid(x.Echo)); yyxt20 != nil {
z.EncExtension(x.Echo, yyxt20)
} else if yym20 {
z.EncBinaryMarshal(x.Echo)
} else if !yym20 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym22 := z.EncBinary()
_ = yym22
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()
r.EncodeString(codecSelferCcUTF88654, `timeout`)
r.WriteMapElemValue()
yym23 := z.EncBinary()
_ = yym23
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.WriteArrayElem()
yym25 := z.EncBinary()
_ = yym25
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `parallel`)
r.WriteMapElemValue()
yym26 := z.EncBinary()
_ = yym26
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *InsertStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *InsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "KV":
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv4 := &x.KV
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "NS":
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv6 := &x.NS
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "DB":
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv8 := &x.DB
yym9 := z.DecBinary()
_ = yym9
if false {
} else {
*((*string)(yyv8)) = r.DecodeString()
}
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv10 := &x.Data
yym11 := z.DecBinary()
_ = yym11
if false {
} else if yyxt11 := z.Extension(z.I2Rtid(yyv10)); yyxt11 != nil {
z.DecExtension(yyv10, yyxt11)
} else {
z.DecFallback(yyv10, true)
}
}
case "into":
if x.Into == nil {
x.Into = new(Table)
}
if r.TryDecodeAsNil() {
if 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 {
yyv13 := &x.Echo
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else if yym14 {
z.DecBinaryUnmarshal(yyv13)
} else {
*((*int16)(yyv13)) = int16(r.DecodeInt(16))
}
}
case "timeout":
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv15 := &x.Timeout
yym16 := z.DecBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(yyv15)); yyxt16 != nil {
z.DecExtension(yyv15, yyxt16)
} else {
*((*int64)(yyv15)) = int64(r.DecodeInt(64))
}
}
case "parallel":
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv17 := &x.Parallel
yym18 := z.DecBinary()
_ = yym18
if false {
} else {
*((*int)(yyv17)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *InsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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() {
x.KV = ""
} else {
yyv20 := &x.KV
yym21 := z.DecBinary()
_ = yym21
if false {
} else {
*((*string)(yyv20)) = r.DecodeString()
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv22 := &x.NS
yym23 := z.DecBinary()
_ = yym23
if false {
} else {
*((*string)(yyv22)) = r.DecodeString()
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv24 := &x.DB
yym25 := z.DecBinary()
_ = yym25
if false {
} else {
*((*string)(yyv24)) = r.DecodeString()
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv26 := &x.Data
yym27 := z.DecBinary()
_ = yym27
if false {
} else if yyxt27 := z.Extension(z.I2Rtid(yyv26)); yyxt27 != nil {
z.DecExtension(yyv26, yyxt27)
} else {
z.DecFallback(yyv26, true)
}
}
if x.Into == nil {
x.Into = new(Table)
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if x.Into != nil {
x.Into = nil
}
} else {
if x.Into == nil {
x.Into = new(Table)
}
x.Into.CodecDecodeSelf(d)
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Echo = 0
} else {
yyv29 := &x.Echo
yym30 := z.DecBinary()
_ = yym30
if false {
} else if yyxt30 := z.Extension(z.I2Rtid(yyv29)); yyxt30 != nil {
z.DecExtension(yyv29, yyxt30)
} else if yym30 {
z.DecBinaryUnmarshal(yyv29)
} else {
*((*int16)(yyv29)) = int16(r.DecodeInt(16))
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv31 := &x.Timeout
yym32 := z.DecBinary()
_ = yym32
if false {
} else if yyxt32 := z.Extension(z.I2Rtid(yyv31)); yyxt32 != nil {
z.DecExtension(yyv31, yyxt32)
} else {
*((*int64)(yyv31)) = int64(r.DecodeInt(64))
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv33 := &x.Parallel
yym34 := z.DecBinary()
_ = yym34
if false {
} else {
*((*int)(yyv33)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
for {
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj19-1, "")
}
r.ReadArrayEnd()
}
func (x *UpsertStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(8)
} else {
r.WriteMapStart(8)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `KV`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.KV))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `NS`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.NS))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `DB`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.DB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Data == nil {
r.EncodeNil()
} else {
yym13 := z.EncBinary()
_ = yym13
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()
r.EncodeString(codecSelferCcUTF88654, `data`)
r.WriteMapElemValue()
if x.Data == nil {
r.EncodeNil()
} else {
yym14 := z.EncBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(x.Data)); yyxt14 != nil {
z.EncExtension(x.Data, yyxt14)
} else {
z.EncFallback(x.Data)
}
}
}
var yyn15 bool
if x.Into == nil {
yyn15 = true
goto LABEL15
}
LABEL15:
if yyr2 || yy2arr2 {
if yyn15 {
r.WriteArrayElem()
r.EncodeNil()
} else {
r.WriteArrayElem()
if x.Into == nil {
r.EncodeNil()
} else {
x.Into.CodecEncodeSelf(e)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `into`)
r.WriteMapElemValue()
if yyn15 {
r.EncodeNil()
} else {
if x.Into == nil {
r.EncodeNil()
} else {
x.Into.CodecEncodeSelf(e)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym19 := z.EncBinary()
_ = yym19
if false {
} else if yyxt19 := z.Extension(z.I2Rtid(x.Echo)); yyxt19 != nil {
z.EncExtension(x.Echo, yyxt19)
} else if yym19 {
z.EncBinaryMarshal(x.Echo)
} else if !yym19 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `echo`)
r.WriteMapElemValue()
yym20 := z.EncBinary()
_ = yym20
if false {
} else if yyxt20 := z.Extension(z.I2Rtid(x.Echo)); yyxt20 != nil {
z.EncExtension(x.Echo, yyxt20)
} else if yym20 {
z.EncBinaryMarshal(x.Echo)
} else if !yym20 {
z.EncTextMarshal(x.Echo)
} else {
r.EncodeInt(int64(x.Echo))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym22 := z.EncBinary()
_ = yym22
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()
r.EncodeString(codecSelferCcUTF88654, `timeout`)
r.WriteMapElemValue()
yym23 := z.EncBinary()
_ = yym23
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.WriteArrayElem()
yym25 := z.EncBinary()
_ = yym25
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `parallel`)
r.WriteMapElemValue()
yym26 := z.EncBinary()
_ = yym26
if false {
} else {
r.EncodeInt(int64(x.Parallel))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *UpsertStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *UpsertStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "KV":
if r.TryDecodeAsNil() {
x.KV = ""
} else {
yyv4 := &x.KV
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "NS":
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv6 := &x.NS
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "DB":
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv8 := &x.DB
yym9 := z.DecBinary()
_ = yym9
if false {
} else {
*((*string)(yyv8)) = r.DecodeString()
}
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv10 := &x.Data
yym11 := z.DecBinary()
_ = yym11
if false {
} else if yyxt11 := z.Extension(z.I2Rtid(yyv10)); yyxt11 != nil {
z.DecExtension(yyv10, yyxt11)
} else {
z.DecFallback(yyv10, true)
}
}
case "into":
if x.Into == nil {
x.Into = new(Table)
}
if r.TryDecodeAsNil() {
if 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 {
yyv13 := &x.Echo
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else if yym14 {
z.DecBinaryUnmarshal(yyv13)
} else {
*((*int16)(yyv13)) = int16(r.DecodeInt(16))
}
}
case "timeout":
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv15 := &x.Timeout
yym16 := z.DecBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(yyv15)); yyxt16 != nil {
z.DecExtension(yyv15, yyxt16)
} else {
*((*int64)(yyv15)) = int64(r.DecodeInt(64))
}
}
case "parallel":
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv17 := &x.Parallel
yym18 := z.DecBinary()
_ = yym18
if false {
} else {
*((*int)(yyv17)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *UpsertStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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() {
x.KV = ""
} else {
yyv20 := &x.KV
yym21 := z.DecBinary()
_ = yym21
if false {
} else {
*((*string)(yyv20)) = r.DecodeString()
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.NS = ""
} else {
yyv22 := &x.NS
yym23 := z.DecBinary()
_ = yym23
if false {
} else {
*((*string)(yyv22)) = r.DecodeString()
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.DB = ""
} else {
yyv24 := &x.DB
yym25 := z.DecBinary()
_ = yym25
if false {
} else {
*((*string)(yyv24)) = r.DecodeString()
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv26 := &x.Data
yym27 := z.DecBinary()
_ = yym27
if false {
} else if yyxt27 := z.Extension(z.I2Rtid(yyv26)); yyxt27 != nil {
z.DecExtension(yyv26, yyxt27)
} else {
z.DecFallback(yyv26, true)
}
}
if x.Into == nil {
x.Into = new(Table)
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if x.Into != nil {
x.Into = nil
}
} else {
if x.Into == nil {
x.Into = new(Table)
}
x.Into.CodecDecodeSelf(d)
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Echo = 0
} else {
yyv29 := &x.Echo
yym30 := z.DecBinary()
_ = yym30
if false {
} else if yyxt30 := z.Extension(z.I2Rtid(yyv29)); yyxt30 != nil {
z.DecExtension(yyv29, yyxt30)
} else if yym30 {
z.DecBinaryUnmarshal(yyv29)
} else {
*((*int16)(yyv29)) = int16(r.DecodeInt(16))
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Timeout = 0
} else {
yyv31 := &x.Timeout
yym32 := z.DecBinary()
_ = yym32
if false {
} else if yyxt32 := z.Extension(z.I2Rtid(yyv31)); yyxt32 != nil {
z.DecExtension(yyv31, yyxt32)
} else {
*((*int64)(yyv31)) = int64(r.DecodeInt(64))
}
}
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Parallel = 0
} else {
yyv33 := &x.Parallel
yym34 := z.DecBinary()
_ = yym34
if false {
} else {
*((*int)(yyv33)) = int(r.DecodeInt(codecSelferBitsize8654))
}
}
for {
yyj19++
if yyhl19 {
yyb19 = yyj19 > l
} else {
yyb19 = r.CheckBreak()
}
if yyb19 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj19-1, "")
}
r.ReadArrayEnd()
}
func (x *DefineNamespaceStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
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()
r.EncodeString(codecSelferCcUTF88654, `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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DefineNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj5 int
var yyb5 bool
var yyhl5 bool = l >= 0
if x.Name == nil {
x.Name = new(Ident)
}
yyj5++
if yyhl5 {
yyb5 = yyj5 > l
} else {
yyb5 = r.CheckBreak()
}
if yyb5 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
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()
r.EncodeString(codecSelferCcUTF88654, `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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *RemoveNamespaceStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj5 int
var yyb5 bool
var yyhl5 bool = l >= 0
if x.Name == nil {
x.Name = new(Ident)
}
yyj5++
if yyhl5 {
yyb5 = yyj5 > l
} else {
yyb5 = r.CheckBreak()
}
if yyb5 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
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()
r.EncodeString(codecSelferCcUTF88654, `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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DefineDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj5 int
var yyb5 bool
var yyhl5 bool = l >= 0
if x.Name == nil {
x.Name = new(Ident)
}
yyj5++
if yyhl5 {
yyb5 = yyj5 > l
} else {
yyb5 = r.CheckBreak()
}
if yyb5 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
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()
r.EncodeString(codecSelferCcUTF88654, `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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *RemoveDatabaseStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj5 int
var yyb5 bool
var yyhl5 bool = l >= 0
if x.Name == nil {
x.Name = new(Ident)
}
yyj5++
if yyhl5 {
yyb5 = yyj5 > l
} else {
yyb5 = r.CheckBreak()
}
if yyb5 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(4)
} else {
r.WriteMapStart(4)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil {
z.EncExtension(x.Kind, yyxt4)
} else if yym4 {
z.EncBinaryMarshal(x.Kind)
} else if !yym4 {
z.EncTextMarshal(x.Kind)
} else {
r.EncodeInt(int64(x.Kind))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `kind`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil {
z.EncExtension(x.Kind, yyxt5)
} else if yym5 {
z.EncBinaryMarshal(x.Kind)
} else if !yym5 {
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()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeStringBytes(codecSelferCcRAW8654, []byte(x.Pass))
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `pass`)
r.WriteMapElemValue()
if x.Pass == nil {
r.EncodeNil()
} else {
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeStringBytes(codecSelferCcRAW8654, []byte(x.Pass))
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Code == nil {
r.EncodeNil()
} else {
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeStringBytes(codecSelferCcRAW8654, []byte(x.Code))
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `code`)
r.WriteMapElemValue()
if x.Code == nil {
r.EncodeNil()
} else {
yym14 := z.EncBinary()
_ = yym14
if false {
} else {
r.EncodeStringBytes(codecSelferCcRAW8654, []byte(x.Code))
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *DefineLoginStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DefineLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = 0
} else {
yyv4 := &x.Kind
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else if yym5 {
z.DecBinaryUnmarshal(yyv4)
} else {
*((*int16)(yyv4)) = int16(r.DecodeInt(16))
}
}
case "user":
if x.User == nil {
x.User = new(Ident)
}
if r.TryDecodeAsNil() {
if 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 {
yyv7 := &x.Pass
yym8 := z.DecBinary()
_ = yym8
if false {
} else {
*yyv7 = r.DecodeBytes(*(*[]byte)(yyv7), false)
}
}
case "code":
if r.TryDecodeAsNil() {
x.Code = nil
} else {
yyv9 := &x.Code
yym10 := z.DecBinary()
_ = yym10
if false {
} else {
*yyv9 = r.DecodeBytes(*(*[]byte)(yyv9), 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 codecSelfer8654
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 {
yyv12 := &x.Kind
yym13 := z.DecBinary()
_ = yym13
if false {
} else if yyxt13 := z.Extension(z.I2Rtid(yyv12)); yyxt13 != nil {
z.DecExtension(yyv12, yyxt13)
} else if yym13 {
z.DecBinaryUnmarshal(yyv12)
} else {
*((*int16)(yyv12)) = int16(r.DecodeInt(16))
}
}
if x.User == nil {
x.User = new(Ident)
}
yyj11++
if yyhl11 {
yyb11 = yyj11 > l
} else {
yyb11 = r.CheckBreak()
}
if yyb11 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if x.User != nil {
x.User = nil
}
} else {
if x.User == nil {
x.User = new(Ident)
}
x.User.CodecDecodeSelf(d)
}
yyj11++
if yyhl11 {
yyb11 = yyj11 > l
} else {
yyb11 = r.CheckBreak()
}
if yyb11 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Pass = nil
} else {
yyv15 := &x.Pass
yym16 := z.DecBinary()
_ = yym16
if false {
} else {
*yyv15 = r.DecodeBytes(*(*[]byte)(yyv15), false)
}
}
yyj11++
if yyhl11 {
yyb11 = yyj11 > l
} else {
yyb11 = r.CheckBreak()
}
if yyb11 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Code = nil
} else {
yyv17 := &x.Code
yym18 := z.DecBinary()
_ = yym18
if false {
} else {
*yyv17 = r.DecodeBytes(*(*[]byte)(yyv17), 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 *RemoveLoginStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(2)
} else {
r.WriteMapStart(2)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil {
z.EncExtension(x.Kind, yyxt4)
} else if yym4 {
z.EncBinaryMarshal(x.Kind)
} else if !yym4 {
z.EncTextMarshal(x.Kind)
} else {
r.EncodeInt(int64(x.Kind))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `kind`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil {
z.EncExtension(x.Kind, yyxt5)
} else if yym5 {
z.EncBinaryMarshal(x.Kind)
} else if !yym5 {
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()
r.EncodeString(codecSelferCcUTF88654, `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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *RemoveLoginStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = 0
} else {
yyv4 := &x.Kind
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else if yym5 {
z.DecBinaryUnmarshal(yyv4)
} else {
*((*int16)(yyv4)) = int16(r.DecodeInt(16))
}
}
case "user":
if x.User == nil {
x.User = new(Ident)
}
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
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 {
yyv8 := &x.Kind
yym9 := z.DecBinary()
_ = yym9
if false {
} else if yyxt9 := z.Extension(z.I2Rtid(yyv8)); yyxt9 != nil {
z.DecExtension(yyv8, yyxt9)
} else if yym9 {
z.DecBinaryUnmarshal(yyv8)
} else {
*((*int16)(yyv8)) = int16(r.DecodeInt(16))
}
}
if x.User == nil {
x.User = new(Ident)
}
yyj7++
if yyhl7 {
yyb7 = yyj7 > l
} else {
yyb7 = r.CheckBreak()
}
if yyb7 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(4)
} else {
r.WriteMapStart(4)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil {
z.EncExtension(x.Kind, yyxt4)
} else if yym4 {
z.EncBinaryMarshal(x.Kind)
} else if !yym4 {
z.EncTextMarshal(x.Kind)
} else {
r.EncodeInt(int64(x.Kind))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `kind`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil {
z.EncExtension(x.Kind, yyxt5)
} else if yym5 {
z.EncBinaryMarshal(x.Kind)
} else if !yym5 {
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()
r.EncodeString(codecSelferCcUTF88654, `name`)
r.WriteMapElemValue()
if yyn6 {
r.EncodeNil()
} else {
if x.Name == nil {
r.EncodeNil()
} else {
x.Name.CodecEncodeSelf(e)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Type))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `type`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Type))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Code == nil {
r.EncodeNil()
} else {
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeStringBytes(codecSelferCcRAW8654, []byte(x.Code))
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `code`)
r.WriteMapElemValue()
if x.Code == nil {
r.EncodeNil()
} else {
yym14 := z.EncBinary()
_ = yym14
if false {
} else {
r.EncodeStringBytes(codecSelferCcRAW8654, []byte(x.Code))
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *DefineTokenStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DefineTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = 0
} else {
yyv4 := &x.Kind
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else if yym5 {
z.DecBinaryUnmarshal(yyv4)
} else {
*((*int16)(yyv4)) = int16(r.DecodeInt(16))
}
}
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if x.Name != nil {
x.Name = nil
}
} else {
if x.Name == nil {
x.Name = new(Ident)
}
x.Name.CodecDecodeSelf(d)
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
yyv7 := &x.Type
yym8 := z.DecBinary()
_ = yym8
if false {
} else {
*((*string)(yyv7)) = r.DecodeString()
}
}
case "code":
if r.TryDecodeAsNil() {
x.Code = nil
} else {
yyv9 := &x.Code
yym10 := z.DecBinary()
_ = yym10
if false {
} else {
*yyv9 = r.DecodeBytes(*(*[]byte)(yyv9), 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 codecSelfer8654
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 {
yyv12 := &x.Kind
yym13 := z.DecBinary()
_ = yym13
if false {
} else if yyxt13 := z.Extension(z.I2Rtid(yyv12)); yyxt13 != nil {
z.DecExtension(yyv12, yyxt13)
} else if yym13 {
z.DecBinaryUnmarshal(yyv12)
} else {
*((*int16)(yyv12)) = int16(r.DecodeInt(16))
}
}
if x.Name == nil {
x.Name = new(Ident)
}
yyj11++
if yyhl11 {
yyb11 = yyj11 > l
} else {
yyb11 = r.CheckBreak()
}
if yyb11 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if 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() {
x.Type = ""
} else {
yyv15 := &x.Type
yym16 := z.DecBinary()
_ = yym16
if false {
} else {
*((*string)(yyv15)) = 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 {
yyv17 := &x.Code
yym18 := z.DecBinary()
_ = yym18
if false {
} else {
*yyv17 = r.DecodeBytes(*(*[]byte)(yyv17), 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(2)
} else {
r.WriteMapStart(2)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else if yyxt4 := z.Extension(z.I2Rtid(x.Kind)); yyxt4 != nil {
z.EncExtension(x.Kind, yyxt4)
} else if yym4 {
z.EncBinaryMarshal(x.Kind)
} else if !yym4 {
z.EncTextMarshal(x.Kind)
} else {
r.EncodeInt(int64(x.Kind))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `kind`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(x.Kind)); yyxt5 != nil {
z.EncExtension(x.Kind, yyxt5)
} else if yym5 {
z.EncBinaryMarshal(x.Kind)
} else if !yym5 {
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()
r.EncodeString(codecSelferCcUTF88654, `name`)
r.WriteMapElemValue()
if yyn6 {
r.EncodeNil()
} else {
if x.Name == nil {
r.EncodeNil()
} else {
x.Name.CodecEncodeSelf(e)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *RemoveTokenStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *RemoveTokenStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = 0
} else {
yyv4 := &x.Kind
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else if yym5 {
z.DecBinaryUnmarshal(yyv4)
} else {
*((*int16)(yyv4)) = int16(r.DecodeInt(16))
}
}
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if 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 *RemoveTokenStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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 {
yyv8 := &x.Kind
yym9 := z.DecBinary()
_ = yym9
if false {
} else if yyxt9 := z.Extension(z.I2Rtid(yyv8)); yyxt9 != nil {
z.DecExtension(yyv8, yyxt9)
} else if yym9 {
z.DecBinaryUnmarshal(yyv8)
} else {
*((*int16)(yyv8)) = int16(r.DecodeInt(16))
}
}
if x.Name == nil {
x.Name = new(Ident)
}
yyj7++
if yyhl7 {
yyb7 = yyj7 > l
} else {
yyb7 = r.CheckBreak()
}
if yyb7 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if x.Name != nil {
x.Name = nil
}
} else {
if x.Name == nil {
x.Name = new(Ident)
}
x.Name.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 *DefineScopeStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(6)
} else {
r.WriteMapStart(6)
}
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()
r.EncodeString(codecSelferCcUTF88654, `name`)
r.WriteMapElemValue()
if yyn3 {
r.EncodeNil()
} else {
if x.Name == nil {
r.EncodeNil()
} else {
x.Name.CodecEncodeSelf(e)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
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()
r.EncodeString(codecSelferCcUTF88654, `time`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
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 {
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeStringBytes(codecSelferCcRAW8654, []byte(x.Code))
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `code`)
r.WriteMapElemValue()
if x.Code == nil {
r.EncodeNil()
} else {
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeStringBytes(codecSelferCcRAW8654, []byte(x.Code))
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Signup == nil {
r.EncodeNil()
} else {
yym13 := z.EncBinary()
_ = yym13
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()
r.EncodeString(codecSelferCcUTF88654, `signup`)
r.WriteMapElemValue()
if x.Signup == nil {
r.EncodeNil()
} else {
yym14 := z.EncBinary()
_ = yym14
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 {
yym16 := z.EncBinary()
_ = yym16
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()
r.EncodeString(codecSelferCcUTF88654, `signin`)
r.WriteMapElemValue()
if x.Signin == nil {
r.EncodeNil()
} else {
yym17 := z.EncBinary()
_ = yym17
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 {
yym19 := z.EncBinary()
_ = yym19
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()
r.EncodeString(codecSelferCcUTF88654, `connect`)
r.WriteMapElemValue()
if x.Connect == nil {
r.EncodeNil()
} else {
yym20 := z.EncBinary()
_ = yym20
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.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *DefineScopeStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DefineScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if 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 {
yyv5 := &x.Time
yym6 := z.DecBinary()
_ = yym6
if false {
} else if yyxt6 := z.Extension(z.I2Rtid(yyv5)); yyxt6 != nil {
z.DecExtension(yyv5, yyxt6)
} else {
*((*int64)(yyv5)) = int64(r.DecodeInt(64))
}
}
case "code":
if r.TryDecodeAsNil() {
x.Code = nil
} else {
yyv7 := &x.Code
yym8 := z.DecBinary()
_ = yym8
if false {
} else {
*yyv7 = r.DecodeBytes(*(*[]byte)(yyv7), false)
}
}
case "signup":
if r.TryDecodeAsNil() {
x.Signup = nil
} else {
yyv9 := &x.Signup
yym10 := z.DecBinary()
_ = yym10
if false {
} else if yyxt10 := z.Extension(z.I2Rtid(yyv9)); yyxt10 != nil {
z.DecExtension(yyv9, yyxt10)
} else {
z.DecFallback(yyv9, true)
}
}
case "signin":
if r.TryDecodeAsNil() {
x.Signin = nil
} else {
yyv11 := &x.Signin
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, true)
}
}
case "connect":
if r.TryDecodeAsNil() {
x.Connect = nil
} else {
yyv13 := &x.Connect
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else {
z.DecFallback(yyv13, 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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj15 int
var yyb15 bool
var yyhl15 bool = l >= 0
if x.Name == nil {
x.Name = new(Ident)
}
yyj15++
if yyhl15 {
yyb15 = yyj15 > l
} else {
yyb15 = r.CheckBreak()
}
if yyb15 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if 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.Time = 0
} else {
yyv17 := &x.Time
yym18 := z.DecBinary()
_ = yym18
if false {
} else if yyxt18 := z.Extension(z.I2Rtid(yyv17)); yyxt18 != nil {
z.DecExtension(yyv17, yyxt18)
} else {
*((*int64)(yyv17)) = int64(r.DecodeInt(64))
}
}
yyj15++
if yyhl15 {
yyb15 = yyj15 > l
} else {
yyb15 = r.CheckBreak()
}
if yyb15 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Code = nil
} else {
yyv19 := &x.Code
yym20 := z.DecBinary()
_ = yym20
if false {
} else {
*yyv19 = r.DecodeBytes(*(*[]byte)(yyv19), false)
}
}
yyj15++
if yyhl15 {
yyb15 = yyj15 > l
} else {
yyb15 = r.CheckBreak()
}
if yyb15 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Signup = nil
} else {
yyv21 := &x.Signup
yym22 := z.DecBinary()
_ = yym22
if false {
} else if yyxt22 := z.Extension(z.I2Rtid(yyv21)); yyxt22 != nil {
z.DecExtension(yyv21, yyxt22)
} else {
z.DecFallback(yyv21, true)
}
}
yyj15++
if yyhl15 {
yyb15 = yyj15 > l
} else {
yyb15 = r.CheckBreak()
}
if yyb15 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Signin = nil
} else {
yyv23 := &x.Signin
yym24 := z.DecBinary()
_ = yym24
if false {
} else if yyxt24 := z.Extension(z.I2Rtid(yyv23)); yyxt24 != nil {
z.DecExtension(yyv23, yyxt24)
} else {
z.DecFallback(yyv23, true)
}
}
yyj15++
if yyhl15 {
yyb15 = yyj15 > l
} else {
yyb15 = r.CheckBreak()
}
if yyb15 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Connect = nil
} else {
yyv25 := &x.Connect
yym26 := z.DecBinary()
_ = yym26
if false {
} else if yyxt26 := z.Extension(z.I2Rtid(yyv25)); yyxt26 != nil {
z.DecExtension(yyv25, yyxt26)
} else {
z.DecFallback(yyv25, true)
}
}
for {
yyj15++
if yyhl15 {
yyb15 = yyj15 > l
} else {
yyb15 = r.CheckBreak()
}
if yyb15 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj15-1, "")
}
r.ReadArrayEnd()
}
func (x *RemoveScopeStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
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()
r.EncodeString(codecSelferCcUTF88654, `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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *RemoveScopeStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj5 int
var yyb5 bool
var yyhl5 bool = l >= 0
if x.Name == nil {
x.Name = new(Ident)
}
yyj5++
if yyhl5 {
yyb5 = yyj5 > l
} else {
yyb5 = r.CheckBreak()
}
if yyb5 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(9)
} else {
r.WriteMapStart(9)
}
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()
r.EncodeString(codecSelferCcUTF88654, `name`)
r.WriteMapElemValue()
if yyn3 {
r.EncodeNil()
} else {
if x.Name == nil {
r.EncodeNil()
} else {
x.Name.CodecEncodeSelf(e)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeBool(bool(x.Full))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `full`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeBool(bool(x.Full))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeBool(bool(x.Drop))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `drop`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeBool(bool(x.Drop))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeBool(bool(x.Lock))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `lock`)
r.WriteMapElemValue()
yym14 := z.EncBinary()
_ = yym14
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()
r.EncodeString(codecSelferCcUTF88654, `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()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym22 := z.EncBinary()
_ = yym22
if false {
} else if yyxt22 := z.Extension(z.I2Rtid(x.Cond)); yyxt22 != nil {
z.EncExtension(x.Cond, yyxt22)
} else {
z.EncFallback(x.Cond)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `cond`)
r.WriteMapElemValue()
if x.Cond == nil {
r.EncodeNil()
} else {
yym23 := z.EncBinary()
_ = yym23
if false {
} else if yyxt23 := z.Extension(z.I2Rtid(x.Cond)); yyxt23 != nil {
z.EncExtension(x.Cond, yyxt23)
} else {
z.EncFallback(x.Cond)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Group == nil {
r.EncodeNil()
} else {
x.Group.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym28 := z.EncBinary()
_ = yym28
if false {
} else if yyxt28 := z.Extension(z.I2Rtid(x.Perms)); yyxt28 != nil {
z.EncExtension(x.Perms, yyxt28)
} else {
z.EncFallback(x.Perms)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `perms`)
r.WriteMapElemValue()
if x.Perms == nil {
r.EncodeNil()
} else {
yym29 := z.EncBinary()
_ = yym29
if false {
} else if yyxt29 := z.Extension(z.I2Rtid(x.Perms)); yyxt29 != nil {
z.EncExtension(x.Perms, yyxt29)
} else {
z.EncFallback(x.Perms)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *DefineTableStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DefineTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if x.Name != nil {
x.Name = nil
}
} else {
if x.Name == nil {
x.Name = new(Ident)
}
x.Name.CodecDecodeSelf(d)
}
case "full":
if r.TryDecodeAsNil() {
x.Full = false
} else {
yyv5 := &x.Full
yym6 := z.DecBinary()
_ = yym6
if false {
} else {
*((*bool)(yyv5)) = r.DecodeBool()
}
}
case "drop":
if r.TryDecodeAsNil() {
x.Drop = false
} else {
yyv7 := &x.Drop
yym8 := z.DecBinary()
_ = yym8
if false {
} else {
*((*bool)(yyv7)) = r.DecodeBool()
}
}
case "lock":
if r.TryDecodeAsNil() {
x.Lock = false
} else {
yyv9 := &x.Lock
yym10 := z.DecBinary()
_ = yym10
if false {
} else {
*((*bool)(yyv9)) = r.DecodeBool()
}
}
case "expr":
if r.TryDecodeAsNil() {
x.Expr = nil
} else {
yyv11 := &x.Expr
yyv11.CodecDecodeSelf(d)
}
case "from":
if r.TryDecodeAsNil() {
x.From = nil
} else {
yyv12 := &x.From
yyv12.CodecDecodeSelf(d)
}
case "cond":
if r.TryDecodeAsNil() {
x.Cond = nil
} else {
yyv13 := &x.Cond
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else {
z.DecFallback(yyv13, true)
}
}
case "group":
if r.TryDecodeAsNil() {
x.Group = nil
} else {
yyv15 := &x.Group
yyv15.CodecDecodeSelf(d)
}
case "perms":
if r.TryDecodeAsNil() {
x.Perms = nil
} else {
yyv16 := &x.Perms
yym17 := z.DecBinary()
_ = yym17
if false {
} else if yyxt17 := z.Extension(z.I2Rtid(yyv16)); yyxt17 != nil {
z.DecExtension(yyv16, yyxt17)
} else {
z.DecFallback(yyv16, 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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj18 int
var yyb18 bool
var yyhl18 bool = l >= 0
if x.Name == nil {
x.Name = new(Ident)
}
yyj18++
if yyhl18 {
yyb18 = yyj18 > l
} else {
yyb18 = r.CheckBreak()
}
if yyb18 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if x.Name != nil {
x.Name = nil
}
} else {
if x.Name == nil {
x.Name = new(Ident)
}
x.Name.CodecDecodeSelf(d)
}
yyj18++
if yyhl18 {
yyb18 = yyj18 > l
} else {
yyb18 = r.CheckBreak()
}
if yyb18 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Full = false
} else {
yyv20 := &x.Full
yym21 := z.DecBinary()
_ = yym21
if false {
} else {
*((*bool)(yyv20)) = r.DecodeBool()
}
}
yyj18++
if yyhl18 {
yyb18 = yyj18 > l
} else {
yyb18 = r.CheckBreak()
}
if yyb18 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Drop = false
} else {
yyv22 := &x.Drop
yym23 := z.DecBinary()
_ = yym23
if false {
} else {
*((*bool)(yyv22)) = r.DecodeBool()
}
}
yyj18++
if yyhl18 {
yyb18 = yyj18 > l
} else {
yyb18 = r.CheckBreak()
}
if yyb18 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Lock = false
} else {
yyv24 := &x.Lock
yym25 := z.DecBinary()
_ = yym25
if false {
} else {
*((*bool)(yyv24)) = r.DecodeBool()
}
}
yyj18++
if yyhl18 {
yyb18 = yyj18 > l
} else {
yyb18 = r.CheckBreak()
}
if yyb18 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Expr = nil
} else {
yyv26 := &x.Expr
yyv26.CodecDecodeSelf(d)
}
yyj18++
if yyhl18 {
yyb18 = yyj18 > l
} else {
yyb18 = r.CheckBreak()
}
if yyb18 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.From = nil
} else {
yyv27 := &x.From
yyv27.CodecDecodeSelf(d)
}
yyj18++
if yyhl18 {
yyb18 = yyj18 > l
} else {
yyb18 = r.CheckBreak()
}
if yyb18 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Cond = nil
} else {
yyv28 := &x.Cond
yym29 := z.DecBinary()
_ = yym29
if false {
} else if yyxt29 := z.Extension(z.I2Rtid(yyv28)); yyxt29 != nil {
z.DecExtension(yyv28, yyxt29)
} else {
z.DecFallback(yyv28, true)
}
}
yyj18++
if yyhl18 {
yyb18 = yyj18 > l
} else {
yyb18 = r.CheckBreak()
}
if yyb18 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Group = nil
} else {
yyv30 := &x.Group
yyv30.CodecDecodeSelf(d)
}
yyj18++
if yyhl18 {
yyb18 = yyj18 > l
} else {
yyb18 = r.CheckBreak()
}
if yyb18 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Perms = nil
} else {
yyv31 := &x.Perms
yym32 := z.DecBinary()
_ = yym32
if false {
} else if yyxt32 := z.Extension(z.I2Rtid(yyv31)); yyxt32 != nil {
z.DecExtension(yyv31, yyxt32)
} else {
z.DecFallback(yyv31, true)
}
}
for {
yyj18++
if yyhl18 {
yyb18 = yyj18 > l
} else {
yyb18 = r.CheckBreak()
}
if yyb18 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj18-1, "")
}
r.ReadArrayEnd()
}
func (x *RemoveTableStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(0)
} else {
r.WriteMapStart(0)
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *RemoveTableStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *RemoveTableStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *RemoveTableStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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 *DefineEventStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(3)
} else {
r.WriteMapStart(3)
}
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()
r.EncodeString(codecSelferCcUTF88654, `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.When == nil {
r.EncodeNil()
} else {
yym7 := z.EncBinary()
_ = yym7
if false {
} else if yyxt7 := z.Extension(z.I2Rtid(x.When)); yyxt7 != nil {
z.EncExtension(x.When, yyxt7)
} else {
z.EncFallback(x.When)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `when`)
r.WriteMapElemValue()
if x.When == nil {
r.EncodeNil()
} else {
yym8 := z.EncBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(x.When)); yyxt8 != nil {
z.EncExtension(x.When, yyxt8)
} else {
z.EncFallback(x.When)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Then == nil {
r.EncodeNil()
} else {
yym10 := z.EncBinary()
_ = yym10
if false {
} else if yyxt10 := z.Extension(z.I2Rtid(x.Then)); yyxt10 != nil {
z.EncExtension(x.Then, yyxt10)
} else {
z.EncFallback(x.Then)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `then`)
r.WriteMapElemValue()
if x.Then == nil {
r.EncodeNil()
} else {
yym11 := z.EncBinary()
_ = yym11
if false {
} else if yyxt11 := z.Extension(z.I2Rtid(x.Then)); yyxt11 != nil {
z.EncExtension(x.Then, yyxt11)
} else {
z.EncFallback(x.Then)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *DefineEventStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DefineEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if x.Name != nil {
x.Name = nil
}
} else {
if x.Name == nil {
x.Name = new(Ident)
}
x.Name.CodecDecodeSelf(d)
}
case "when":
if r.TryDecodeAsNil() {
x.When = nil
} else {
yyv5 := &x.When
yym6 := z.DecBinary()
_ = yym6
if false {
} else if yyxt6 := z.Extension(z.I2Rtid(yyv5)); yyxt6 != nil {
z.DecExtension(yyv5, yyxt6)
} else {
z.DecFallback(yyv5, true)
}
}
case "then":
if r.TryDecodeAsNil() {
x.Then = nil
} else {
yyv7 := &x.Then
yym8 := z.DecBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(yyv7)); yyxt8 != nil {
z.DecExtension(yyv7, yyxt8)
} else {
z.DecFallback(yyv7, 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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj9 int
var yyb9 bool
var yyhl9 bool = l >= 0
if x.Name == nil {
x.Name = new(Ident)
}
yyj9++
if yyhl9 {
yyb9 = yyj9 > l
} else {
yyb9 = r.CheckBreak()
}
if yyb9 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if x.Name != nil {
x.Name = nil
}
} else {
if x.Name == nil {
x.Name = new(Ident)
}
x.Name.CodecDecodeSelf(d)
}
yyj9++
if yyhl9 {
yyb9 = yyj9 > l
} else {
yyb9 = r.CheckBreak()
}
if yyb9 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.When = nil
} else {
yyv11 := &x.When
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, true)
}
}
yyj9++
if yyhl9 {
yyb9 = yyj9 > l
} else {
yyb9 = r.CheckBreak()
}
if yyb9 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Then = nil
} else {
yyv13 := &x.Then
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else {
z.DecFallback(yyv13, 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 *RemoveEventStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(0)
} else {
r.WriteMapStart(0)
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *RemoveEventStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *RemoveEventStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *RemoveEventStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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 *DefineFieldStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(6)
} else {
r.WriteMapStart(6)
}
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()
r.EncodeString(codecSelferCcUTF88654, `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.Perms == nil {
r.EncodeNil()
} else {
yym7 := z.EncBinary()
_ = yym7
if false {
} else if yyxt7 := z.Extension(z.I2Rtid(x.Perms)); yyxt7 != nil {
z.EncExtension(x.Perms, yyxt7)
} else {
z.EncFallback(x.Perms)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `perms`)
r.WriteMapElemValue()
if x.Perms == nil {
r.EncodeNil()
} else {
yym8 := z.EncBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(x.Perms)); yyxt8 != nil {
z.EncExtension(x.Perms, yyxt8)
} else {
z.EncFallback(x.Perms)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Type))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `type`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Type))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Kind))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `kind`)
r.WriteMapElemValue()
yym14 := z.EncBinary()
_ = yym14
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Kind))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Value == nil {
r.EncodeNil()
} else {
yym16 := z.EncBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(x.Value)); yyxt16 != nil {
z.EncExtension(x.Value, yyxt16)
} else {
z.EncFallback(x.Value)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `value`)
r.WriteMapElemValue()
if x.Value == nil {
r.EncodeNil()
} else {
yym17 := z.EncBinary()
_ = yym17
if false {
} else if yyxt17 := z.Extension(z.I2Rtid(x.Value)); yyxt17 != nil {
z.EncExtension(x.Value, yyxt17)
} else {
z.EncFallback(x.Value)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Assert == nil {
r.EncodeNil()
} else {
yym19 := z.EncBinary()
_ = yym19
if false {
} else if yyxt19 := z.Extension(z.I2Rtid(x.Assert)); yyxt19 != nil {
z.EncExtension(x.Assert, yyxt19)
} else {
z.EncFallback(x.Assert)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `assert`)
r.WriteMapElemValue()
if x.Assert == nil {
r.EncodeNil()
} else {
yym20 := z.EncBinary()
_ = yym20
if false {
} else if yyxt20 := z.Extension(z.I2Rtid(x.Assert)); yyxt20 != nil {
z.EncExtension(x.Assert, yyxt20)
} else {
z.EncFallback(x.Assert)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *DefineFieldStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DefineFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if x.Name != nil {
x.Name = nil
}
} else {
if x.Name == nil {
x.Name = new(Ident)
}
x.Name.CodecDecodeSelf(d)
}
case "perms":
if r.TryDecodeAsNil() {
x.Perms = nil
} else {
yyv5 := &x.Perms
yym6 := z.DecBinary()
_ = yym6
if false {
} else if yyxt6 := z.Extension(z.I2Rtid(yyv5)); yyxt6 != nil {
z.DecExtension(yyv5, yyxt6)
} else {
z.DecFallback(yyv5, true)
}
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
yyv7 := &x.Type
yym8 := z.DecBinary()
_ = yym8
if false {
} else {
*((*string)(yyv7)) = r.DecodeString()
}
}
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
yyv9 := &x.Kind
yym10 := z.DecBinary()
_ = yym10
if false {
} else {
*((*string)(yyv9)) = r.DecodeString()
}
}
case "value":
if r.TryDecodeAsNil() {
x.Value = nil
} else {
yyv11 := &x.Value
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, true)
}
}
case "assert":
if r.TryDecodeAsNil() {
x.Assert = nil
} else {
yyv13 := &x.Assert
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else {
z.DecFallback(yyv13, true)
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *DefineFieldStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj15 int
var yyb15 bool
var yyhl15 bool = l >= 0
if x.Name == nil {
x.Name = new(Ident)
}
yyj15++
if yyhl15 {
yyb15 = yyj15 > l
} else {
yyb15 = r.CheckBreak()
}
if yyb15 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if 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.Perms = nil
} else {
yyv17 := &x.Perms
yym18 := z.DecBinary()
_ = yym18
if false {
} else if yyxt18 := z.Extension(z.I2Rtid(yyv17)); yyxt18 != nil {
z.DecExtension(yyv17, yyxt18)
} else {
z.DecFallback(yyv17, true)
}
}
yyj15++
if yyhl15 {
yyb15 = yyj15 > l
} else {
yyb15 = r.CheckBreak()
}
if yyb15 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Type = ""
} else {
yyv19 := &x.Type
yym20 := z.DecBinary()
_ = yym20
if false {
} else {
*((*string)(yyv19)) = 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 {
yyv21 := &x.Kind
yym22 := z.DecBinary()
_ = yym22
if false {
} else {
*((*string)(yyv21)) = 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 {
yyv23 := &x.Value
yym24 := z.DecBinary()
_ = yym24
if false {
} else if yyxt24 := z.Extension(z.I2Rtid(yyv23)); yyxt24 != nil {
z.DecExtension(yyv23, yyxt24)
} else {
z.DecFallback(yyv23, 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 {
yyv25 := &x.Assert
yym26 := z.DecBinary()
_ = yym26
if false {
} else if yyxt26 := z.Extension(z.I2Rtid(yyv25)); yyxt26 != nil {
z.DecExtension(yyv25, yyxt26)
} else {
z.DecFallback(yyv25, true)
}
}
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(0)
} else {
r.WriteMapStart(0)
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *RemoveFieldStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *RemoveFieldStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *RemoveFieldStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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 *DefineIndexStatement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(3)
} else {
r.WriteMapStart(3)
}
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()
r.EncodeString(codecSelferCcUTF88654, `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.Cols == nil {
r.EncodeNil()
} else {
x.Cols.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `cols`)
r.WriteMapElemValue()
if x.Cols == nil {
r.EncodeNil()
} else {
x.Cols.CodecEncodeSelf(e)
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeBool(bool(x.Uniq))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `uniq`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DefineIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if x.Name != nil {
x.Name = nil
}
} else {
if x.Name == nil {
x.Name = new(Ident)
}
x.Name.CodecDecodeSelf(d)
}
case "cols":
if r.TryDecodeAsNil() {
x.Cols = nil
} else {
yyv5 := &x.Cols
yyv5.CodecDecodeSelf(d)
}
case "uniq":
if r.TryDecodeAsNil() {
x.Uniq = false
} else {
yyv6 := &x.Uniq
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*bool)(yyv6)) = 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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj8 int
var yyb8 bool
var yyhl8 bool = l >= 0
if x.Name == nil {
x.Name = new(Ident)
}
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
} else {
yyb8 = r.CheckBreak()
}
if yyb8 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if 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.Cols = nil
} else {
yyv10 := &x.Cols
yyv10.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 {
yyv11 := &x.Uniq
yym12 := z.DecBinary()
_ = yym12
if false {
} else {
*((*bool)(yyv11)) = 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(0)
} else {
r.WriteMapStart(0)
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *RemoveIndexStatement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *RemoveIndexStatement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *RemoveIndexStatement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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 Exprs) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 {
z.EncTextMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *All) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
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 codecSelfer8654
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 {
z.EncTextMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Any) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
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 codecSelfer8654
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 {
z.EncTextMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Void) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
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 codecSelfer8654
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 {
z.EncTextMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Empty) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
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 codecSelfer8654
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(3)
} else {
r.WriteMapStart(3)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Expr == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
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()
r.EncodeString(codecSelferCcUTF88654, `Expr`)
r.WriteMapElemValue()
if x.Expr == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Field))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Field`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Field))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Alias))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Alias`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Alias))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *Field) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Field) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Expr":
if r.TryDecodeAsNil() {
x.Expr = nil
} else {
yyv4 := &x.Expr
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else {
z.DecFallback(yyv4, true)
}
}
case "Field":
if r.TryDecodeAsNil() {
x.Field = ""
} else {
yyv6 := &x.Field
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*string)(yyv6)) = r.DecodeString()
}
}
case "Alias":
if r.TryDecodeAsNil() {
x.Alias = ""
} else {
yyv8 := &x.Alias
yym9 := z.DecBinary()
_ = yym9
if false {
} else {
*((*string)(yyv8)) = 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 codecSelfer8654
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.Expr = nil
} else {
yyv11 := &x.Expr
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, true)
}
}
yyj10++
if yyhl10 {
yyb10 = yyj10 > l
} else {
yyb10 = r.CheckBreak()
}
if yyb10 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Field = ""
} else {
yyv13 := &x.Field
yym14 := z.DecBinary()
_ = yym14
if false {
} else {
*((*string)(yyv13)) = r.DecodeString()
}
}
yyj10++
if yyhl10 {
yyb10 = yyj10 > l
} else {
yyb10 = r.CheckBreak()
}
if yyb10 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Alias = ""
} else {
yyv15 := &x.Alias
yym16 := z.DecBinary()
_ = yym16
if false {
} else {
*((*string)(yyv15)) = r.DecodeString()
}
}
for {
yyj10++
if yyhl10 {
yyb10 = yyj10 > l
} else {
yyb10 = r.CheckBreak()
}
if yyb10 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj10-1, "")
}
r.ReadArrayEnd()
}
func (x Fields) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Expr == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
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()
r.EncodeString(codecSelferCcUTF88654, `Expr`)
r.WriteMapElemValue()
if x.Expr == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Group) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Expr":
if r.TryDecodeAsNil() {
x.Expr = nil
} else {
yyv4 := &x.Expr
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else {
z.DecFallback(yyv4, 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 codecSelfer8654
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 {
yyv7 := &x.Expr
yym8 := z.DecBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(yyv7)); yyxt8 != nil {
z.DecExtension(yyv7, yyxt8)
} else {
z.DecFallback(yyv7, 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(3)
} else {
r.WriteMapStart(3)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Expr == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
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()
r.EncodeString(codecSelferCcUTF88654, `Expr`)
r.WriteMapElemValue()
if x.Expr == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeBool(bool(x.Dir))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Dir`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeBool(bool(x.Dir))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yy10 := &x.Tag
yym11 := z.EncBinary()
_ = yym11
if false {
} else if yyxt11 := z.Extension(z.I2Rtid(yy10)); yyxt11 != nil {
z.EncExtension(yy10, yyxt11)
} else {
z.EncFallback(yy10)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Tag`)
r.WriteMapElemValue()
yy12 := &x.Tag
yym13 := z.EncBinary()
_ = yym13
if false {
} else if yyxt13 := z.Extension(z.I2Rtid(yy12)); yyxt13 != nil {
z.EncExtension(yy12, yyxt13)
} else {
z.EncFallback(yy12)
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *Order) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Order) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Expr":
if r.TryDecodeAsNil() {
x.Expr = nil
} else {
yyv4 := &x.Expr
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else {
z.DecFallback(yyv4, true)
}
}
case "Dir":
if r.TryDecodeAsNil() {
x.Dir = false
} else {
yyv6 := &x.Dir
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*bool)(yyv6)) = r.DecodeBool()
}
}
case "Tag":
if r.TryDecodeAsNil() {
x.Tag = pkg1_language.Tag{}
} else {
yyv8 := &x.Tag
yym9 := z.DecBinary()
_ = yym9
if false {
} else if yyxt9 := z.Extension(z.I2Rtid(yyv8)); yyxt9 != nil {
z.DecExtension(yyv8, yyxt9)
} else {
z.DecFallback(yyv8, 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 codecSelfer8654
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.Expr = nil
} else {
yyv11 := &x.Expr
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, true)
}
}
yyj10++
if yyhl10 {
yyb10 = yyj10 > l
} else {
yyb10 = r.CheckBreak()
}
if yyb10 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Dir = false
} else {
yyv13 := &x.Dir
yym14 := z.DecBinary()
_ = yym14
if false {
} else {
*((*bool)(yyv13)) = r.DecodeBool()
}
}
yyj10++
if yyhl10 {
yyb10 = yyj10 > l
} else {
yyb10 = r.CheckBreak()
}
if yyb10 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Tag = pkg1_language.Tag{}
} else {
yyv15 := &x.Tag
yym16 := z.DecBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(yyv15)); yyxt16 != nil {
z.DecExtension(yyv15, yyxt16)
} else {
z.DecFallback(yyv15, false)
}
}
for {
yyj10++
if yyhl10 {
yyb10 = yyj10 > l
} else {
yyb10 = r.CheckBreak()
}
if yyb10 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj10-1, "")
}
r.ReadArrayEnd()
}
func (x Orders) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
h.decOrders((*Orders)(x), d)
}
}
func (x *SubExpression) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Expr == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
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()
r.EncodeString(codecSelferCcUTF88654, `Expr`)
r.WriteMapElemValue()
if x.Expr == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *SubExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Expr":
if r.TryDecodeAsNil() {
x.Expr = nil
} else {
yyv4 := &x.Expr
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else {
z.DecFallback(yyv4, 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 codecSelfer8654
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 {
yyv7 := &x.Expr
yym8 := z.DecBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(yyv7)); yyxt8 != nil {
z.DecExtension(yyv7, yyxt8)
} else {
z.DecFallback(yyv7, 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 *IfelExpression) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(3)
} else {
r.WriteMapStart(3)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Cond == nil {
r.EncodeNil()
} else {
x.Cond.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `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()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym10 := z.EncBinary()
_ = yym10
if false {
} else if yyxt10 := z.Extension(z.I2Rtid(x.Else)); yyxt10 != nil {
z.EncExtension(x.Else, yyxt10)
} else {
z.EncFallback(x.Else)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Else`)
r.WriteMapElemValue()
if x.Else == nil {
r.EncodeNil()
} else {
yym11 := z.EncBinary()
_ = yym11
if false {
} else if yyxt11 := z.Extension(z.I2Rtid(x.Else)); yyxt11 != nil {
z.EncExtension(x.Else, yyxt11)
} else {
z.EncFallback(x.Else)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *IfelExpression) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *IfelExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Cond":
if r.TryDecodeAsNil() {
x.Cond = nil
} else {
yyv4 := &x.Cond
yyv4.CodecDecodeSelf(d)
}
case "Then":
if r.TryDecodeAsNil() {
x.Then = nil
} else {
yyv5 := &x.Then
yyv5.CodecDecodeSelf(d)
}
case "Else":
if r.TryDecodeAsNil() {
x.Else = nil
} else {
yyv6 := &x.Else
yym7 := z.DecBinary()
_ = yym7
if false {
} else if yyxt7 := z.Extension(z.I2Rtid(yyv6)); yyxt7 != nil {
z.DecExtension(yyv6, yyxt7)
} else {
z.DecFallback(yyv6, true)
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *IfelExpression) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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.Cond = nil
} else {
yyv9 := &x.Cond
yyv9.CodecDecodeSelf(d)
}
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
} else {
yyb8 = r.CheckBreak()
}
if yyb8 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Then = nil
} else {
yyv10 := &x.Then
yyv10.CodecDecodeSelf(d)
}
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
} else {
yyb8 = r.CheckBreak()
}
if yyb8 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Else = nil
} else {
yyv11 := &x.Else
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, 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 *FuncExpression) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(3)
} else {
r.WriteMapStart(3)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Name))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Name`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.Name))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Args == nil {
r.EncodeNil()
} else {
x.Args.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Args`)
r.WriteMapElemValue()
if x.Args == nil {
r.EncodeNil()
} else {
x.Args.CodecEncodeSelf(e)
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeBool(bool(x.Aggr))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Aggr`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *FuncExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
yyv4 := &x.Name
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "Args":
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv6 := &x.Args
yyv6.CodecDecodeSelf(d)
}
case "Aggr":
if r.TryDecodeAsNil() {
x.Aggr = false
} else {
yyv7 := &x.Aggr
yym8 := z.DecBinary()
_ = yym8
if false {
} else {
*((*bool)(yyv7)) = 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 codecSelfer8654
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.Name = ""
} else {
yyv10 := &x.Name
yym11 := z.DecBinary()
_ = yym11
if false {
} else {
*((*string)(yyv10)) = r.DecodeString()
}
}
yyj9++
if yyhl9 {
yyb9 = yyj9 > l
} else {
yyb9 = r.CheckBreak()
}
if yyb9 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv12 := &x.Args
yyv12.CodecDecodeSelf(d)
}
yyj9++
if yyhl9 {
yyb9 = yyj9 > l
} else {
yyb9 = r.CheckBreak()
}
if yyb9 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.Aggr = false
} else {
yyv13 := &x.Aggr
yym14 := z.DecBinary()
_ = yym14
if false {
} else {
*((*bool)(yyv13)) = r.DecodeBool()
}
}
for {
yyj9++
if yyhl9 {
yyb9 = yyj9 > l
} else {
yyb9 = r.CheckBreak()
}
if yyb9 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj9-1, "")
}
r.ReadArrayEnd()
}
func (x *ItemExpression) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(3)
} else {
r.WriteMapStart(3)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.LHS == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
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()
r.EncodeString(codecSelferCcUTF88654, `LHS`)
r.WriteMapElemValue()
if x.LHS == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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()
yym7 := z.EncBinary()
_ = yym7
if false {
} else if yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil {
z.EncExtension(x.Op, yyxt7)
} else if yym7 {
z.EncBinaryMarshal(x.Op)
} else if !yym7 {
z.EncTextMarshal(x.Op)
} else {
r.EncodeInt(int64(x.Op))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Op`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(x.Op)); yyxt8 != nil {
z.EncExtension(x.Op, yyxt8)
} else if yym8 {
z.EncBinaryMarshal(x.Op)
} else if !yym8 {
z.EncTextMarshal(x.Op)
} else {
r.EncodeInt(int64(x.Op))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.RHS == nil {
r.EncodeNil()
} else {
yym10 := z.EncBinary()
_ = yym10
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()
r.EncodeString(codecSelferCcUTF88654, `RHS`)
r.WriteMapElemValue()
if x.RHS == nil {
r.EncodeNil()
} else {
yym11 := z.EncBinary()
_ = yym11
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *ItemExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "LHS":
if r.TryDecodeAsNil() {
x.LHS = nil
} else {
yyv4 := &x.LHS
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else {
z.DecFallback(yyv4, true)
}
}
case "Op":
if r.TryDecodeAsNil() {
x.Op = 0
} else {
yyv6 := &x.Op
yym7 := z.DecBinary()
_ = yym7
if false {
} else if yyxt7 := z.Extension(z.I2Rtid(yyv6)); yyxt7 != nil {
z.DecExtension(yyv6, yyxt7)
} else if yym7 {
z.DecBinaryUnmarshal(yyv6)
} else {
*((*int16)(yyv6)) = int16(r.DecodeInt(16))
}
}
case "RHS":
if r.TryDecodeAsNil() {
x.RHS = nil
} else {
yyv8 := &x.RHS
yym9 := z.DecBinary()
_ = yym9
if false {
} else if yyxt9 := z.Extension(z.I2Rtid(yyv8)); yyxt9 != nil {
z.DecExtension(yyv8, yyxt9)
} else {
z.DecFallback(yyv8, 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 codecSelfer8654
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 {
yyv11 := &x.LHS
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, 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 {
yyv13 := &x.Op
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else if yym14 {
z.DecBinaryUnmarshal(yyv13)
} else {
*((*int16)(yyv13)) = int16(r.DecodeInt(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 {
yyv15 := &x.RHS
yym16 := z.DecBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(yyv15)); yyxt16 != nil {
z.DecExtension(yyv15, yyxt16)
} else {
z.DecFallback(yyv15, 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(3)
} else {
r.WriteMapStart(3)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.LHS == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
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()
r.EncodeString(codecSelferCcUTF88654, `LHS`)
r.WriteMapElemValue()
if x.LHS == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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()
yym7 := z.EncBinary()
_ = yym7
if false {
} else if yyxt7 := z.Extension(z.I2Rtid(x.Op)); yyxt7 != nil {
z.EncExtension(x.Op, yyxt7)
} else if yym7 {
z.EncBinaryMarshal(x.Op)
} else if !yym7 {
z.EncTextMarshal(x.Op)
} else {
r.EncodeInt(int64(x.Op))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Op`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(x.Op)); yyxt8 != nil {
z.EncExtension(x.Op, yyxt8)
} else if yym8 {
z.EncBinaryMarshal(x.Op)
} else if !yym8 {
z.EncTextMarshal(x.Op)
} else {
r.EncodeInt(int64(x.Op))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.RHS == nil {
r.EncodeNil()
} else {
yym10 := z.EncBinary()
_ = yym10
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()
r.EncodeString(codecSelferCcUTF88654, `RHS`)
r.WriteMapElemValue()
if x.RHS == nil {
r.EncodeNil()
} else {
yym11 := z.EncBinary()
_ = yym11
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *BinaryExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "LHS":
if r.TryDecodeAsNil() {
x.LHS = nil
} else {
yyv4 := &x.LHS
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else {
z.DecFallback(yyv4, true)
}
}
case "Op":
if r.TryDecodeAsNil() {
x.Op = 0
} else {
yyv6 := &x.Op
yym7 := z.DecBinary()
_ = yym7
if false {
} else if yyxt7 := z.Extension(z.I2Rtid(yyv6)); yyxt7 != nil {
z.DecExtension(yyv6, yyxt7)
} else if yym7 {
z.DecBinaryUnmarshal(yyv6)
} else {
*((*int16)(yyv6)) = int16(r.DecodeInt(16))
}
}
case "RHS":
if r.TryDecodeAsNil() {
x.RHS = nil
} else {
yyv8 := &x.RHS
yym9 := z.DecBinary()
_ = yym9
if false {
} else if yyxt9 := z.Extension(z.I2Rtid(yyv8)); yyxt9 != nil {
z.DecExtension(yyv8, yyxt9)
} else {
z.DecFallback(yyv8, 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 codecSelfer8654
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 {
yyv11 := &x.LHS
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, 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 {
yyv13 := &x.Op
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else if yym14 {
z.DecBinaryUnmarshal(yyv13)
} else {
*((*int16)(yyv13)) = int16(r.DecodeInt(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 {
yyv15 := &x.RHS
yym16 := z.DecBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(yyv15)); yyxt16 != nil {
z.DecExtension(yyv15, yyxt16)
} else {
z.DecFallback(yyv15, 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
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()
r.EncodeString(codecSelferCcUTF88654, `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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *PathExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Expr":
if r.TryDecodeAsNil() {
x.Expr = nil
} else {
yyv4 := &x.Expr
yyv4.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 codecSelfer8654
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 {
yyv6 := &x.Expr
yyv6.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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Part == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
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()
r.EncodeString(codecSelferCcUTF88654, `Part`)
r.WriteMapElemValue()
if x.Part == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *PartExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Part":
if r.TryDecodeAsNil() {
x.Part = nil
} else {
yyv4 := &x.Part
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else {
z.DecFallback(yyv4, 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 codecSelfer8654
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 {
yyv7 := &x.Part
yym8 := z.DecBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(yyv7)); yyxt8 != nil {
z.DecExtension(yyv7, yyxt8)
} else {
z.DecFallback(yyv7, 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else if yyxt4 := z.Extension(z.I2Rtid(x.Join)); yyxt4 != nil {
z.EncExtension(x.Join, yyxt4)
} else if yym4 {
z.EncBinaryMarshal(x.Join)
} else if !yym4 {
z.EncTextMarshal(x.Join)
} else {
r.EncodeInt(int64(x.Join))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Join`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(x.Join)); yyxt5 != nil {
z.EncExtension(x.Join, yyxt5)
} else if yym5 {
z.EncBinaryMarshal(x.Join)
} else if !yym5 {
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *JoinExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Join":
if r.TryDecodeAsNil() {
x.Join = 0
} else {
yyv4 := &x.Join
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else if yym5 {
z.DecBinaryUnmarshal(yyv4)
} else {
*((*int16)(yyv4)) = int16(r.DecodeInt(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 codecSelfer8654
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 {
yyv7 := &x.Join
yym8 := z.DecBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(yyv7)); yyxt8 != nil {
z.DecExtension(yyv7, yyxt8)
} else if yym8 {
z.DecBinaryUnmarshal(yyv7)
} else {
*((*int16)(yyv7)) = int16(r.DecodeInt(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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
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()
r.EncodeString(codecSelferCcUTF88654, `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()
r.EncodeString(codecSelferCcUTF88654, `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 {
yym10 := z.EncBinary()
_ = yym10
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()
r.EncodeString(codecSelferCcUTF88654, `Cond`)
r.WriteMapElemValue()
if x.Cond == nil {
r.EncodeNil()
} else {
yym11 := z.EncBinary()
_ = yym11
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *SubpExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "What":
if r.TryDecodeAsNil() {
x.What = nil
} else {
yyv4 := &x.What
yyv4.CodecDecodeSelf(d)
}
case "Name":
if x.Name == nil {
x.Name = new(Ident)
}
if r.TryDecodeAsNil() {
if 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 {
yyv6 := &x.Cond
yym7 := z.DecBinary()
_ = yym7
if false {
} else if yyxt7 := z.Extension(z.I2Rtid(yyv6)); yyxt7 != nil {
z.DecExtension(yyv6, yyxt7)
} else {
z.DecFallback(yyv6, 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 codecSelfer8654
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 {
yyv9 := &x.What
yyv9.CodecDecodeSelf(d)
}
if x.Name == nil {
x.Name = new(Ident)
}
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
} else {
yyb8 = r.CheckBreak()
}
if yyb8 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if 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 {
yyv11 := &x.Cond
yym12 := z.DecBinary()
_ = yym12
if false {
} else if yyxt12 := z.Extension(z.I2Rtid(yyv11)); yyxt12 != nil {
z.DecExtension(yyv11, yyxt12)
} else {
z.DecFallback(yyv11, 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(4)
} else {
r.WriteMapStart(4)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Select == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
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()
r.EncodeString(codecSelferCcUTF88654, `Select`)
r.WriteMapElemValue()
if x.Select == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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 {
yym7 := z.EncBinary()
_ = yym7
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()
r.EncodeString(codecSelferCcUTF88654, `Create`)
r.WriteMapElemValue()
if x.Create == nil {
r.EncodeNil()
} else {
yym8 := z.EncBinary()
_ = yym8
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 {
yym10 := z.EncBinary()
_ = yym10
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()
r.EncodeString(codecSelferCcUTF88654, `Update`)
r.WriteMapElemValue()
if x.Update == nil {
r.EncodeNil()
} else {
yym11 := z.EncBinary()
_ = yym11
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 {
yym13 := z.EncBinary()
_ = yym13
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()
r.EncodeString(codecSelferCcUTF88654, `Delete`)
r.WriteMapElemValue()
if x.Delete == nil {
r.EncodeNil()
} else {
yym14 := z.EncBinary()
_ = yym14
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *PermExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Select":
if r.TryDecodeAsNil() {
x.Select = nil
} else {
yyv4 := &x.Select
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else {
z.DecFallback(yyv4, true)
}
}
case "Create":
if r.TryDecodeAsNil() {
x.Create = nil
} else {
yyv6 := &x.Create
yym7 := z.DecBinary()
_ = yym7
if false {
} else if yyxt7 := z.Extension(z.I2Rtid(yyv6)); yyxt7 != nil {
z.DecExtension(yyv6, yyxt7)
} else {
z.DecFallback(yyv6, true)
}
}
case "Update":
if r.TryDecodeAsNil() {
x.Update = nil
} else {
yyv8 := &x.Update
yym9 := z.DecBinary()
_ = yym9
if false {
} else if yyxt9 := z.Extension(z.I2Rtid(yyv8)); yyxt9 != nil {
z.DecExtension(yyv8, yyxt9)
} else {
z.DecFallback(yyv8, true)
}
}
case "Delete":
if r.TryDecodeAsNil() {
x.Delete = nil
} else {
yyv10 := &x.Delete
yym11 := z.DecBinary()
_ = yym11
if false {
} else if yyxt11 := z.Extension(z.I2Rtid(yyv10)); yyxt11 != nil {
z.DecExtension(yyv10, yyxt11)
} else {
z.DecFallback(yyv10, 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 codecSelfer8654
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 {
yyv13 := &x.Select
yym14 := z.DecBinary()
_ = yym14
if false {
} else if yyxt14 := z.Extension(z.I2Rtid(yyv13)); yyxt14 != nil {
z.DecExtension(yyv13, yyxt14)
} else {
z.DecFallback(yyv13, 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 {
yyv15 := &x.Create
yym16 := z.DecBinary()
_ = yym16
if false {
} else if yyxt16 := z.Extension(z.I2Rtid(yyv15)); yyxt16 != nil {
z.DecExtension(yyv15, yyxt16)
} else {
z.DecFallback(yyv15, 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 {
yyv17 := &x.Update
yym18 := z.DecBinary()
_ = yym18
if false {
} else if yyxt18 := z.Extension(z.I2Rtid(yyv17)); yyxt18 != nil {
z.DecExtension(yyv17, yyxt18)
} else {
z.DecFallback(yyv17, 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 {
yyv19 := &x.Delete
yym20 := z.DecBinary()
_ = yym20
if false {
} else if yyxt20 := z.Extension(z.I2Rtid(yyv19)); yyxt20 != nil {
z.DecExtension(yyv19, yyxt20)
} else {
z.DecFallback(yyv19, 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Data == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
h.encSlicePtrtoItemExpression(([]*ItemExpression)(x.Data), e)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `Data`)
r.WriteMapElemValue()
if x.Data == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DataExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4 := &x.Data
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
h.decSlicePtrtoItemExpression((*[]*ItemExpression)(yyv4), 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 codecSelfer8654
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 {
yyv7 := &x.Data
yym8 := z.DecBinary()
_ = yym8
if false {
} else {
h.decSlicePtrtoItemExpression((*[]*ItemExpression)(yyv7), 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Data == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
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()
r.EncodeString(codecSelferCcUTF88654, `Data`)
r.WriteMapElemValue()
if x.Data == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *DiffExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4 := &x.Data
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else {
z.DecFallback(yyv4, 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 codecSelfer8654
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 {
yyv7 := &x.Data
yym8 := z.DecBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(yyv7)); yyxt8 != nil {
z.DecExtension(yyv7, yyxt8)
} else {
z.DecFallback(yyv7, 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Data == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
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()
r.EncodeString(codecSelferCcUTF88654, `Data`)
r.WriteMapElemValue()
if x.Data == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *MergeExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4 := &x.Data
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else {
z.DecFallback(yyv4, 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 codecSelfer8654
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 {
yyv7 := &x.Data
yym8 := z.DecBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(yyv7)); yyxt8 != nil {
z.DecExtension(yyv7, yyxt8)
} else {
z.DecFallback(yyv7, 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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.Data == nil {
r.EncodeNil()
} else {
yym4 := z.EncBinary()
_ = yym4
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()
r.EncodeString(codecSelferCcUTF88654, `Data`)
r.WriteMapElemValue()
if x.Data == nil {
r.EncodeNil()
} else {
yym5 := z.EncBinary()
_ = yym5
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *ContentExpression) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "Data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4 := &x.Data
yym5 := z.DecBinary()
_ = yym5
if false {
} else if yyxt5 := z.Extension(z.I2Rtid(yyv4)); yyxt5 != nil {
z.DecExtension(yyv4, yyxt5)
} else {
z.DecFallback(yyv4, 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 codecSelfer8654
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 {
yyv7 := &x.Data
yym8 := z.DecBinary()
_ = yym8
if false {
} else if yyxt8 := z.Extension(z.I2Rtid(yyv7)); yyxt8 != nil {
z.DecExtension(yyv7, yyxt8)
} else {
z.DecFallback(yyv7, 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 *Model) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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
if yyr2 || yy2arr2 {
r.WriteArrayStart(4)
} else {
r.WriteMapStart(4)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.TB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `TB`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.TB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeFloat64(float64(x.MIN))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `MIN`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeFloat64(float64(x.MIN))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeFloat64(float64(x.INC))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `INC`)
r.WriteMapElemValue()
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeFloat64(float64(x.INC))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeFloat64(float64(x.MAX))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `MAX`)
r.WriteMapElemValue()
yym14 := z.EncBinary()
_ = yym14
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Model) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "TB":
if r.TryDecodeAsNil() {
x.TB = ""
} else {
yyv4 := &x.TB
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "MIN":
if r.TryDecodeAsNil() {
x.MIN = 0
} else {
yyv6 := &x.MIN
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*float64)(yyv6)) = float64(r.DecodeFloat(false))
}
}
case "INC":
if r.TryDecodeAsNil() {
x.INC = 0
} else {
yyv8 := &x.INC
yym9 := z.DecBinary()
_ = yym9
if false {
} else {
*((*float64)(yyv8)) = float64(r.DecodeFloat(false))
}
}
case "MAX":
if r.TryDecodeAsNil() {
x.MAX = 0
} else {
yyv10 := &x.MAX
yym11 := z.DecBinary()
_ = yym11
if false {
} else {
*((*float64)(yyv10)) = float64(r.DecodeFloat(false))
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *Model) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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.TB = ""
} else {
yyv13 := &x.TB
yym14 := z.DecBinary()
_ = yym14
if false {
} else {
*((*string)(yyv13)) = r.DecodeString()
}
}
yyj12++
if yyhl12 {
yyb12 = yyj12 > l
} else {
yyb12 = r.CheckBreak()
}
if yyb12 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.MIN = 0
} else {
yyv15 := &x.MIN
yym16 := z.DecBinary()
_ = yym16
if false {
} else {
*((*float64)(yyv15)) = float64(r.DecodeFloat(false))
}
}
yyj12++
if yyhl12 {
yyb12 = yyj12 > l
} else {
yyb12 = r.CheckBreak()
}
if yyb12 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.INC = 0
} else {
yyv17 := &x.INC
yym18 := z.DecBinary()
_ = yym18
if false {
} else {
*((*float64)(yyv17)) = float64(r.DecodeFloat(false))
}
}
yyj12++
if yyhl12 {
yyb12 = yyj12 > l
} else {
yyb12 = r.CheckBreak()
}
if yyb12 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.MAX = 0
} else {
yyv19 := &x.MAX
yym20 := z.DecBinary()
_ = yym20
if false {
} else {
*((*float64)(yyv19)) = float64(r.DecodeFloat(false))
}
}
for {
yyj12++
if yyhl12 {
yyb12 = yyj12 > l
} else {
yyb12 = r.CheckBreak()
}
if yyb12 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj12-1, "")
}
r.ReadArrayEnd()
}
func (x Params) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 {
z.EncTextMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.ID))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `ID`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.ID))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *Param) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Param) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "ID":
if r.TryDecodeAsNil() {
x.ID = ""
} else {
yyv4 := &x.ID
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = 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 codecSelfer8654
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.ID = ""
} else {
yyv7 := &x.ID
yym8 := z.DecBinary()
_ = yym8
if false {
} else {
*((*string)(yyv7)) = 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 Values) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 {
z.EncTextMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.ID))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `ID`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.ID))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *Value) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Value) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "ID":
if r.TryDecodeAsNil() {
x.ID = ""
} else {
yyv4 := &x.ID
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = 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 codecSelfer8654
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.ID = ""
} else {
yyv7 := &x.ID
yym8 := z.DecBinary()
_ = yym8
if false {
} else {
*((*string)(yyv7)) = 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 Idents) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 {
z.EncTextMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.ID))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `ID`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.ID))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *Ident) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Ident) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "ID":
if r.TryDecodeAsNil() {
x.ID = ""
} else {
yyv4 := &x.ID
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = 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 codecSelfer8654
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.ID = ""
} else {
yyv7 := &x.ID
yym8 := z.DecBinary()
_ = yym8
if false {
} else {
*((*string)(yyv7)) = 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 Tables) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 {
z.EncTextMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.TB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `TB`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.TB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *Table) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Table) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "TB":
if r.TryDecodeAsNil() {
x.TB = ""
} else {
yyv4 := &x.TB
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = 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 codecSelfer8654
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.TB = ""
} else {
yyv7 := &x.TB
yym8 := z.DecBinary()
_ = yym8
if false {
} else {
*((*string)(yyv7)) = 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 Batchs) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 {
z.EncTextMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
if yyr2 || yy2arr2 {
r.WriteArrayStart(2)
} else {
r.WriteMapStart(2)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.TB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `TB`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.TB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.BA == nil {
r.EncodeNil()
} else {
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
h.encSlicePtrtoThing(([]*Thing)(x.BA), e)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `BA`)
r.WriteMapElemValue()
if x.BA == nil {
r.EncodeNil()
} else {
yym8 := z.EncBinary()
_ = yym8
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Batch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "TB":
if r.TryDecodeAsNil() {
x.TB = ""
} else {
yyv4 := &x.TB
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "BA":
if r.TryDecodeAsNil() {
x.BA = nil
} else {
yyv6 := &x.BA
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
h.decSlicePtrtoThing((*[]*Thing)(yyv6), 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 codecSelfer8654
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 {
yyv9 := &x.TB
yym10 := z.DecBinary()
_ = yym10
if false {
} else {
*((*string)(yyv9)) = r.DecodeString()
}
}
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
} else {
yyb8 = r.CheckBreak()
}
if yyb8 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.BA = nil
} else {
yyv11 := &x.BA
yym12 := z.DecBinary()
_ = yym12
if false {
} else {
h.decSlicePtrtoThing((*[]*Thing)(yyv11), 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 Things) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 {
z.EncTextMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
if yyr2 || yy2arr2 {
r.WriteArrayStart(2)
} else {
r.WriteMapStart(2)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.TB))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `TB`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferCcUTF88654, string(x.TB))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.ID == nil {
r.EncodeNil()
} else {
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
z.EncFallback(x.ID)
}
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `ID`)
r.WriteMapElemValue()
if x.ID == nil {
r.EncodeNil()
} else {
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
z.EncFallback(x.ID)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *Thing) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Thing) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "TB":
if r.TryDecodeAsNil() {
x.TB = ""
} else {
yyv4 := &x.TB
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*string)(yyv4)) = r.DecodeString()
}
}
case "ID":
if r.TryDecodeAsNil() {
x.ID = nil
} else {
yyv6 := &x.ID
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
z.DecFallback(yyv6, 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 codecSelfer8654
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 {
yyv9 := &x.TB
yym10 := z.DecBinary()
_ = yym10
if false {
} else {
*((*string)(yyv9)) = r.DecodeString()
}
}
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
} else {
yyb8 = r.CheckBreak()
}
if yyb8 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.ID = nil
} else {
yyv11 := &x.ID
yym12 := z.DecBinary()
_ = yym12
if false {
} else {
z.DecFallback(yyv11, 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 Points) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 && z.IsJSONHandle() {
z.EncJSONMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
if yyr2 || yy2arr2 {
r.WriteArrayStart(2)
} else {
r.WriteMapStart(2)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeFloat64(float64(x.LA))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `LA`)
r.WriteMapElemValue()
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeFloat64(float64(x.LA))
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeFloat64(float64(x.LO))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `LO`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Point) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "LA":
if r.TryDecodeAsNil() {
x.LA = 0
} else {
yyv4 := &x.LA
yym5 := z.DecBinary()
_ = yym5
if false {
} else {
*((*float64)(yyv4)) = float64(r.DecodeFloat(false))
}
}
case "LO":
if r.TryDecodeAsNil() {
x.LO = 0
} else {
yyv6 := &x.LO
yym7 := z.DecBinary()
_ = yym7
if false {
} else {
*((*float64)(yyv6)) = float64(r.DecodeFloat(false))
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *Point) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
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.LA = 0
} else {
yyv9 := &x.LA
yym10 := z.DecBinary()
_ = yym10
if false {
} else {
*((*float64)(yyv9)) = float64(r.DecodeFloat(false))
}
}
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
} else {
yyb8 = r.CheckBreak()
}
if yyb8 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.LO = 0
} else {
yyv11 := &x.LO
yym12 := z.DecBinary()
_ = yym12
if false {
} else {
*((*float64)(yyv11)) = float64(r.DecodeFloat(false))
}
}
for {
yyj8++
if yyhl8 {
yyb8 = yyj8 > l
} else {
yyb8 = r.CheckBreak()
}
if yyb8 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj8-1, "")
}
r.ReadArrayEnd()
}
func (x Circles) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 && z.IsJSONHandle() {
z.EncJSONMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
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()
r.EncodeString(codecSelferCcUTF88654, `CE`)
r.WriteMapElemValue()
if yyn3 {
r.EncodeNil()
} else {
if x.CE == nil {
r.EncodeNil()
} else {
x.CE.CodecEncodeSelf(e)
}
}
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeFloat64(float64(x.RA))
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `RA`)
r.WriteMapElemValue()
yym8 := z.EncBinary()
_ = yym8
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Circle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "CE":
if x.CE == nil {
x.CE = new(Point)
}
if r.TryDecodeAsNil() {
if 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 {
yyv5 := &x.RA
yym6 := z.DecBinary()
_ = yym6
if false {
} else {
*((*float64)(yyv5)) = float64(r.DecodeFloat(false))
}
}
default:
z.DecStructFieldNotFound(-1, yys3)
} // end switch yys3
} // end for yyj3
r.ReadMapEnd()
}
func (x *Circle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj7 int
var yyb7 bool
var yyhl7 bool = l >= 0
if x.CE == nil {
x.CE = new(Point)
}
yyj7++
if yyhl7 {
yyb7 = yyj7 > l
} else {
yyb7 = r.CheckBreak()
}
if yyb7 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
if x.CE != nil {
x.CE = nil
}
} else {
if x.CE == nil {
x.CE = new(Point)
}
x.CE.CodecDecodeSelf(d)
}
yyj7++
if yyhl7 {
yyb7 = yyj7 > l
} else {
yyb7 = r.CheckBreak()
}
if yyb7 {
r.ReadArrayEnd()
return
}
r.ReadArrayElem()
if r.TryDecodeAsNil() {
x.RA = 0
} else {
yyv9 := &x.RA
yym10 := z.DecBinary()
_ = yym10
if false {
} else {
*((*float64)(yyv9)) = float64(r.DecodeFloat(false))
}
}
for {
yyj7++
if yyhl7 {
yyb7 = yyj7 > l
} else {
yyb7 = r.CheckBreak()
}
if yyb7 {
break
}
r.ReadArrayElem()
z.DecStructFieldNotFound(yyj7-1, "")
}
r.ReadArrayEnd()
}
func (x Polygons) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
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 codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.EncExtension(x, yyxt1)
} else if !yym1 && z.IsJSONHandle() {
z.EncJSONMarshal(x)
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
_, _ = yysep2, yy2arr2
const yyr2 bool = false
if yyr2 || yy2arr2 {
r.WriteArrayStart(1)
} else {
r.WriteMapStart(1)
}
if yyr2 || yy2arr2 {
r.WriteArrayElem()
if x.PS == nil {
r.EncodeNil()
} else {
x.PS.CodecEncodeSelf(e)
}
} else {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF88654, `PS`)
r.WriteMapElemValue()
if x.PS == nil {
r.EncodeNil()
} else {
x.PS.CodecEncodeSelf(e)
}
}
if yyr2 || yy2arr2 {
r.WriteArrayEnd()
} else {
r.WriteMapEnd()
}
}
}
}
func (x *Polygon) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap8654 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray8654 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
} else {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct8654)
}
}
}
func (x *Polygon) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3Slc
var yyhl3 bool = l >= 0
for yyj3 := 0; ; yyj3++ {
if yyhl3 {
if yyj3 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
r.ReadMapElemKey()
yys3Slc = r.DecodeStringAsBytes()
yys3 := string(yys3Slc)
r.ReadMapElemValue()
switch yys3 {
case "PS":
if r.TryDecodeAsNil() {
x.PS = nil
} else {
yyv4 := &x.PS
yyv4.CodecDecodeSelf(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 codecSelfer8654
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.PS = nil
} else {
yyv6 := &x.PS
yyv6.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 codecSelfer8654) encStatements(v Statements, e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.WriteArrayStart(len(v))
for _, yyv1 := range v {
r.WriteArrayElem()
if yyv1 == nil {
r.EncodeNil()
} else {
yym2 := z.EncBinary()
_ = yym2
if false {
} else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil {
z.EncExtension(yyv1, yyxt2)
} else {
z.EncFallback(yyv1)
}
}
}
r.WriteArrayEnd()
}
func (x codecSelfer8654) decStatements(v *Statements, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
} else {
yyrl1 = 8
}
yyv1 = make([]Statement, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
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 {
yyv2 := &yyv1[yyj1]
yym3 := z.DecBinary()
_ = yym3
if false {
} else if yyxt3 := z.Extension(z.I2Rtid(yyv2)); yyxt3 != nil {
z.DecExtension(yyv2, yyxt3)
} else {
z.DecFallback(yyv2, 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 codecSelfer8654) encExprs(v Exprs, e *codec1978.Encoder) {
var h codecSelfer8654
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.WriteArrayStart(len(v))
for _, yyv1 := range v {
r.WriteArrayElem()
if yyv1 == nil {
r.EncodeNil()
} else {
yym2 := z.EncBinary()
_ = yym2
if false {
} else if yyxt2 := z.Extension(z.I2Rtid(yyv1)); yyxt2 != nil {
z.EncExtension(yyv1, yyxt2)
} else {
z.EncFallback(yyv1)
}
}
}
r.WriteArrayEnd()
}
func (x codecSelfer8654) decExprs(v *Exprs, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16)
} else {
yyrl1 = 8
}
yyv1 = make([]Expr, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
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 {
yyv2 := &yyv1[yyj1]
yym3 := z.DecBinary()
_ = yym3
if false {
} else if yyxt3 := z.Extension(z.I2Rtid(yyv2)); yyxt3 != nil {
z.DecExtension(yyv2, yyxt3)
} else {
z.DecFallback(yyv2, 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 codecSelfer8654) encFields(v Fields, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decFields(v *Fields, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Field, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Field{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Field)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encGroups(v Groups, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decGroups(v *Groups, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Group, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Group{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Group)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encOrders(v Orders, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decOrders(v *Orders, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Order, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Order{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Order)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encSlicePtrtoItemExpression(v []*ItemExpression, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decSlicePtrtoItemExpression(v *[]*ItemExpression, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*ItemExpression, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = ItemExpression{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(ItemExpression)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encParams(v Params, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decParams(v *Params, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Param, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Param{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Param)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encValues(v Values, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decValues(v *Values, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Value, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Value{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Value)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encIdents(v Idents, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decIdents(v *Idents, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Ident, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Ident{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Ident)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encTables(v Tables, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decTables(v *Tables, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Table, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Table{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Table)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encBatchs(v Batchs, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decBatchs(v *Batchs, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Batch, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Batch{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Batch)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encSlicePtrtoThing(v []*Thing, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decSlicePtrtoThing(v *[]*Thing, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Thing, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Thing{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Thing)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encThings(v Things, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decThings(v *Things, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Thing, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Thing{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Thing)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encPoints(v Points, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decPoints(v *Points, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Point, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Point{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Point)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encCircles(v Circles, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decCircles(v *Circles, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Circle, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Circle{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Circle)
}
yyw2 := yyv1[yyj1]
yyw2.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 codecSelfer8654) encPolygons(v Polygons, e *codec1978.Encoder) {
var h codecSelfer8654
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 codecSelfer8654) decPolygons(v *Polygons, d *codec1978.Decoder) {
var h codecSelfer8654
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 ; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ {
if yyj1 == 0 && len(yyv1) == 0 {
if yyhl1 {
yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
} else {
yyrl1 = 8
}
yyv1 = make([]*Polygon, yyrl1)
yyc1 = true
}
yyh1.ElemContainerState(yyj1)
// yydn1 = r.TryDecodeAsNil()
// if indefinite, etc, then expand the slice if necessary
var yydb1 bool
if yyj1 >= len(yyv1) {
yyv1 = append(yyv1, nil)
yyc1 = true
}
if yydb1 {
z.DecSwallow()
} else {
if r.TryDecodeAsNil() {
if yyv1[yyj1] != nil {
*yyv1[yyj1] = Polygon{}
}
} else {
if yyv1[yyj1] == nil {
yyv1[yyj1] = new(Polygon)
}
yyw2 := yyv1[yyj1]
yyw2.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
}
}