@@ -82,6 +82,10 @@ func (s *IntegerShape) Base() *BaseShape {
82
82
return s .BaseShape
83
83
}
84
84
85
+ func (s * IntegerShape ) cloneShallow (base * BaseShape ) Shape {
86
+ return s .clone (base , nil )
87
+ }
88
+
85
89
func (s * IntegerShape ) clone (base * BaseShape , _ map [int64 ]* BaseShape ) Shape {
86
90
c := * s
87
91
c .BaseShape = base
@@ -287,6 +291,10 @@ func (s *NumberShape) Base() *BaseShape {
287
291
return s .BaseShape
288
292
}
289
293
294
+ func (s * NumberShape ) cloneShallow (base * BaseShape ) Shape {
295
+ return s .clone (base , nil )
296
+ }
297
+
290
298
func (s * NumberShape ) clone (base * BaseShape , _ map [int64 ]* BaseShape ) Shape {
291
299
c := * s
292
300
c .BaseShape = base
@@ -464,6 +472,10 @@ func (s *StringShape) Base() *BaseShape {
464
472
return s .BaseShape
465
473
}
466
474
475
+ func (s * StringShape ) cloneShallow (base * BaseShape ) Shape {
476
+ return s .clone (base , nil )
477
+ }
478
+
467
479
func (s * StringShape ) clone (base * BaseShape , _ map [int64 ]* BaseShape ) Shape {
468
480
c := * s
469
481
c .BaseShape = base
@@ -617,6 +629,10 @@ func (s *FileShape) Base() *BaseShape {
617
629
return s .BaseShape
618
630
}
619
631
632
+ func (s * FileShape ) cloneShallow (base * BaseShape ) Shape {
633
+ return s .clone (base , nil )
634
+ }
635
+
620
636
func (s * FileShape ) clone (base * BaseShape , _ map [int64 ]* BaseShape ) Shape {
621
637
c := * s
622
638
c .BaseShape = base
@@ -748,6 +764,10 @@ func (s *BooleanShape) Base() *BaseShape {
748
764
return s .BaseShape
749
765
}
750
766
767
+ func (s * BooleanShape ) cloneShallow (base * BaseShape ) Shape {
768
+ return s .clone (base , nil )
769
+ }
770
+
751
771
func (s * BooleanShape ) clone (base * BaseShape , _ map [int64 ]* BaseShape ) Shape {
752
772
c := * s
753
773
c .BaseShape = base
@@ -836,6 +856,10 @@ func (s *DateTimeShape) Base() *BaseShape {
836
856
return s .BaseShape
837
857
}
838
858
859
+ func (s * DateTimeShape ) cloneShallow (base * BaseShape ) Shape {
860
+ return s .clone (base , nil )
861
+ }
862
+
839
863
func (s * DateTimeShape ) clone (base * BaseShape , _ map [int64 ]* BaseShape ) Shape {
840
864
c := * s
841
865
c .BaseShape = base
@@ -925,6 +949,10 @@ func (s *DateTimeOnlyShape) Base() *BaseShape {
925
949
return s .BaseShape
926
950
}
927
951
952
+ func (s * DateTimeOnlyShape ) cloneShallow (base * BaseShape ) Shape {
953
+ return s .clone (base , nil )
954
+ }
955
+
928
956
func (s * DateTimeOnlyShape ) clone (base * BaseShape , _ map [int64 ]* BaseShape ) Shape {
929
957
c := * s
930
958
c .BaseShape = base
@@ -983,6 +1011,10 @@ func (s *DateOnlyShape) Base() *BaseShape {
983
1011
return s .BaseShape
984
1012
}
985
1013
1014
+ func (s * DateOnlyShape ) cloneShallow (base * BaseShape ) Shape {
1015
+ return s .clone (base , nil )
1016
+ }
1017
+
986
1018
func (s * DateOnlyShape ) clone (base * BaseShape , _ map [int64 ]* BaseShape ) Shape {
987
1019
c := * s
988
1020
c .BaseShape = base
@@ -1038,6 +1070,10 @@ func (s *TimeOnlyShape) Base() *BaseShape {
1038
1070
return s .BaseShape
1039
1071
}
1040
1072
1073
+ func (s * TimeOnlyShape ) cloneShallow (base * BaseShape ) Shape {
1074
+ return s .clone (base , nil )
1075
+ }
1076
+
1041
1077
func (s * TimeOnlyShape ) clone (base * BaseShape , _ map [int64 ]* BaseShape ) Shape {
1042
1078
c := * s
1043
1079
c .BaseShape = base
@@ -1096,6 +1132,10 @@ func (s *AnyShape) Base() *BaseShape {
1096
1132
return s .BaseShape
1097
1133
}
1098
1134
1135
+ func (s * AnyShape ) cloneShallow (base * BaseShape ) Shape {
1136
+ return s .clone (base , nil )
1137
+ }
1138
+
1099
1139
func (s * AnyShape ) clone (base * BaseShape , _ map [int64 ]* BaseShape ) Shape {
1100
1140
c := * s
1101
1141
c .BaseShape = base
@@ -1146,6 +1186,10 @@ func (s *NilShape) Base() *BaseShape {
1146
1186
return s .BaseShape
1147
1187
}
1148
1188
1189
+ func (s * NilShape ) cloneShallow (base * BaseShape ) Shape {
1190
+ return s .clone (base , nil )
1191
+ }
1192
+
1149
1193
func (s * NilShape ) clone (base * BaseShape , _ map [int64 ]* BaseShape ) Shape {
1150
1194
c := * s
1151
1195
c .BaseShape = base
0 commit comments