Update generated code

This commit is contained in:
Tobie Morgan Hitchcock 2018-04-14 21:59:16 +01:00
parent 7602b77c6d
commit 49ec33987f
2 changed files with 1210 additions and 936 deletions

View file

@ -11,23 +11,23 @@ import (
const (
// ----- content types ----
codecSelferCcUTF81891 = 1
codecSelferCcRAW1891 = 0
codecSelferCcUTF87898 = 1
codecSelferCcRAW7898 = 0
// ----- value types used ----
codecSelferValueTypeArray1891 = 10
codecSelferValueTypeMap1891 = 9
codecSelferValueTypeString1891 = 6
codecSelferValueTypeInt1891 = 2
codecSelferValueTypeUint1891 = 3
codecSelferValueTypeFloat1891 = 4
codecSelferBitsize1891 = uint8(32 << (^uint(0) >> 63))
codecSelferValueTypeArray7898 = 10
codecSelferValueTypeMap7898 = 9
codecSelferValueTypeString7898 = 6
codecSelferValueTypeInt7898 = 2
codecSelferValueTypeUint7898 = 3
codecSelferValueTypeFloat7898 = 4
codecSelferBitsize7898 = uint8(32 << (^uint(0) >> 63))
)
var (
errCodecSelferOnlyMapOrArrayEncodeToStruct1891 = errors.New(`only encoded map or array can be decoded into a struct`)
errCodecSelferOnlyMapOrArrayEncodeToStruct7898 = errors.New(`only encoded map or array can be decoded into a struct`)
)
type codecSelfer1891 struct{}
type codecSelfer7898 struct{}
func init() {
if codec1978.GenVersion != 8 {
@ -39,7 +39,7 @@ func init() {
}
func (x *Response) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1891
var h codecSelfer7898
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
@ -77,19 +77,19 @@ func (x *Response) CodecEncodeSelf(e *codec1978.Encoder) {
if yyq2[0] {
if false {
} else {
r.EncodeString(codecSelferCcUTF81891, string(x.Time))
r.EncodeString(codecSelferCcUTF87898, string(x.Time))
}
} else {
r.EncodeString(codecSelferCcUTF81891, "")
r.EncodeString(codecSelferCcUTF87898, "")
}
} else {
if yyq2[0] {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF81891, `time`)
r.EncodeString(codecSelferCcUTF87898, `time`)
r.WriteMapElemValue()
if false {
} else {
r.EncodeString(codecSelferCcUTF81891, string(x.Time))
r.EncodeString(codecSelferCcUTF87898, string(x.Time))
}
}
}
@ -98,19 +98,19 @@ func (x *Response) CodecEncodeSelf(e *codec1978.Encoder) {
if yyq2[1] {
if false {
} else {
r.EncodeString(codecSelferCcUTF81891, string(x.Status))
r.EncodeString(codecSelferCcUTF87898, string(x.Status))
}
} else {
r.EncodeString(codecSelferCcUTF81891, "")
r.EncodeString(codecSelferCcUTF87898, "")
}
} else {
if yyq2[1] {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF81891, `status`)
r.EncodeString(codecSelferCcUTF87898, `status`)
r.WriteMapElemValue()
if false {
} else {
r.EncodeString(codecSelferCcUTF81891, string(x.Status))
r.EncodeString(codecSelferCcUTF87898, string(x.Status))
}
}
}
@ -119,19 +119,19 @@ func (x *Response) CodecEncodeSelf(e *codec1978.Encoder) {
if yyq2[2] {
if false {
} else {
r.EncodeString(codecSelferCcUTF81891, string(x.Detail))
r.EncodeString(codecSelferCcUTF87898, string(x.Detail))
}
} else {
r.EncodeString(codecSelferCcUTF81891, "")
r.EncodeString(codecSelferCcUTF87898, "")
}
} else {
if yyq2[2] {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF81891, `detail`)
r.EncodeString(codecSelferCcUTF87898, `detail`)
r.WriteMapElemValue()
if false {
} else {
r.EncodeString(codecSelferCcUTF81891, string(x.Detail))
r.EncodeString(codecSelferCcUTF87898, string(x.Detail))
}
}
}
@ -152,7 +152,7 @@ func (x *Response) CodecEncodeSelf(e *codec1978.Encoder) {
} else {
if yyq2[3] {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF81891, `result`)
r.EncodeString(codecSelferCcUTF87898, `result`)
r.WriteMapElemValue()
if x.Result == nil {
r.EncodeNil()
@ -174,7 +174,7 @@ func (x *Response) CodecEncodeSelf(e *codec1978.Encoder) {
}
func (x *Response) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1891
var h codecSelfer7898
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
if false {
@ -182,14 +182,14 @@ func (x *Response) CodecDecodeSelf(d *codec1978.Decoder) {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap1891 {
if yyct2 == codecSelferValueTypeMap7898 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray1891 {
} else if yyct2 == codecSelferValueTypeArray7898 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
@ -197,13 +197,13 @@ func (x *Response) CodecDecodeSelf(d *codec1978.Decoder) {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct1891)
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7898)
}
}
}
func (x *Response) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1891
var h codecSelfer7898
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyhl3 bool = l >= 0
@ -256,7 +256,7 @@ func (x *Response) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
}
func (x *Response) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1891
var h codecSelfer7898
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj9 int
@ -346,7 +346,7 @@ func (x *Response) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
func (x *Dispatch) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1891
var h codecSelfer7898
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
@ -383,19 +383,19 @@ func (x *Dispatch) CodecEncodeSelf(e *codec1978.Encoder) {
if yyq2[0] {
if false {
} else {
r.EncodeString(codecSelferCcUTF81891, string(x.Query))
r.EncodeString(codecSelferCcUTF87898, string(x.Query))
}
} else {
r.EncodeString(codecSelferCcUTF81891, "")
r.EncodeString(codecSelferCcUTF87898, "")
}
} else {
if yyq2[0] {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF81891, `query`)
r.EncodeString(codecSelferCcUTF87898, `query`)
r.WriteMapElemValue()
if false {
} else {
r.EncodeString(codecSelferCcUTF81891, string(x.Query))
r.EncodeString(codecSelferCcUTF87898, string(x.Query))
}
}
}
@ -404,19 +404,19 @@ func (x *Dispatch) CodecEncodeSelf(e *codec1978.Encoder) {
if yyq2[1] {
if false {
} else {
r.EncodeString(codecSelferCcUTF81891, string(x.Action))
r.EncodeString(codecSelferCcUTF87898, string(x.Action))
}
} else {
r.EncodeString(codecSelferCcUTF81891, "")
r.EncodeString(codecSelferCcUTF87898, "")
}
} else {
if yyq2[1] {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF81891, `action`)
r.EncodeString(codecSelferCcUTF87898, `action`)
r.WriteMapElemValue()
if false {
} else {
r.EncodeString(codecSelferCcUTF81891, string(x.Action))
r.EncodeString(codecSelferCcUTF87898, string(x.Action))
}
}
}
@ -437,7 +437,7 @@ func (x *Dispatch) CodecEncodeSelf(e *codec1978.Encoder) {
} else {
if yyq2[2] {
r.WriteMapElemKey()
r.EncodeString(codecSelferCcUTF81891, `result`)
r.EncodeString(codecSelferCcUTF87898, `result`)
r.WriteMapElemValue()
if x.Result == nil {
r.EncodeNil()
@ -459,7 +459,7 @@ func (x *Dispatch) CodecEncodeSelf(e *codec1978.Encoder) {
}
func (x *Dispatch) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1891
var h codecSelfer7898
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
if false {
@ -467,14 +467,14 @@ func (x *Dispatch) CodecDecodeSelf(d *codec1978.Decoder) {
z.DecExtension(x, yyxt1)
} else {
yyct2 := r.ContainerType()
if yyct2 == codecSelferValueTypeMap1891 {
if yyct2 == codecSelferValueTypeMap7898 {
yyl2 := r.ReadMapStart()
if yyl2 == 0 {
r.ReadMapEnd()
} else {
x.codecDecodeSelfFromMap(yyl2, d)
}
} else if yyct2 == codecSelferValueTypeArray1891 {
} else if yyct2 == codecSelferValueTypeArray7898 {
yyl2 := r.ReadArrayStart()
if yyl2 == 0 {
r.ReadArrayEnd()
@ -482,13 +482,13 @@ func (x *Dispatch) CodecDecodeSelf(d *codec1978.Decoder) {
x.codecDecodeSelfFromArray(yyl2, d)
}
} else {
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct1891)
panic(errCodecSelferOnlyMapOrArrayEncodeToStruct7898)
}
}
}
func (x *Dispatch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1891
var h codecSelfer7898
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyhl3 bool = l >= 0
@ -535,7 +535,7 @@ func (x *Dispatch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
}
func (x *Dispatch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1891
var h codecSelfer7898
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj8 int

File diff suppressed because it is too large Load diff