Commit 140dfccd authored by Eric Tune's avatar Eric Tune

Merge pull request #18860 from erictune/fix-build

Fix build
parents 13ec258f 1965fe18
...@@ -32,6 +32,7 @@ generated_files=($( ...@@ -32,6 +32,7 @@ generated_files=($(
-o -wholename './target' \ -o -wholename './target' \
-o -wholename '*/third_party/*' \ -o -wholename '*/third_party/*' \
-o -wholename '*/Godeps/*' \ -o -wholename '*/Godeps/*' \
-o -wholename '*/testdata/*' \
\) -prune \ \) -prune \
\) -name '*.generated.go')) \) -name '*.generated.go'))
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -156,30 +156,18 @@ func (x *TestResource) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -156,30 +156,18 @@ func (x *TestResource) CodecEncodeSelf(e *codec1978.Encoder) {
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy10 := &x.ObjectMeta yy10 := &x.ObjectMeta
yym11 := z.EncBinary() yy10.CodecEncodeSelf(e)
_ = yym11
if false {
} else if z.HasExtensions() && z.EncExt(yy10) {
} else {
z.EncFallback(yy10)
}
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy12 := &x.ObjectMeta yy11 := &x.ObjectMeta
yym13 := z.EncBinary() yy11.CodecEncodeSelf(e)
_ = yym13
if false {
} else if z.HasExtensions() && z.EncExt(yy12) {
} else {
z.EncFallback(yy12)
}
} }
if yyr2 || yy2arr2 { if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym15 := z.EncBinary() yym13 := z.EncBinary()
_ = yym15 _ = yym13
if false { if false {
} else { } else {
r.EncodeInt(int64(x.Value)) r.EncodeInt(int64(x.Value))
...@@ -188,8 +176,8 @@ func (x *TestResource) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -188,8 +176,8 @@ func (x *TestResource) CodecEncodeSelf(e *codec1978.Encoder) {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value")) r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym16 := z.EncBinary() yym14 := z.EncBinary()
_ = yym16 _ = yym14
if false { if false {
} else { } else {
r.EncodeInt(int64(x.Value)) r.EncodeInt(int64(x.Value))
...@@ -208,25 +196,25 @@ func (x *TestResource) CodecDecodeSelf(d *codec1978.Decoder) { ...@@ -208,25 +196,25 @@ func (x *TestResource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
yym17 := z.DecBinary() yym15 := z.DecBinary()
_ = yym17 _ = yym15
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct18 := r.ContainerType() yyct16 := r.ContainerType()
if yyct18 == codecSelferValueTypeMap1234 { if yyct16 == codecSelferValueTypeMap1234 {
yyl18 := r.ReadMapStart() yyl16 := r.ReadMapStart()
if yyl18 == 0 { if yyl16 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl18, d) x.codecDecodeSelfFromMap(yyl16, d)
} }
} else if yyct18 == codecSelferValueTypeArray1234 { } else if yyct16 == codecSelferValueTypeArray1234 {
yyl18 := r.ReadArrayStart() yyl16 := r.ReadArrayStart()
if yyl18 == 0 { if yyl16 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl18, d) x.codecDecodeSelfFromArray(yyl16, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
...@@ -238,12 +226,12 @@ func (x *TestResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -238,12 +226,12 @@ func (x *TestResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yys19Slc = z.DecScratchBuffer() // default slice to decode into var yys17Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys19Slc _ = yys17Slc
var yyhl19 bool = l >= 0 var yyhl17 bool = l >= 0
for yyj19 := 0; ; yyj19++ { for yyj17 := 0; ; yyj17++ {
if yyhl19 { if yyhl17 {
if yyj19 >= l { if yyj17 >= l {
break break
} }
} else { } else {
...@@ -252,10 +240,10 @@ func (x *TestResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -252,10 +240,10 @@ func (x *TestResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys19Slc = r.DecodeBytes(yys19Slc, true, true) yys17Slc = r.DecodeBytes(yys17Slc, true, true)
yys19 := string(yys19Slc) yys17 := string(yys17Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys19 { switch yys17 {
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
...@@ -272,14 +260,8 @@ func (x *TestResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -272,14 +260,8 @@ func (x *TestResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_api.ObjectMeta{} x.ObjectMeta = pkg2_api.ObjectMeta{}
} else { } else {
yyv22 := &x.ObjectMeta yyv20 := &x.ObjectMeta
yym23 := z.DecBinary() yyv20.CodecDecodeSelf(d)
_ = yym23
if false {
} else if z.HasExtensions() && z.DecExt(yyv22) {
} else {
z.DecFallback(yyv22, false)
}
} }
case "value": case "value":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
...@@ -288,9 +270,9 @@ func (x *TestResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -288,9 +270,9 @@ func (x *TestResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
x.Value = int(r.DecodeInt(codecSelferBitsize1234)) x.Value = int(r.DecodeInt(codecSelferBitsize1234))
} }
default: default:
z.DecStructFieldNotFound(-1, yys19) z.DecStructFieldNotFound(-1, yys17)
} // end switch yys19 } // end switch yys17
} // end for yyj19 } // end for yyj17
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
...@@ -298,16 +280,16 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -298,16 +280,16 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj25 int var yyj22 int
var yyb25 bool var yyb22 bool
var yyhl25 bool = l >= 0 var yyhl22 bool = l >= 0
yyj25++ yyj22++
if yyhl25 { if yyhl22 {
yyb25 = yyj25 > l yyb22 = yyj22 > l
} else { } else {
yyb25 = r.CheckBreak() yyb22 = r.CheckBreak()
} }
if yyb25 { if yyb22 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -317,13 +299,13 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -317,13 +299,13 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj25++ yyj22++
if yyhl25 { if yyhl22 {
yyb25 = yyj25 > l yyb22 = yyj22 > l
} else { } else {
yyb25 = r.CheckBreak() yyb22 = r.CheckBreak()
} }
if yyb25 { if yyb22 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -333,13 +315,13 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -333,13 +315,13 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
yyj25++ yyj22++
if yyhl25 { if yyhl22 {
yyb25 = yyj25 > l yyb22 = yyj22 > l
} else { } else {
yyb25 = r.CheckBreak() yyb22 = r.CheckBreak()
} }
if yyb25 { if yyb22 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -347,22 +329,16 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -347,22 +329,16 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg2_api.ObjectMeta{} x.ObjectMeta = pkg2_api.ObjectMeta{}
} else { } else {
yyv28 := &x.ObjectMeta yyv25 := &x.ObjectMeta
yym29 := z.DecBinary() yyv25.CodecDecodeSelf(d)
_ = yym29
if false {
} else if z.HasExtensions() && z.DecExt(yyv28) {
} else {
z.DecFallback(yyv28, false)
}
} }
yyj25++ yyj22++
if yyhl25 { if yyhl22 {
yyb25 = yyj25 > l yyb22 = yyj22 > l
} else { } else {
yyb25 = r.CheckBreak() yyb22 = r.CheckBreak()
} }
if yyb25 { if yyb22 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -373,17 +349,17 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -373,17 +349,17 @@ func (x *TestResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
x.Value = int(r.DecodeInt(codecSelferBitsize1234)) x.Value = int(r.DecodeInt(codecSelferBitsize1234))
} }
for { for {
yyj25++ yyj22++
if yyhl25 { if yyhl22 {
yyb25 = yyj25 > l yyb22 = yyj22 > l
} else { } else {
yyb25 = r.CheckBreak() yyb22 = r.CheckBreak()
} }
if yyb25 { if yyb22 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj25-1, "") z.DecStructFieldNotFound(yyj22-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment