go-json/encode_optype.go

2930 lines
106 KiB
Go

// Code generated by cmd/generator. DO NOT EDIT!
package json
type codeType int
const (
codeOp codeType = 0
codeArrayHead codeType = 1
codeArrayElem codeType = 2
codeSliceHead codeType = 3
codeSliceElem codeType = 4
codeMapHead codeType = 5
codeMapKey codeType = 6
codeMapValue codeType = 7
codeStructFieldRecursive codeType = 8
codeStructField codeType = 9
)
type opType int
const (
opEnd opType = 0
opInterface opType = 1
opPtr opType = 2
opMarshalJSON opType = 3
opMarshalText opType = 4
opSliceHead opType = 5
opRootSliceHead opType = 6
opSliceElem opType = 7
opRootSliceElem opType = 8
opSliceEnd opType = 9
opArrayHead opType = 10
opArrayElem opType = 11
opArrayEnd opType = 12
opMapHead opType = 13
opMapHeadLoad opType = 14
opRootMapHead opType = 15
opMapKey opType = 16
opRootMapKey opType = 17
opMapValue opType = 18
opMapEnd opType = 19
opStructFieldHead opType = 20
opStructFieldHeadOmitEmpty opType = 21
opStructFieldAnonymousHead opType = 22
opStructFieldPtrHead opType = 23
opStructFieldPtrHeadOmitEmpty opType = 24
opStructFieldPtrAnonymousHead opType = 25
opStructField opType = 26
opStructFieldOmitEmpty opType = 27
opStructFieldRecursive opType = 28
opStructEnd opType = 29
opStructAnonymousEnd opType = 30
opInt opType = 31
opInt8 opType = 32
opInt16 opType = 33
opInt32 opType = 34
opInt64 opType = 35
opUint opType = 36
opUint8 opType = 37
opUint16 opType = 38
opUint32 opType = 39
opUint64 opType = 40
opFloat32 opType = 41
opFloat64 opType = 42
opBool opType = 43
opString opType = 44
opStructFieldHeadInt opType = 45
opStructFieldHeadInt8 opType = 46
opStructFieldHeadInt16 opType = 47
opStructFieldHeadInt32 opType = 48
opStructFieldHeadInt64 opType = 49
opStructFieldHeadUint opType = 50
opStructFieldHeadUint8 opType = 51
opStructFieldHeadUint16 opType = 52
opStructFieldHeadUint32 opType = 53
opStructFieldHeadUint64 opType = 54
opStructFieldHeadFloat32 opType = 55
opStructFieldHeadFloat64 opType = 56
opStructFieldHeadBool opType = 57
opStructFieldHeadString opType = 58
opStructFieldHeadOmitEmptyInt opType = 59
opStructFieldHeadOmitEmptyInt8 opType = 60
opStructFieldHeadOmitEmptyInt16 opType = 61
opStructFieldHeadOmitEmptyInt32 opType = 62
opStructFieldHeadOmitEmptyInt64 opType = 63
opStructFieldHeadOmitEmptyUint opType = 64
opStructFieldHeadOmitEmptyUint8 opType = 65
opStructFieldHeadOmitEmptyUint16 opType = 66
opStructFieldHeadOmitEmptyUint32 opType = 67
opStructFieldHeadOmitEmptyUint64 opType = 68
opStructFieldHeadOmitEmptyFloat32 opType = 69
opStructFieldHeadOmitEmptyFloat64 opType = 70
opStructFieldHeadOmitEmptyBool opType = 71
opStructFieldHeadOmitEmptyString opType = 72
opStructFieldAnonymousHeadInt opType = 73
opStructFieldAnonymousHeadInt8 opType = 74
opStructFieldAnonymousHeadInt16 opType = 75
opStructFieldAnonymousHeadInt32 opType = 76
opStructFieldAnonymousHeadInt64 opType = 77
opStructFieldAnonymousHeadUint opType = 78
opStructFieldAnonymousHeadUint8 opType = 79
opStructFieldAnonymousHeadUint16 opType = 80
opStructFieldAnonymousHeadUint32 opType = 81
opStructFieldAnonymousHeadUint64 opType = 82
opStructFieldAnonymousHeadFloat32 opType = 83
opStructFieldAnonymousHeadFloat64 opType = 84
opStructFieldAnonymousHeadBool opType = 85
opStructFieldAnonymousHeadString opType = 86
opStructFieldPtrHeadInt opType = 87
opStructFieldPtrHeadInt8 opType = 88
opStructFieldPtrHeadInt16 opType = 89
opStructFieldPtrHeadInt32 opType = 90
opStructFieldPtrHeadInt64 opType = 91
opStructFieldPtrHeadUint opType = 92
opStructFieldPtrHeadUint8 opType = 93
opStructFieldPtrHeadUint16 opType = 94
opStructFieldPtrHeadUint32 opType = 95
opStructFieldPtrHeadUint64 opType = 96
opStructFieldPtrHeadFloat32 opType = 97
opStructFieldPtrHeadFloat64 opType = 98
opStructFieldPtrHeadBool opType = 99
opStructFieldPtrHeadString opType = 100
opStructFieldPtrHeadOmitEmptyInt opType = 101
opStructFieldPtrHeadOmitEmptyInt8 opType = 102
opStructFieldPtrHeadOmitEmptyInt16 opType = 103
opStructFieldPtrHeadOmitEmptyInt32 opType = 104
opStructFieldPtrHeadOmitEmptyInt64 opType = 105
opStructFieldPtrHeadOmitEmptyUint opType = 106
opStructFieldPtrHeadOmitEmptyUint8 opType = 107
opStructFieldPtrHeadOmitEmptyUint16 opType = 108
opStructFieldPtrHeadOmitEmptyUint32 opType = 109
opStructFieldPtrHeadOmitEmptyUint64 opType = 110
opStructFieldPtrHeadOmitEmptyFloat32 opType = 111
opStructFieldPtrHeadOmitEmptyFloat64 opType = 112
opStructFieldPtrHeadOmitEmptyBool opType = 113
opStructFieldPtrHeadOmitEmptyString opType = 114
opStructFieldPtrAnonymousHeadInt opType = 115
opStructFieldPtrAnonymousHeadInt8 opType = 116
opStructFieldPtrAnonymousHeadInt16 opType = 117
opStructFieldPtrAnonymousHeadInt32 opType = 118
opStructFieldPtrAnonymousHeadInt64 opType = 119
opStructFieldPtrAnonymousHeadUint opType = 120
opStructFieldPtrAnonymousHeadUint8 opType = 121
opStructFieldPtrAnonymousHeadUint16 opType = 122
opStructFieldPtrAnonymousHeadUint32 opType = 123
opStructFieldPtrAnonymousHeadUint64 opType = 124
opStructFieldPtrAnonymousHeadFloat32 opType = 125
opStructFieldPtrAnonymousHeadFloat64 opType = 126
opStructFieldPtrAnonymousHeadBool opType = 127
opStructFieldPtrAnonymousHeadString opType = 128
opStructFieldInt opType = 129
opStructFieldInt8 opType = 130
opStructFieldInt16 opType = 131
opStructFieldInt32 opType = 132
opStructFieldInt64 opType = 133
opStructFieldUint opType = 134
opStructFieldUint8 opType = 135
opStructFieldUint16 opType = 136
opStructFieldUint32 opType = 137
opStructFieldUint64 opType = 138
opStructFieldFloat32 opType = 139
opStructFieldFloat64 opType = 140
opStructFieldBool opType = 141
opStructFieldString opType = 142
opStructFieldOmitEmptyInt opType = 143
opStructFieldOmitEmptyInt8 opType = 144
opStructFieldOmitEmptyInt16 opType = 145
opStructFieldOmitEmptyInt32 opType = 146
opStructFieldOmitEmptyInt64 opType = 147
opStructFieldOmitEmptyUint opType = 148
opStructFieldOmitEmptyUint8 opType = 149
opStructFieldOmitEmptyUint16 opType = 150
opStructFieldOmitEmptyUint32 opType = 151
opStructFieldOmitEmptyUint64 opType = 152
opStructFieldOmitEmptyFloat32 opType = 153
opStructFieldOmitEmptyFloat64 opType = 154
opStructFieldOmitEmptyBool opType = 155
opStructFieldOmitEmptyString opType = 156
opEndIndent opType = 157
opInterfaceIndent opType = 158
opPtrIndent opType = 159
opMarshalJSONIndent opType = 160
opMarshalTextIndent opType = 161
opSliceHeadIndent opType = 162
opRootSliceHeadIndent opType = 163
opSliceElemIndent opType = 164
opRootSliceElemIndent opType = 165
opSliceEndIndent opType = 166
opArrayHeadIndent opType = 167
opArrayElemIndent opType = 168
opArrayEndIndent opType = 169
opMapHeadIndent opType = 170
opMapHeadLoadIndent opType = 171
opRootMapHeadIndent opType = 172
opMapKeyIndent opType = 173
opRootMapKeyIndent opType = 174
opMapValueIndent opType = 175
opMapEndIndent opType = 176
opStructFieldHeadIndent opType = 177
opStructFieldHeadOmitEmptyIndent opType = 178
opStructFieldAnonymousHeadIndent opType = 179
opStructFieldPtrHeadIndent opType = 180
opStructFieldPtrHeadOmitEmptyIndent opType = 181
opStructFieldPtrAnonymousHeadIndent opType = 182
opStructFieldIndent opType = 183
opStructFieldOmitEmptyIndent opType = 184
opStructFieldRecursiveIndent opType = 185
opStructEndIndent opType = 186
opStructAnonymousEndIndent opType = 187
opIntIndent opType = 188
opInt8Indent opType = 189
opInt16Indent opType = 190
opInt32Indent opType = 191
opInt64Indent opType = 192
opUintIndent opType = 193
opUint8Indent opType = 194
opUint16Indent opType = 195
opUint32Indent opType = 196
opUint64Indent opType = 197
opFloat32Indent opType = 198
opFloat64Indent opType = 199
opBoolIndent opType = 200
opStringIndent opType = 201
opStructFieldHeadIntIndent opType = 202
opStructFieldHeadInt8Indent opType = 203
opStructFieldHeadInt16Indent opType = 204
opStructFieldHeadInt32Indent opType = 205
opStructFieldHeadInt64Indent opType = 206
opStructFieldHeadUintIndent opType = 207
opStructFieldHeadUint8Indent opType = 208
opStructFieldHeadUint16Indent opType = 209
opStructFieldHeadUint32Indent opType = 210
opStructFieldHeadUint64Indent opType = 211
opStructFieldHeadFloat32Indent opType = 212
opStructFieldHeadFloat64Indent opType = 213
opStructFieldHeadBoolIndent opType = 214
opStructFieldHeadStringIndent opType = 215
opStructFieldHeadOmitEmptyIntIndent opType = 216
opStructFieldHeadOmitEmptyInt8Indent opType = 217
opStructFieldHeadOmitEmptyInt16Indent opType = 218
opStructFieldHeadOmitEmptyInt32Indent opType = 219
opStructFieldHeadOmitEmptyInt64Indent opType = 220
opStructFieldHeadOmitEmptyUintIndent opType = 221
opStructFieldHeadOmitEmptyUint8Indent opType = 222
opStructFieldHeadOmitEmptyUint16Indent opType = 223
opStructFieldHeadOmitEmptyUint32Indent opType = 224
opStructFieldHeadOmitEmptyUint64Indent opType = 225
opStructFieldHeadOmitEmptyFloat32Indent opType = 226
opStructFieldHeadOmitEmptyFloat64Indent opType = 227
opStructFieldHeadOmitEmptyBoolIndent opType = 228
opStructFieldHeadOmitEmptyStringIndent opType = 229
opStructFieldAnonymousHeadIntIndent opType = 230
opStructFieldAnonymousHeadInt8Indent opType = 231
opStructFieldAnonymousHeadInt16Indent opType = 232
opStructFieldAnonymousHeadInt32Indent opType = 233
opStructFieldAnonymousHeadInt64Indent opType = 234
opStructFieldAnonymousHeadUintIndent opType = 235
opStructFieldAnonymousHeadUint8Indent opType = 236
opStructFieldAnonymousHeadUint16Indent opType = 237
opStructFieldAnonymousHeadUint32Indent opType = 238
opStructFieldAnonymousHeadUint64Indent opType = 239
opStructFieldAnonymousHeadFloat32Indent opType = 240
opStructFieldAnonymousHeadFloat64Indent opType = 241
opStructFieldAnonymousHeadBoolIndent opType = 242
opStructFieldAnonymousHeadStringIndent opType = 243
opStructFieldPtrHeadIntIndent opType = 244
opStructFieldPtrHeadInt8Indent opType = 245
opStructFieldPtrHeadInt16Indent opType = 246
opStructFieldPtrHeadInt32Indent opType = 247
opStructFieldPtrHeadInt64Indent opType = 248
opStructFieldPtrHeadUintIndent opType = 249
opStructFieldPtrHeadUint8Indent opType = 250
opStructFieldPtrHeadUint16Indent opType = 251
opStructFieldPtrHeadUint32Indent opType = 252
opStructFieldPtrHeadUint64Indent opType = 253
opStructFieldPtrHeadFloat32Indent opType = 254
opStructFieldPtrHeadFloat64Indent opType = 255
opStructFieldPtrHeadBoolIndent opType = 256
opStructFieldPtrHeadStringIndent opType = 257
opStructFieldPtrHeadOmitEmptyIntIndent opType = 258
opStructFieldPtrHeadOmitEmptyInt8Indent opType = 259
opStructFieldPtrHeadOmitEmptyInt16Indent opType = 260
opStructFieldPtrHeadOmitEmptyInt32Indent opType = 261
opStructFieldPtrHeadOmitEmptyInt64Indent opType = 262
opStructFieldPtrHeadOmitEmptyUintIndent opType = 263
opStructFieldPtrHeadOmitEmptyUint8Indent opType = 264
opStructFieldPtrHeadOmitEmptyUint16Indent opType = 265
opStructFieldPtrHeadOmitEmptyUint32Indent opType = 266
opStructFieldPtrHeadOmitEmptyUint64Indent opType = 267
opStructFieldPtrHeadOmitEmptyFloat32Indent opType = 268
opStructFieldPtrHeadOmitEmptyFloat64Indent opType = 269
opStructFieldPtrHeadOmitEmptyBoolIndent opType = 270
opStructFieldPtrHeadOmitEmptyStringIndent opType = 271
opStructFieldPtrAnonymousHeadIntIndent opType = 272
opStructFieldPtrAnonymousHeadInt8Indent opType = 273
opStructFieldPtrAnonymousHeadInt16Indent opType = 274
opStructFieldPtrAnonymousHeadInt32Indent opType = 275
opStructFieldPtrAnonymousHeadInt64Indent opType = 276
opStructFieldPtrAnonymousHeadUintIndent opType = 277
opStructFieldPtrAnonymousHeadUint8Indent opType = 278
opStructFieldPtrAnonymousHeadUint16Indent opType = 279
opStructFieldPtrAnonymousHeadUint32Indent opType = 280
opStructFieldPtrAnonymousHeadUint64Indent opType = 281
opStructFieldPtrAnonymousHeadFloat32Indent opType = 282
opStructFieldPtrAnonymousHeadFloat64Indent opType = 283
opStructFieldPtrAnonymousHeadBoolIndent opType = 284
opStructFieldPtrAnonymousHeadStringIndent opType = 285
opStructFieldIntIndent opType = 286
opStructFieldInt8Indent opType = 287
opStructFieldInt16Indent opType = 288
opStructFieldInt32Indent opType = 289
opStructFieldInt64Indent opType = 290
opStructFieldUintIndent opType = 291
opStructFieldUint8Indent opType = 292
opStructFieldUint16Indent opType = 293
opStructFieldUint32Indent opType = 294
opStructFieldUint64Indent opType = 295
opStructFieldFloat32Indent opType = 296
opStructFieldFloat64Indent opType = 297
opStructFieldBoolIndent opType = 298
opStructFieldStringIndent opType = 299
opStructFieldOmitEmptyIntIndent opType = 300
opStructFieldOmitEmptyInt8Indent opType = 301
opStructFieldOmitEmptyInt16Indent opType = 302
opStructFieldOmitEmptyInt32Indent opType = 303
opStructFieldOmitEmptyInt64Indent opType = 304
opStructFieldOmitEmptyUintIndent opType = 305
opStructFieldOmitEmptyUint8Indent opType = 306
opStructFieldOmitEmptyUint16Indent opType = 307
opStructFieldOmitEmptyUint32Indent opType = 308
opStructFieldOmitEmptyUint64Indent opType = 309
opStructFieldOmitEmptyFloat32Indent opType = 310
opStructFieldOmitEmptyFloat64Indent opType = 311
opStructFieldOmitEmptyBoolIndent opType = 312
opStructFieldOmitEmptyStringIndent opType = 313
)
func (t opType) String() string {
switch t {
case opEnd:
return "End"
case opInterface:
return "Interface"
case opPtr:
return "Ptr"
case opMarshalJSON:
return "MarshalJSON"
case opMarshalText:
return "MarshalText"
case opSliceHead:
return "SliceHead"
case opRootSliceHead:
return "RootSliceHead"
case opSliceElem:
return "SliceElem"
case opRootSliceElem:
return "RootSliceElem"
case opSliceEnd:
return "SliceEnd"
case opArrayHead:
return "ArrayHead"
case opArrayElem:
return "ArrayElem"
case opArrayEnd:
return "ArrayEnd"
case opMapHead:
return "MapHead"
case opMapHeadLoad:
return "MapHeadLoad"
case opRootMapHead:
return "RootMapHead"
case opMapKey:
return "MapKey"
case opRootMapKey:
return "RootMapKey"
case opMapValue:
return "MapValue"
case opMapEnd:
return "MapEnd"
case opStructFieldHead:
return "StructFieldHead"
case opStructFieldHeadOmitEmpty:
return "StructFieldHeadOmitEmpty"
case opStructFieldAnonymousHead:
return "StructFieldAnonymousHead"
case opStructFieldPtrHead:
return "StructFieldPtrHead"
case opStructFieldPtrHeadOmitEmpty:
return "StructFieldPtrHeadOmitEmpty"
case opStructFieldPtrAnonymousHead:
return "StructFieldPtrAnonymousHead"
case opStructField:
return "StructField"
case opStructFieldOmitEmpty:
return "StructFieldOmitEmpty"
case opStructFieldRecursive:
return "StructFieldRecursive"
case opStructEnd:
return "StructEnd"
case opStructAnonymousEnd:
return "StructAnonymousEnd"
case opInt:
return "Int"
case opInt8:
return "Int8"
case opInt16:
return "Int16"
case opInt32:
return "Int32"
case opInt64:
return "Int64"
case opUint:
return "Uint"
case opUint8:
return "Uint8"
case opUint16:
return "Uint16"
case opUint32:
return "Uint32"
case opUint64:
return "Uint64"
case opFloat32:
return "Float32"
case opFloat64:
return "Float64"
case opBool:
return "Bool"
case opString:
return "String"
case opStructFieldHeadInt:
return "StructFieldHeadInt"
case opStructFieldHeadInt8:
return "StructFieldHeadInt8"
case opStructFieldHeadInt16:
return "StructFieldHeadInt16"
case opStructFieldHeadInt32:
return "StructFieldHeadInt32"
case opStructFieldHeadInt64:
return "StructFieldHeadInt64"
case opStructFieldHeadUint:
return "StructFieldHeadUint"
case opStructFieldHeadUint8:
return "StructFieldHeadUint8"
case opStructFieldHeadUint16:
return "StructFieldHeadUint16"
case opStructFieldHeadUint32:
return "StructFieldHeadUint32"
case opStructFieldHeadUint64:
return "StructFieldHeadUint64"
case opStructFieldHeadFloat32:
return "StructFieldHeadFloat32"
case opStructFieldHeadFloat64:
return "StructFieldHeadFloat64"
case opStructFieldHeadBool:
return "StructFieldHeadBool"
case opStructFieldHeadString:
return "StructFieldHeadString"
case opStructFieldHeadOmitEmptyInt:
return "StructFieldHeadOmitEmptyInt"
case opStructFieldHeadOmitEmptyInt8:
return "StructFieldHeadOmitEmptyInt8"
case opStructFieldHeadOmitEmptyInt16:
return "StructFieldHeadOmitEmptyInt16"
case opStructFieldHeadOmitEmptyInt32:
return "StructFieldHeadOmitEmptyInt32"
case opStructFieldHeadOmitEmptyInt64:
return "StructFieldHeadOmitEmptyInt64"
case opStructFieldHeadOmitEmptyUint:
return "StructFieldHeadOmitEmptyUint"
case opStructFieldHeadOmitEmptyUint8:
return "StructFieldHeadOmitEmptyUint8"
case opStructFieldHeadOmitEmptyUint16:
return "StructFieldHeadOmitEmptyUint16"
case opStructFieldHeadOmitEmptyUint32:
return "StructFieldHeadOmitEmptyUint32"
case opStructFieldHeadOmitEmptyUint64:
return "StructFieldHeadOmitEmptyUint64"
case opStructFieldHeadOmitEmptyFloat32:
return "StructFieldHeadOmitEmptyFloat32"
case opStructFieldHeadOmitEmptyFloat64:
return "StructFieldHeadOmitEmptyFloat64"
case opStructFieldHeadOmitEmptyBool:
return "StructFieldHeadOmitEmptyBool"
case opStructFieldHeadOmitEmptyString:
return "StructFieldHeadOmitEmptyString"
case opStructFieldAnonymousHeadInt:
return "StructFieldAnonymousHeadInt"
case opStructFieldAnonymousHeadInt8:
return "StructFieldAnonymousHeadInt8"
case opStructFieldAnonymousHeadInt16:
return "StructFieldAnonymousHeadInt16"
case opStructFieldAnonymousHeadInt32:
return "StructFieldAnonymousHeadInt32"
case opStructFieldAnonymousHeadInt64:
return "StructFieldAnonymousHeadInt64"
case opStructFieldAnonymousHeadUint:
return "StructFieldAnonymousHeadUint"
case opStructFieldAnonymousHeadUint8:
return "StructFieldAnonymousHeadUint8"
case opStructFieldAnonymousHeadUint16:
return "StructFieldAnonymousHeadUint16"
case opStructFieldAnonymousHeadUint32:
return "StructFieldAnonymousHeadUint32"
case opStructFieldAnonymousHeadUint64:
return "StructFieldAnonymousHeadUint64"
case opStructFieldAnonymousHeadFloat32:
return "StructFieldAnonymousHeadFloat32"
case opStructFieldAnonymousHeadFloat64:
return "StructFieldAnonymousHeadFloat64"
case opStructFieldAnonymousHeadBool:
return "StructFieldAnonymousHeadBool"
case opStructFieldAnonymousHeadString:
return "StructFieldAnonymousHeadString"
case opStructFieldPtrHeadInt:
return "StructFieldPtrHeadInt"
case opStructFieldPtrHeadInt8:
return "StructFieldPtrHeadInt8"
case opStructFieldPtrHeadInt16:
return "StructFieldPtrHeadInt16"
case opStructFieldPtrHeadInt32:
return "StructFieldPtrHeadInt32"
case opStructFieldPtrHeadInt64:
return "StructFieldPtrHeadInt64"
case opStructFieldPtrHeadUint:
return "StructFieldPtrHeadUint"
case opStructFieldPtrHeadUint8:
return "StructFieldPtrHeadUint8"
case opStructFieldPtrHeadUint16:
return "StructFieldPtrHeadUint16"
case opStructFieldPtrHeadUint32:
return "StructFieldPtrHeadUint32"
case opStructFieldPtrHeadUint64:
return "StructFieldPtrHeadUint64"
case opStructFieldPtrHeadFloat32:
return "StructFieldPtrHeadFloat32"
case opStructFieldPtrHeadFloat64:
return "StructFieldPtrHeadFloat64"
case opStructFieldPtrHeadBool:
return "StructFieldPtrHeadBool"
case opStructFieldPtrHeadString:
return "StructFieldPtrHeadString"
case opStructFieldPtrHeadOmitEmptyInt:
return "StructFieldPtrHeadOmitEmptyInt"
case opStructFieldPtrHeadOmitEmptyInt8:
return "StructFieldPtrHeadOmitEmptyInt8"
case opStructFieldPtrHeadOmitEmptyInt16:
return "StructFieldPtrHeadOmitEmptyInt16"
case opStructFieldPtrHeadOmitEmptyInt32:
return "StructFieldPtrHeadOmitEmptyInt32"
case opStructFieldPtrHeadOmitEmptyInt64:
return "StructFieldPtrHeadOmitEmptyInt64"
case opStructFieldPtrHeadOmitEmptyUint:
return "StructFieldPtrHeadOmitEmptyUint"
case opStructFieldPtrHeadOmitEmptyUint8:
return "StructFieldPtrHeadOmitEmptyUint8"
case opStructFieldPtrHeadOmitEmptyUint16:
return "StructFieldPtrHeadOmitEmptyUint16"
case opStructFieldPtrHeadOmitEmptyUint32:
return "StructFieldPtrHeadOmitEmptyUint32"
case opStructFieldPtrHeadOmitEmptyUint64:
return "StructFieldPtrHeadOmitEmptyUint64"
case opStructFieldPtrHeadOmitEmptyFloat32:
return "StructFieldPtrHeadOmitEmptyFloat32"
case opStructFieldPtrHeadOmitEmptyFloat64:
return "StructFieldPtrHeadOmitEmptyFloat64"
case opStructFieldPtrHeadOmitEmptyBool:
return "StructFieldPtrHeadOmitEmptyBool"
case opStructFieldPtrHeadOmitEmptyString:
return "StructFieldPtrHeadOmitEmptyString"
case opStructFieldPtrAnonymousHeadInt:
return "StructFieldPtrAnonymousHeadInt"
case opStructFieldPtrAnonymousHeadInt8:
return "StructFieldPtrAnonymousHeadInt8"
case opStructFieldPtrAnonymousHeadInt16:
return "StructFieldPtrAnonymousHeadInt16"
case opStructFieldPtrAnonymousHeadInt32:
return "StructFieldPtrAnonymousHeadInt32"
case opStructFieldPtrAnonymousHeadInt64:
return "StructFieldPtrAnonymousHeadInt64"
case opStructFieldPtrAnonymousHeadUint:
return "StructFieldPtrAnonymousHeadUint"
case opStructFieldPtrAnonymousHeadUint8:
return "StructFieldPtrAnonymousHeadUint8"
case opStructFieldPtrAnonymousHeadUint16:
return "StructFieldPtrAnonymousHeadUint16"
case opStructFieldPtrAnonymousHeadUint32:
return "StructFieldPtrAnonymousHeadUint32"
case opStructFieldPtrAnonymousHeadUint64:
return "StructFieldPtrAnonymousHeadUint64"
case opStructFieldPtrAnonymousHeadFloat32:
return "StructFieldPtrAnonymousHeadFloat32"
case opStructFieldPtrAnonymousHeadFloat64:
return "StructFieldPtrAnonymousHeadFloat64"
case opStructFieldPtrAnonymousHeadBool:
return "StructFieldPtrAnonymousHeadBool"
case opStructFieldPtrAnonymousHeadString:
return "StructFieldPtrAnonymousHeadString"
case opStructFieldInt:
return "StructFieldInt"
case opStructFieldInt8:
return "StructFieldInt8"
case opStructFieldInt16:
return "StructFieldInt16"
case opStructFieldInt32:
return "StructFieldInt32"
case opStructFieldInt64:
return "StructFieldInt64"
case opStructFieldUint:
return "StructFieldUint"
case opStructFieldUint8:
return "StructFieldUint8"
case opStructFieldUint16:
return "StructFieldUint16"
case opStructFieldUint32:
return "StructFieldUint32"
case opStructFieldUint64:
return "StructFieldUint64"
case opStructFieldFloat32:
return "StructFieldFloat32"
case opStructFieldFloat64:
return "StructFieldFloat64"
case opStructFieldBool:
return "StructFieldBool"
case opStructFieldString:
return "StructFieldString"
case opStructFieldOmitEmptyInt:
return "StructFieldOmitEmptyInt"
case opStructFieldOmitEmptyInt8:
return "StructFieldOmitEmptyInt8"
case opStructFieldOmitEmptyInt16:
return "StructFieldOmitEmptyInt16"
case opStructFieldOmitEmptyInt32:
return "StructFieldOmitEmptyInt32"
case opStructFieldOmitEmptyInt64:
return "StructFieldOmitEmptyInt64"
case opStructFieldOmitEmptyUint:
return "StructFieldOmitEmptyUint"
case opStructFieldOmitEmptyUint8:
return "StructFieldOmitEmptyUint8"
case opStructFieldOmitEmptyUint16:
return "StructFieldOmitEmptyUint16"
case opStructFieldOmitEmptyUint32:
return "StructFieldOmitEmptyUint32"
case opStructFieldOmitEmptyUint64:
return "StructFieldOmitEmptyUint64"
case opStructFieldOmitEmptyFloat32:
return "StructFieldOmitEmptyFloat32"
case opStructFieldOmitEmptyFloat64:
return "StructFieldOmitEmptyFloat64"
case opStructFieldOmitEmptyBool:
return "StructFieldOmitEmptyBool"
case opStructFieldOmitEmptyString:
return "StructFieldOmitEmptyString"
case opEndIndent:
return "EndIndent"
case opInterfaceIndent:
return "InterfaceIndent"
case opPtrIndent:
return "PtrIndent"
case opMarshalJSONIndent:
return "MarshalJSONIndent"
case opMarshalTextIndent:
return "MarshalTextIndent"
case opSliceHeadIndent:
return "SliceHeadIndent"
case opRootSliceHeadIndent:
return "RootSliceHeadIndent"
case opSliceElemIndent:
return "SliceElemIndent"
case opRootSliceElemIndent:
return "RootSliceElemIndent"
case opSliceEndIndent:
return "SliceEndIndent"
case opArrayHeadIndent:
return "ArrayHeadIndent"
case opArrayElemIndent:
return "ArrayElemIndent"
case opArrayEndIndent:
return "ArrayEndIndent"
case opMapHeadIndent:
return "MapHeadIndent"
case opMapHeadLoadIndent:
return "MapHeadLoadIndent"
case opRootMapHeadIndent:
return "RootMapHeadIndent"
case opMapKeyIndent:
return "MapKeyIndent"
case opRootMapKeyIndent:
return "RootMapKeyIndent"
case opMapValueIndent:
return "MapValueIndent"
case opMapEndIndent:
return "MapEndIndent"
case opStructFieldHeadIndent:
return "StructFieldHeadIndent"
case opStructFieldHeadOmitEmptyIndent:
return "StructFieldHeadOmitEmptyIndent"
case opStructFieldAnonymousHeadIndent:
return "StructFieldAnonymousHeadIndent"
case opStructFieldPtrHeadIndent:
return "StructFieldPtrHeadIndent"
case opStructFieldPtrHeadOmitEmptyIndent:
return "StructFieldPtrHeadOmitEmptyIndent"
case opStructFieldPtrAnonymousHeadIndent:
return "StructFieldPtrAnonymousHeadIndent"
case opStructFieldIndent:
return "StructFieldIndent"
case opStructFieldOmitEmptyIndent:
return "StructFieldOmitEmptyIndent"
case opStructFieldRecursiveIndent:
return "StructFieldRecursiveIndent"
case opStructEndIndent:
return "StructEndIndent"
case opStructAnonymousEndIndent:
return "StructAnonymousEndIndent"
case opIntIndent:
return "IntIndent"
case opInt8Indent:
return "Int8Indent"
case opInt16Indent:
return "Int16Indent"
case opInt32Indent:
return "Int32Indent"
case opInt64Indent:
return "Int64Indent"
case opUintIndent:
return "UintIndent"
case opUint8Indent:
return "Uint8Indent"
case opUint16Indent:
return "Uint16Indent"
case opUint32Indent:
return "Uint32Indent"
case opUint64Indent:
return "Uint64Indent"
case opFloat32Indent:
return "Float32Indent"
case opFloat64Indent:
return "Float64Indent"
case opBoolIndent:
return "BoolIndent"
case opStringIndent:
return "StringIndent"
case opStructFieldHeadIntIndent:
return "StructFieldHeadIntIndent"
case opStructFieldHeadInt8Indent:
return "StructFieldHeadInt8Indent"
case opStructFieldHeadInt16Indent:
return "StructFieldHeadInt16Indent"
case opStructFieldHeadInt32Indent:
return "StructFieldHeadInt32Indent"
case opStructFieldHeadInt64Indent:
return "StructFieldHeadInt64Indent"
case opStructFieldHeadUintIndent:
return "StructFieldHeadUintIndent"
case opStructFieldHeadUint8Indent:
return "StructFieldHeadUint8Indent"
case opStructFieldHeadUint16Indent:
return "StructFieldHeadUint16Indent"
case opStructFieldHeadUint32Indent:
return "StructFieldHeadUint32Indent"
case opStructFieldHeadUint64Indent:
return "StructFieldHeadUint64Indent"
case opStructFieldHeadFloat32Indent:
return "StructFieldHeadFloat32Indent"
case opStructFieldHeadFloat64Indent:
return "StructFieldHeadFloat64Indent"
case opStructFieldHeadBoolIndent:
return "StructFieldHeadBoolIndent"
case opStructFieldHeadStringIndent:
return "StructFieldHeadStringIndent"
case opStructFieldHeadOmitEmptyIntIndent:
return "StructFieldHeadOmitEmptyIntIndent"
case opStructFieldHeadOmitEmptyInt8Indent:
return "StructFieldHeadOmitEmptyInt8Indent"
case opStructFieldHeadOmitEmptyInt16Indent:
return "StructFieldHeadOmitEmptyInt16Indent"
case opStructFieldHeadOmitEmptyInt32Indent:
return "StructFieldHeadOmitEmptyInt32Indent"
case opStructFieldHeadOmitEmptyInt64Indent:
return "StructFieldHeadOmitEmptyInt64Indent"
case opStructFieldHeadOmitEmptyUintIndent:
return "StructFieldHeadOmitEmptyUintIndent"
case opStructFieldHeadOmitEmptyUint8Indent:
return "StructFieldHeadOmitEmptyUint8Indent"
case opStructFieldHeadOmitEmptyUint16Indent:
return "StructFieldHeadOmitEmptyUint16Indent"
case opStructFieldHeadOmitEmptyUint32Indent:
return "StructFieldHeadOmitEmptyUint32Indent"
case opStructFieldHeadOmitEmptyUint64Indent:
return "StructFieldHeadOmitEmptyUint64Indent"
case opStructFieldHeadOmitEmptyFloat32Indent:
return "StructFieldHeadOmitEmptyFloat32Indent"
case opStructFieldHeadOmitEmptyFloat64Indent:
return "StructFieldHeadOmitEmptyFloat64Indent"
case opStructFieldHeadOmitEmptyBoolIndent:
return "StructFieldHeadOmitEmptyBoolIndent"
case opStructFieldHeadOmitEmptyStringIndent:
return "StructFieldHeadOmitEmptyStringIndent"
case opStructFieldAnonymousHeadIntIndent:
return "StructFieldAnonymousHeadIntIndent"
case opStructFieldAnonymousHeadInt8Indent:
return "StructFieldAnonymousHeadInt8Indent"
case opStructFieldAnonymousHeadInt16Indent:
return "StructFieldAnonymousHeadInt16Indent"
case opStructFieldAnonymousHeadInt32Indent:
return "StructFieldAnonymousHeadInt32Indent"
case opStructFieldAnonymousHeadInt64Indent:
return "StructFieldAnonymousHeadInt64Indent"
case opStructFieldAnonymousHeadUintIndent:
return "StructFieldAnonymousHeadUintIndent"
case opStructFieldAnonymousHeadUint8Indent:
return "StructFieldAnonymousHeadUint8Indent"
case opStructFieldAnonymousHeadUint16Indent:
return "StructFieldAnonymousHeadUint16Indent"
case opStructFieldAnonymousHeadUint32Indent:
return "StructFieldAnonymousHeadUint32Indent"
case opStructFieldAnonymousHeadUint64Indent:
return "StructFieldAnonymousHeadUint64Indent"
case opStructFieldAnonymousHeadFloat32Indent:
return "StructFieldAnonymousHeadFloat32Indent"
case opStructFieldAnonymousHeadFloat64Indent:
return "StructFieldAnonymousHeadFloat64Indent"
case opStructFieldAnonymousHeadBoolIndent:
return "StructFieldAnonymousHeadBoolIndent"
case opStructFieldAnonymousHeadStringIndent:
return "StructFieldAnonymousHeadStringIndent"
case opStructFieldPtrHeadIntIndent:
return "StructFieldPtrHeadIntIndent"
case opStructFieldPtrHeadInt8Indent:
return "StructFieldPtrHeadInt8Indent"
case opStructFieldPtrHeadInt16Indent:
return "StructFieldPtrHeadInt16Indent"
case opStructFieldPtrHeadInt32Indent:
return "StructFieldPtrHeadInt32Indent"
case opStructFieldPtrHeadInt64Indent:
return "StructFieldPtrHeadInt64Indent"
case opStructFieldPtrHeadUintIndent:
return "StructFieldPtrHeadUintIndent"
case opStructFieldPtrHeadUint8Indent:
return "StructFieldPtrHeadUint8Indent"
case opStructFieldPtrHeadUint16Indent:
return "StructFieldPtrHeadUint16Indent"
case opStructFieldPtrHeadUint32Indent:
return "StructFieldPtrHeadUint32Indent"
case opStructFieldPtrHeadUint64Indent:
return "StructFieldPtrHeadUint64Indent"
case opStructFieldPtrHeadFloat32Indent:
return "StructFieldPtrHeadFloat32Indent"
case opStructFieldPtrHeadFloat64Indent:
return "StructFieldPtrHeadFloat64Indent"
case opStructFieldPtrHeadBoolIndent:
return "StructFieldPtrHeadBoolIndent"
case opStructFieldPtrHeadStringIndent:
return "StructFieldPtrHeadStringIndent"
case opStructFieldPtrHeadOmitEmptyIntIndent:
return "StructFieldPtrHeadOmitEmptyIntIndent"
case opStructFieldPtrHeadOmitEmptyInt8Indent:
return "StructFieldPtrHeadOmitEmptyInt8Indent"
case opStructFieldPtrHeadOmitEmptyInt16Indent:
return "StructFieldPtrHeadOmitEmptyInt16Indent"
case opStructFieldPtrHeadOmitEmptyInt32Indent:
return "StructFieldPtrHeadOmitEmptyInt32Indent"
case opStructFieldPtrHeadOmitEmptyInt64Indent:
return "StructFieldPtrHeadOmitEmptyInt64Indent"
case opStructFieldPtrHeadOmitEmptyUintIndent:
return "StructFieldPtrHeadOmitEmptyUintIndent"
case opStructFieldPtrHeadOmitEmptyUint8Indent:
return "StructFieldPtrHeadOmitEmptyUint8Indent"
case opStructFieldPtrHeadOmitEmptyUint16Indent:
return "StructFieldPtrHeadOmitEmptyUint16Indent"
case opStructFieldPtrHeadOmitEmptyUint32Indent:
return "StructFieldPtrHeadOmitEmptyUint32Indent"
case opStructFieldPtrHeadOmitEmptyUint64Indent:
return "StructFieldPtrHeadOmitEmptyUint64Indent"
case opStructFieldPtrHeadOmitEmptyFloat32Indent:
return "StructFieldPtrHeadOmitEmptyFloat32Indent"
case opStructFieldPtrHeadOmitEmptyFloat64Indent:
return "StructFieldPtrHeadOmitEmptyFloat64Indent"
case opStructFieldPtrHeadOmitEmptyBoolIndent:
return "StructFieldPtrHeadOmitEmptyBoolIndent"
case opStructFieldPtrHeadOmitEmptyStringIndent:
return "StructFieldPtrHeadOmitEmptyStringIndent"
case opStructFieldPtrAnonymousHeadIntIndent:
return "StructFieldPtrAnonymousHeadIntIndent"
case opStructFieldPtrAnonymousHeadInt8Indent:
return "StructFieldPtrAnonymousHeadInt8Indent"
case opStructFieldPtrAnonymousHeadInt16Indent:
return "StructFieldPtrAnonymousHeadInt16Indent"
case opStructFieldPtrAnonymousHeadInt32Indent:
return "StructFieldPtrAnonymousHeadInt32Indent"
case opStructFieldPtrAnonymousHeadInt64Indent:
return "StructFieldPtrAnonymousHeadInt64Indent"
case opStructFieldPtrAnonymousHeadUintIndent:
return "StructFieldPtrAnonymousHeadUintIndent"
case opStructFieldPtrAnonymousHeadUint8Indent:
return "StructFieldPtrAnonymousHeadUint8Indent"
case opStructFieldPtrAnonymousHeadUint16Indent:
return "StructFieldPtrAnonymousHeadUint16Indent"
case opStructFieldPtrAnonymousHeadUint32Indent:
return "StructFieldPtrAnonymousHeadUint32Indent"
case opStructFieldPtrAnonymousHeadUint64Indent:
return "StructFieldPtrAnonymousHeadUint64Indent"
case opStructFieldPtrAnonymousHeadFloat32Indent:
return "StructFieldPtrAnonymousHeadFloat32Indent"
case opStructFieldPtrAnonymousHeadFloat64Indent:
return "StructFieldPtrAnonymousHeadFloat64Indent"
case opStructFieldPtrAnonymousHeadBoolIndent:
return "StructFieldPtrAnonymousHeadBoolIndent"
case opStructFieldPtrAnonymousHeadStringIndent:
return "StructFieldPtrAnonymousHeadStringIndent"
case opStructFieldIntIndent:
return "StructFieldIntIndent"
case opStructFieldInt8Indent:
return "StructFieldInt8Indent"
case opStructFieldInt16Indent:
return "StructFieldInt16Indent"
case opStructFieldInt32Indent:
return "StructFieldInt32Indent"
case opStructFieldInt64Indent:
return "StructFieldInt64Indent"
case opStructFieldUintIndent:
return "StructFieldUintIndent"
case opStructFieldUint8Indent:
return "StructFieldUint8Indent"
case opStructFieldUint16Indent:
return "StructFieldUint16Indent"
case opStructFieldUint32Indent:
return "StructFieldUint32Indent"
case opStructFieldUint64Indent:
return "StructFieldUint64Indent"
case opStructFieldFloat32Indent:
return "StructFieldFloat32Indent"
case opStructFieldFloat64Indent:
return "StructFieldFloat64Indent"
case opStructFieldBoolIndent:
return "StructFieldBoolIndent"
case opStructFieldStringIndent:
return "StructFieldStringIndent"
case opStructFieldOmitEmptyIntIndent:
return "StructFieldOmitEmptyIntIndent"
case opStructFieldOmitEmptyInt8Indent:
return "StructFieldOmitEmptyInt8Indent"
case opStructFieldOmitEmptyInt16Indent:
return "StructFieldOmitEmptyInt16Indent"
case opStructFieldOmitEmptyInt32Indent:
return "StructFieldOmitEmptyInt32Indent"
case opStructFieldOmitEmptyInt64Indent:
return "StructFieldOmitEmptyInt64Indent"
case opStructFieldOmitEmptyUintIndent:
return "StructFieldOmitEmptyUintIndent"
case opStructFieldOmitEmptyUint8Indent:
return "StructFieldOmitEmptyUint8Indent"
case opStructFieldOmitEmptyUint16Indent:
return "StructFieldOmitEmptyUint16Indent"
case opStructFieldOmitEmptyUint32Indent:
return "StructFieldOmitEmptyUint32Indent"
case opStructFieldOmitEmptyUint64Indent:
return "StructFieldOmitEmptyUint64Indent"
case opStructFieldOmitEmptyFloat32Indent:
return "StructFieldOmitEmptyFloat32Indent"
case opStructFieldOmitEmptyFloat64Indent:
return "StructFieldOmitEmptyFloat64Indent"
case opStructFieldOmitEmptyBoolIndent:
return "StructFieldOmitEmptyBoolIndent"
case opStructFieldOmitEmptyStringIndent:
return "StructFieldOmitEmptyStringIndent"
}
return ""
}
func (t opType) codeType() codeType {
switch t {
case opEnd:
return codeOp
case opInterface:
return codeOp
case opPtr:
return codeOp
case opMarshalJSON:
return codeOp
case opMarshalText:
return codeOp
case opSliceHead:
return codeSliceHead
case opRootSliceHead:
return codeSliceHead
case opSliceElem:
return codeSliceElem
case opRootSliceElem:
return codeSliceElem
case opSliceEnd:
return codeOp
case opArrayHead:
return codeArrayHead
case opArrayElem:
return codeArrayElem
case opArrayEnd:
return codeOp
case opMapHead:
return codeMapHead
case opMapHeadLoad:
return codeMapHead
case opRootMapHead:
return codeMapHead
case opMapKey:
return codeMapKey
case opRootMapKey:
return codeMapKey
case opMapValue:
return codeMapValue
case opMapEnd:
return codeOp
case opStructFieldHead:
return codeStructField
case opStructFieldHeadOmitEmpty:
return codeStructField
case opStructFieldAnonymousHead:
return codeStructField
case opStructFieldPtrHead:
return codeStructField
case opStructFieldPtrHeadOmitEmpty:
return codeStructField
case opStructFieldPtrAnonymousHead:
return codeStructField
case opStructField:
return codeStructField
case opStructFieldOmitEmpty:
return codeStructField
case opStructFieldRecursive:
return codeStructFieldRecursive
case opStructEnd:
return codeStructField
case opStructAnonymousEnd:
return codeStructField
case opInt:
return codeOp
case opInt8:
return codeOp
case opInt16:
return codeOp
case opInt32:
return codeOp
case opInt64:
return codeOp
case opUint:
return codeOp
case opUint8:
return codeOp
case opUint16:
return codeOp
case opUint32:
return codeOp
case opUint64:
return codeOp
case opFloat32:
return codeOp
case opFloat64:
return codeOp
case opBool:
return codeOp
case opString:
return codeOp
case opStructFieldHeadInt:
return codeStructField
case opStructFieldHeadInt8:
return codeStructField
case opStructFieldHeadInt16:
return codeStructField
case opStructFieldHeadInt32:
return codeStructField
case opStructFieldHeadInt64:
return codeStructField
case opStructFieldHeadUint:
return codeStructField
case opStructFieldHeadUint8:
return codeStructField
case opStructFieldHeadUint16:
return codeStructField
case opStructFieldHeadUint32:
return codeStructField
case opStructFieldHeadUint64:
return codeStructField
case opStructFieldHeadFloat32:
return codeStructField
case opStructFieldHeadFloat64:
return codeStructField
case opStructFieldHeadBool:
return codeStructField
case opStructFieldHeadString:
return codeStructField
case opStructFieldHeadOmitEmptyInt:
return codeStructField
case opStructFieldHeadOmitEmptyInt8:
return codeStructField
case opStructFieldHeadOmitEmptyInt16:
return codeStructField
case opStructFieldHeadOmitEmptyInt32:
return codeStructField
case opStructFieldHeadOmitEmptyInt64:
return codeStructField
case opStructFieldHeadOmitEmptyUint:
return codeStructField
case opStructFieldHeadOmitEmptyUint8:
return codeStructField
case opStructFieldHeadOmitEmptyUint16:
return codeStructField
case opStructFieldHeadOmitEmptyUint32:
return codeStructField
case opStructFieldHeadOmitEmptyUint64:
return codeStructField
case opStructFieldHeadOmitEmptyFloat32:
return codeStructField
case opStructFieldHeadOmitEmptyFloat64:
return codeStructField
case opStructFieldHeadOmitEmptyBool:
return codeStructField
case opStructFieldHeadOmitEmptyString:
return codeStructField
case opStructFieldAnonymousHeadInt:
return codeStructField
case opStructFieldAnonymousHeadInt8:
return codeStructField
case opStructFieldAnonymousHeadInt16:
return codeStructField
case opStructFieldAnonymousHeadInt32:
return codeStructField
case opStructFieldAnonymousHeadInt64:
return codeStructField
case opStructFieldAnonymousHeadUint:
return codeStructField
case opStructFieldAnonymousHeadUint8:
return codeStructField
case opStructFieldAnonymousHeadUint16:
return codeStructField
case opStructFieldAnonymousHeadUint32:
return codeStructField
case opStructFieldAnonymousHeadUint64:
return codeStructField
case opStructFieldAnonymousHeadFloat32:
return codeStructField
case opStructFieldAnonymousHeadFloat64:
return codeStructField
case opStructFieldAnonymousHeadBool:
return codeStructField
case opStructFieldAnonymousHeadString:
return codeStructField
case opStructFieldPtrHeadInt:
return codeStructField
case opStructFieldPtrHeadInt8:
return codeStructField
case opStructFieldPtrHeadInt16:
return codeStructField
case opStructFieldPtrHeadInt32:
return codeStructField
case opStructFieldPtrHeadInt64:
return codeStructField
case opStructFieldPtrHeadUint:
return codeStructField
case opStructFieldPtrHeadUint8:
return codeStructField
case opStructFieldPtrHeadUint16:
return codeStructField
case opStructFieldPtrHeadUint32:
return codeStructField
case opStructFieldPtrHeadUint64:
return codeStructField
case opStructFieldPtrHeadFloat32:
return codeStructField
case opStructFieldPtrHeadFloat64:
return codeStructField
case opStructFieldPtrHeadBool:
return codeStructField
case opStructFieldPtrHeadString:
return codeStructField
case opStructFieldPtrHeadOmitEmptyInt:
return codeStructField
case opStructFieldPtrHeadOmitEmptyInt8:
return codeStructField
case opStructFieldPtrHeadOmitEmptyInt16:
return codeStructField
case opStructFieldPtrHeadOmitEmptyInt32:
return codeStructField
case opStructFieldPtrHeadOmitEmptyInt64:
return codeStructField
case opStructFieldPtrHeadOmitEmptyUint:
return codeStructField
case opStructFieldPtrHeadOmitEmptyUint8:
return codeStructField
case opStructFieldPtrHeadOmitEmptyUint16:
return codeStructField
case opStructFieldPtrHeadOmitEmptyUint32:
return codeStructField
case opStructFieldPtrHeadOmitEmptyUint64:
return codeStructField
case opStructFieldPtrHeadOmitEmptyFloat32:
return codeStructField
case opStructFieldPtrHeadOmitEmptyFloat64:
return codeStructField
case opStructFieldPtrHeadOmitEmptyBool:
return codeStructField
case opStructFieldPtrHeadOmitEmptyString:
return codeStructField
case opStructFieldPtrAnonymousHeadInt:
return codeStructField
case opStructFieldPtrAnonymousHeadInt8:
return codeStructField
case opStructFieldPtrAnonymousHeadInt16:
return codeStructField
case opStructFieldPtrAnonymousHeadInt32:
return codeStructField
case opStructFieldPtrAnonymousHeadInt64:
return codeStructField
case opStructFieldPtrAnonymousHeadUint:
return codeStructField
case opStructFieldPtrAnonymousHeadUint8:
return codeStructField
case opStructFieldPtrAnonymousHeadUint16:
return codeStructField
case opStructFieldPtrAnonymousHeadUint32:
return codeStructField
case opStructFieldPtrAnonymousHeadUint64:
return codeStructField
case opStructFieldPtrAnonymousHeadFloat32:
return codeStructField
case opStructFieldPtrAnonymousHeadFloat64:
return codeStructField
case opStructFieldPtrAnonymousHeadBool:
return codeStructField
case opStructFieldPtrAnonymousHeadString:
return codeStructField
case opStructFieldInt:
return codeStructField
case opStructFieldInt8:
return codeStructField
case opStructFieldInt16:
return codeStructField
case opStructFieldInt32:
return codeStructField
case opStructFieldInt64:
return codeStructField
case opStructFieldUint:
return codeStructField
case opStructFieldUint8:
return codeStructField
case opStructFieldUint16:
return codeStructField
case opStructFieldUint32:
return codeStructField
case opStructFieldUint64:
return codeStructField
case opStructFieldFloat32:
return codeStructField
case opStructFieldFloat64:
return codeStructField
case opStructFieldBool:
return codeStructField
case opStructFieldString:
return codeStructField
case opStructFieldOmitEmptyInt:
return codeStructField
case opStructFieldOmitEmptyInt8:
return codeStructField
case opStructFieldOmitEmptyInt16:
return codeStructField
case opStructFieldOmitEmptyInt32:
return codeStructField
case opStructFieldOmitEmptyInt64:
return codeStructField
case opStructFieldOmitEmptyUint:
return codeStructField
case opStructFieldOmitEmptyUint8:
return codeStructField
case opStructFieldOmitEmptyUint16:
return codeStructField
case opStructFieldOmitEmptyUint32:
return codeStructField
case opStructFieldOmitEmptyUint64:
return codeStructField
case opStructFieldOmitEmptyFloat32:
return codeStructField
case opStructFieldOmitEmptyFloat64:
return codeStructField
case opStructFieldOmitEmptyBool:
return codeStructField
case opStructFieldOmitEmptyString:
return codeStructField
case opEndIndent:
return codeOp
case opInterfaceIndent:
return codeOp
case opPtrIndent:
return codeOp
case opMarshalJSONIndent:
return codeOp
case opMarshalTextIndent:
return codeOp
case opSliceHeadIndent:
return codeSliceHead
case opRootSliceHeadIndent:
return codeSliceHead
case opSliceElemIndent:
return codeSliceElem
case opRootSliceElemIndent:
return codeSliceElem
case opSliceEndIndent:
return codeOp
case opArrayHeadIndent:
return codeArrayHead
case opArrayElemIndent:
return codeArrayElem
case opArrayEndIndent:
return codeOp
case opMapHeadIndent:
return codeMapHead
case opMapHeadLoadIndent:
return codeMapHead
case opRootMapHeadIndent:
return codeMapHead
case opMapKeyIndent:
return codeMapKey
case opRootMapKeyIndent:
return codeMapKey
case opMapValueIndent:
return codeMapValue
case opMapEndIndent:
return codeOp
case opStructFieldHeadIndent:
return codeStructField
case opStructFieldHeadOmitEmptyIndent:
return codeStructField
case opStructFieldAnonymousHeadIndent:
return codeStructField
case opStructFieldPtrHeadIndent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyIndent:
return codeStructField
case opStructFieldPtrAnonymousHeadIndent:
return codeStructField
case opStructFieldIndent:
return codeStructField
case opStructFieldOmitEmptyIndent:
return codeStructField
case opStructFieldRecursiveIndent:
return codeStructFieldRecursive
case opStructEndIndent:
return codeStructField
case opStructAnonymousEndIndent:
return codeStructField
case opIntIndent:
return codeOp
case opInt8Indent:
return codeOp
case opInt16Indent:
return codeOp
case opInt32Indent:
return codeOp
case opInt64Indent:
return codeOp
case opUintIndent:
return codeOp
case opUint8Indent:
return codeOp
case opUint16Indent:
return codeOp
case opUint32Indent:
return codeOp
case opUint64Indent:
return codeOp
case opFloat32Indent:
return codeOp
case opFloat64Indent:
return codeOp
case opBoolIndent:
return codeOp
case opStringIndent:
return codeOp
case opStructFieldHeadIntIndent:
return codeStructField
case opStructFieldHeadInt8Indent:
return codeStructField
case opStructFieldHeadInt16Indent:
return codeStructField
case opStructFieldHeadInt32Indent:
return codeStructField
case opStructFieldHeadInt64Indent:
return codeStructField
case opStructFieldHeadUintIndent:
return codeStructField
case opStructFieldHeadUint8Indent:
return codeStructField
case opStructFieldHeadUint16Indent:
return codeStructField
case opStructFieldHeadUint32Indent:
return codeStructField
case opStructFieldHeadUint64Indent:
return codeStructField
case opStructFieldHeadFloat32Indent:
return codeStructField
case opStructFieldHeadFloat64Indent:
return codeStructField
case opStructFieldHeadBoolIndent:
return codeStructField
case opStructFieldHeadStringIndent:
return codeStructField
case opStructFieldHeadOmitEmptyIntIndent:
return codeStructField
case opStructFieldHeadOmitEmptyInt8Indent:
return codeStructField
case opStructFieldHeadOmitEmptyInt16Indent:
return codeStructField
case opStructFieldHeadOmitEmptyInt32Indent:
return codeStructField
case opStructFieldHeadOmitEmptyInt64Indent:
return codeStructField
case opStructFieldHeadOmitEmptyUintIndent:
return codeStructField
case opStructFieldHeadOmitEmptyUint8Indent:
return codeStructField
case opStructFieldHeadOmitEmptyUint16Indent:
return codeStructField
case opStructFieldHeadOmitEmptyUint32Indent:
return codeStructField
case opStructFieldHeadOmitEmptyUint64Indent:
return codeStructField
case opStructFieldHeadOmitEmptyFloat32Indent:
return codeStructField
case opStructFieldHeadOmitEmptyFloat64Indent:
return codeStructField
case opStructFieldHeadOmitEmptyBoolIndent:
return codeStructField
case opStructFieldHeadOmitEmptyStringIndent:
return codeStructField
case opStructFieldAnonymousHeadIntIndent:
return codeStructField
case opStructFieldAnonymousHeadInt8Indent:
return codeStructField
case opStructFieldAnonymousHeadInt16Indent:
return codeStructField
case opStructFieldAnonymousHeadInt32Indent:
return codeStructField
case opStructFieldAnonymousHeadInt64Indent:
return codeStructField
case opStructFieldAnonymousHeadUintIndent:
return codeStructField
case opStructFieldAnonymousHeadUint8Indent:
return codeStructField
case opStructFieldAnonymousHeadUint16Indent:
return codeStructField
case opStructFieldAnonymousHeadUint32Indent:
return codeStructField
case opStructFieldAnonymousHeadUint64Indent:
return codeStructField
case opStructFieldAnonymousHeadFloat32Indent:
return codeStructField
case opStructFieldAnonymousHeadFloat64Indent:
return codeStructField
case opStructFieldAnonymousHeadBoolIndent:
return codeStructField
case opStructFieldAnonymousHeadStringIndent:
return codeStructField
case opStructFieldPtrHeadIntIndent:
return codeStructField
case opStructFieldPtrHeadInt8Indent:
return codeStructField
case opStructFieldPtrHeadInt16Indent:
return codeStructField
case opStructFieldPtrHeadInt32Indent:
return codeStructField
case opStructFieldPtrHeadInt64Indent:
return codeStructField
case opStructFieldPtrHeadUintIndent:
return codeStructField
case opStructFieldPtrHeadUint8Indent:
return codeStructField
case opStructFieldPtrHeadUint16Indent:
return codeStructField
case opStructFieldPtrHeadUint32Indent:
return codeStructField
case opStructFieldPtrHeadUint64Indent:
return codeStructField
case opStructFieldPtrHeadFloat32Indent:
return codeStructField
case opStructFieldPtrHeadFloat64Indent:
return codeStructField
case opStructFieldPtrHeadBoolIndent:
return codeStructField
case opStructFieldPtrHeadStringIndent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyIntIndent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyInt8Indent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyInt16Indent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyInt32Indent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyInt64Indent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyUintIndent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyUint8Indent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyUint16Indent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyUint32Indent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyUint64Indent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyFloat32Indent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyFloat64Indent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyBoolIndent:
return codeStructField
case opStructFieldPtrHeadOmitEmptyStringIndent:
return codeStructField
case opStructFieldPtrAnonymousHeadIntIndent:
return codeStructField
case opStructFieldPtrAnonymousHeadInt8Indent:
return codeStructField
case opStructFieldPtrAnonymousHeadInt16Indent:
return codeStructField
case opStructFieldPtrAnonymousHeadInt32Indent:
return codeStructField
case opStructFieldPtrAnonymousHeadInt64Indent:
return codeStructField
case opStructFieldPtrAnonymousHeadUintIndent:
return codeStructField
case opStructFieldPtrAnonymousHeadUint8Indent:
return codeStructField
case opStructFieldPtrAnonymousHeadUint16Indent:
return codeStructField
case opStructFieldPtrAnonymousHeadUint32Indent:
return codeStructField
case opStructFieldPtrAnonymousHeadUint64Indent:
return codeStructField
case opStructFieldPtrAnonymousHeadFloat32Indent:
return codeStructField
case opStructFieldPtrAnonymousHeadFloat64Indent:
return codeStructField
case opStructFieldPtrAnonymousHeadBoolIndent:
return codeStructField
case opStructFieldPtrAnonymousHeadStringIndent:
return codeStructField
case opStructFieldIntIndent:
return codeStructField
case opStructFieldInt8Indent:
return codeStructField
case opStructFieldInt16Indent:
return codeStructField
case opStructFieldInt32Indent:
return codeStructField
case opStructFieldInt64Indent:
return codeStructField
case opStructFieldUintIndent:
return codeStructField
case opStructFieldUint8Indent:
return codeStructField
case opStructFieldUint16Indent:
return codeStructField
case opStructFieldUint32Indent:
return codeStructField
case opStructFieldUint64Indent:
return codeStructField
case opStructFieldFloat32Indent:
return codeStructField
case opStructFieldFloat64Indent:
return codeStructField
case opStructFieldBoolIndent:
return codeStructField
case opStructFieldStringIndent:
return codeStructField
case opStructFieldOmitEmptyIntIndent:
return codeStructField
case opStructFieldOmitEmptyInt8Indent:
return codeStructField
case opStructFieldOmitEmptyInt16Indent:
return codeStructField
case opStructFieldOmitEmptyInt32Indent:
return codeStructField
case opStructFieldOmitEmptyInt64Indent:
return codeStructField
case opStructFieldOmitEmptyUintIndent:
return codeStructField
case opStructFieldOmitEmptyUint8Indent:
return codeStructField
case opStructFieldOmitEmptyUint16Indent:
return codeStructField
case opStructFieldOmitEmptyUint32Indent:
return codeStructField
case opStructFieldOmitEmptyUint64Indent:
return codeStructField
case opStructFieldOmitEmptyFloat32Indent:
return codeStructField
case opStructFieldOmitEmptyFloat64Indent:
return codeStructField
case opStructFieldOmitEmptyBoolIndent:
return codeStructField
case opStructFieldOmitEmptyStringIndent:
return codeStructField
}
return codeOp
}
func (t opType) toIndent() opType {
switch t {
case opEnd:
return opEndIndent
case opInterface:
return opInterfaceIndent
case opPtr:
return opPtrIndent
case opMarshalJSON:
return opMarshalJSONIndent
case opMarshalText:
return opMarshalTextIndent
case opSliceHead:
return opSliceHeadIndent
case opRootSliceHead:
return opRootSliceHeadIndent
case opSliceElem:
return opSliceElemIndent
case opRootSliceElem:
return opRootSliceElemIndent
case opSliceEnd:
return opSliceEndIndent
case opArrayHead:
return opArrayHeadIndent
case opArrayElem:
return opArrayElemIndent
case opArrayEnd:
return opArrayEndIndent
case opMapHead:
return opMapHeadIndent
case opMapHeadLoad:
return opMapHeadLoadIndent
case opRootMapHead:
return opRootMapHeadIndent
case opMapKey:
return opMapKeyIndent
case opRootMapKey:
return opRootMapKeyIndent
case opMapValue:
return opMapValueIndent
case opMapEnd:
return opMapEndIndent
case opStructFieldHead:
return opStructFieldHeadIndent
case opStructFieldHeadOmitEmpty:
return opStructFieldHeadOmitEmptyIndent
case opStructFieldAnonymousHead:
return opStructFieldAnonymousHeadIndent
case opStructFieldPtrHead:
return opStructFieldPtrHeadIndent
case opStructFieldPtrHeadOmitEmpty:
return opStructFieldPtrHeadOmitEmptyIndent
case opStructFieldPtrAnonymousHead:
return opStructFieldPtrAnonymousHeadIndent
case opStructField:
return opStructFieldIndent
case opStructFieldOmitEmpty:
return opStructFieldOmitEmptyIndent
case opStructFieldRecursive:
return opStructFieldRecursiveIndent
case opStructEnd:
return opStructEndIndent
case opStructAnonymousEnd:
return opStructAnonymousEndIndent
case opInt:
return opIntIndent
case opInt8:
return opInt8Indent
case opInt16:
return opInt16Indent
case opInt32:
return opInt32Indent
case opInt64:
return opInt64Indent
case opUint:
return opUintIndent
case opUint8:
return opUint8Indent
case opUint16:
return opUint16Indent
case opUint32:
return opUint32Indent
case opUint64:
return opUint64Indent
case opFloat32:
return opFloat32Indent
case opFloat64:
return opFloat64Indent
case opBool:
return opBoolIndent
case opString:
return opStringIndent
case opStructFieldHeadInt:
return opStructFieldHeadIntIndent
case opStructFieldHeadInt8:
return opStructFieldHeadInt8Indent
case opStructFieldHeadInt16:
return opStructFieldHeadInt16Indent
case opStructFieldHeadInt32:
return opStructFieldHeadInt32Indent
case opStructFieldHeadInt64:
return opStructFieldHeadInt64Indent
case opStructFieldHeadUint:
return opStructFieldHeadUintIndent
case opStructFieldHeadUint8:
return opStructFieldHeadUint8Indent
case opStructFieldHeadUint16:
return opStructFieldHeadUint16Indent
case opStructFieldHeadUint32:
return opStructFieldHeadUint32Indent
case opStructFieldHeadUint64:
return opStructFieldHeadUint64Indent
case opStructFieldHeadFloat32:
return opStructFieldHeadFloat32Indent
case opStructFieldHeadFloat64:
return opStructFieldHeadFloat64Indent
case opStructFieldHeadBool:
return opStructFieldHeadBoolIndent
case opStructFieldHeadString:
return opStructFieldHeadStringIndent
case opStructFieldHeadOmitEmptyInt:
return opStructFieldHeadOmitEmptyIntIndent
case opStructFieldHeadOmitEmptyInt8:
return opStructFieldHeadOmitEmptyInt8Indent
case opStructFieldHeadOmitEmptyInt16:
return opStructFieldHeadOmitEmptyInt16Indent
case opStructFieldHeadOmitEmptyInt32:
return opStructFieldHeadOmitEmptyInt32Indent
case opStructFieldHeadOmitEmptyInt64:
return opStructFieldHeadOmitEmptyInt64Indent
case opStructFieldHeadOmitEmptyUint:
return opStructFieldHeadOmitEmptyUintIndent
case opStructFieldHeadOmitEmptyUint8:
return opStructFieldHeadOmitEmptyUint8Indent
case opStructFieldHeadOmitEmptyUint16:
return opStructFieldHeadOmitEmptyUint16Indent
case opStructFieldHeadOmitEmptyUint32:
return opStructFieldHeadOmitEmptyUint32Indent
case opStructFieldHeadOmitEmptyUint64:
return opStructFieldHeadOmitEmptyUint64Indent
case opStructFieldHeadOmitEmptyFloat32:
return opStructFieldHeadOmitEmptyFloat32Indent
case opStructFieldHeadOmitEmptyFloat64:
return opStructFieldHeadOmitEmptyFloat64Indent
case opStructFieldHeadOmitEmptyBool:
return opStructFieldHeadOmitEmptyBoolIndent
case opStructFieldHeadOmitEmptyString:
return opStructFieldHeadOmitEmptyStringIndent
case opStructFieldAnonymousHeadInt:
return opStructFieldAnonymousHeadIntIndent
case opStructFieldAnonymousHeadInt8:
return opStructFieldAnonymousHeadInt8Indent
case opStructFieldAnonymousHeadInt16:
return opStructFieldAnonymousHeadInt16Indent
case opStructFieldAnonymousHeadInt32:
return opStructFieldAnonymousHeadInt32Indent
case opStructFieldAnonymousHeadInt64:
return opStructFieldAnonymousHeadInt64Indent
case opStructFieldAnonymousHeadUint:
return opStructFieldAnonymousHeadUintIndent
case opStructFieldAnonymousHeadUint8:
return opStructFieldAnonymousHeadUint8Indent
case opStructFieldAnonymousHeadUint16:
return opStructFieldAnonymousHeadUint16Indent
case opStructFieldAnonymousHeadUint32:
return opStructFieldAnonymousHeadUint32Indent
case opStructFieldAnonymousHeadUint64:
return opStructFieldAnonymousHeadUint64Indent
case opStructFieldAnonymousHeadFloat32:
return opStructFieldAnonymousHeadFloat32Indent
case opStructFieldAnonymousHeadFloat64:
return opStructFieldAnonymousHeadFloat64Indent
case opStructFieldAnonymousHeadBool:
return opStructFieldAnonymousHeadBoolIndent
case opStructFieldAnonymousHeadString:
return opStructFieldAnonymousHeadStringIndent
case opStructFieldPtrHeadInt:
return opStructFieldPtrHeadIntIndent
case opStructFieldPtrHeadInt8:
return opStructFieldPtrHeadInt8Indent
case opStructFieldPtrHeadInt16:
return opStructFieldPtrHeadInt16Indent
case opStructFieldPtrHeadInt32:
return opStructFieldPtrHeadInt32Indent
case opStructFieldPtrHeadInt64:
return opStructFieldPtrHeadInt64Indent
case opStructFieldPtrHeadUint:
return opStructFieldPtrHeadUintIndent
case opStructFieldPtrHeadUint8:
return opStructFieldPtrHeadUint8Indent
case opStructFieldPtrHeadUint16:
return opStructFieldPtrHeadUint16Indent
case opStructFieldPtrHeadUint32:
return opStructFieldPtrHeadUint32Indent
case opStructFieldPtrHeadUint64:
return opStructFieldPtrHeadUint64Indent
case opStructFieldPtrHeadFloat32:
return opStructFieldPtrHeadFloat32Indent
case opStructFieldPtrHeadFloat64:
return opStructFieldPtrHeadFloat64Indent
case opStructFieldPtrHeadBool:
return opStructFieldPtrHeadBoolIndent
case opStructFieldPtrHeadString:
return opStructFieldPtrHeadStringIndent
case opStructFieldPtrHeadOmitEmptyInt:
return opStructFieldPtrHeadOmitEmptyIntIndent
case opStructFieldPtrHeadOmitEmptyInt8:
return opStructFieldPtrHeadOmitEmptyInt8Indent
case opStructFieldPtrHeadOmitEmptyInt16:
return opStructFieldPtrHeadOmitEmptyInt16Indent
case opStructFieldPtrHeadOmitEmptyInt32:
return opStructFieldPtrHeadOmitEmptyInt32Indent
case opStructFieldPtrHeadOmitEmptyInt64:
return opStructFieldPtrHeadOmitEmptyInt64Indent
case opStructFieldPtrHeadOmitEmptyUint:
return opStructFieldPtrHeadOmitEmptyUintIndent
case opStructFieldPtrHeadOmitEmptyUint8:
return opStructFieldPtrHeadOmitEmptyUint8Indent
case opStructFieldPtrHeadOmitEmptyUint16:
return opStructFieldPtrHeadOmitEmptyUint16Indent
case opStructFieldPtrHeadOmitEmptyUint32:
return opStructFieldPtrHeadOmitEmptyUint32Indent
case opStructFieldPtrHeadOmitEmptyUint64:
return opStructFieldPtrHeadOmitEmptyUint64Indent
case opStructFieldPtrHeadOmitEmptyFloat32:
return opStructFieldPtrHeadOmitEmptyFloat32Indent
case opStructFieldPtrHeadOmitEmptyFloat64:
return opStructFieldPtrHeadOmitEmptyFloat64Indent
case opStructFieldPtrHeadOmitEmptyBool:
return opStructFieldPtrHeadOmitEmptyBoolIndent
case opStructFieldPtrHeadOmitEmptyString:
return opStructFieldPtrHeadOmitEmptyStringIndent
case opStructFieldPtrAnonymousHeadInt:
return opStructFieldPtrAnonymousHeadIntIndent
case opStructFieldPtrAnonymousHeadInt8:
return opStructFieldPtrAnonymousHeadInt8Indent
case opStructFieldPtrAnonymousHeadInt16:
return opStructFieldPtrAnonymousHeadInt16Indent
case opStructFieldPtrAnonymousHeadInt32:
return opStructFieldPtrAnonymousHeadInt32Indent
case opStructFieldPtrAnonymousHeadInt64:
return opStructFieldPtrAnonymousHeadInt64Indent
case opStructFieldPtrAnonymousHeadUint:
return opStructFieldPtrAnonymousHeadUintIndent
case opStructFieldPtrAnonymousHeadUint8:
return opStructFieldPtrAnonymousHeadUint8Indent
case opStructFieldPtrAnonymousHeadUint16:
return opStructFieldPtrAnonymousHeadUint16Indent
case opStructFieldPtrAnonymousHeadUint32:
return opStructFieldPtrAnonymousHeadUint32Indent
case opStructFieldPtrAnonymousHeadUint64:
return opStructFieldPtrAnonymousHeadUint64Indent
case opStructFieldPtrAnonymousHeadFloat32:
return opStructFieldPtrAnonymousHeadFloat32Indent
case opStructFieldPtrAnonymousHeadFloat64:
return opStructFieldPtrAnonymousHeadFloat64Indent
case opStructFieldPtrAnonymousHeadBool:
return opStructFieldPtrAnonymousHeadBoolIndent
case opStructFieldPtrAnonymousHeadString:
return opStructFieldPtrAnonymousHeadStringIndent
case opStructFieldInt:
return opStructFieldIntIndent
case opStructFieldInt8:
return opStructFieldInt8Indent
case opStructFieldInt16:
return opStructFieldInt16Indent
case opStructFieldInt32:
return opStructFieldInt32Indent
case opStructFieldInt64:
return opStructFieldInt64Indent
case opStructFieldUint:
return opStructFieldUintIndent
case opStructFieldUint8:
return opStructFieldUint8Indent
case opStructFieldUint16:
return opStructFieldUint16Indent
case opStructFieldUint32:
return opStructFieldUint32Indent
case opStructFieldUint64:
return opStructFieldUint64Indent
case opStructFieldFloat32:
return opStructFieldFloat32Indent
case opStructFieldFloat64:
return opStructFieldFloat64Indent
case opStructFieldBool:
return opStructFieldBoolIndent
case opStructFieldString:
return opStructFieldStringIndent
case opStructFieldOmitEmptyInt:
return opStructFieldOmitEmptyIntIndent
case opStructFieldOmitEmptyInt8:
return opStructFieldOmitEmptyInt8Indent
case opStructFieldOmitEmptyInt16:
return opStructFieldOmitEmptyInt16Indent
case opStructFieldOmitEmptyInt32:
return opStructFieldOmitEmptyInt32Indent
case opStructFieldOmitEmptyInt64:
return opStructFieldOmitEmptyInt64Indent
case opStructFieldOmitEmptyUint:
return opStructFieldOmitEmptyUintIndent
case opStructFieldOmitEmptyUint8:
return opStructFieldOmitEmptyUint8Indent
case opStructFieldOmitEmptyUint16:
return opStructFieldOmitEmptyUint16Indent
case opStructFieldOmitEmptyUint32:
return opStructFieldOmitEmptyUint32Indent
case opStructFieldOmitEmptyUint64:
return opStructFieldOmitEmptyUint64Indent
case opStructFieldOmitEmptyFloat32:
return opStructFieldOmitEmptyFloat32Indent
case opStructFieldOmitEmptyFloat64:
return opStructFieldOmitEmptyFloat64Indent
case opStructFieldOmitEmptyBool:
return opStructFieldOmitEmptyBoolIndent
case opStructFieldOmitEmptyString:
return opStructFieldOmitEmptyStringIndent
case opEndIndent:
return opEndIndent
case opInterfaceIndent:
return opInterfaceIndent
case opPtrIndent:
return opPtrIndent
case opMarshalJSONIndent:
return opMarshalJSONIndent
case opMarshalTextIndent:
return opMarshalTextIndent
case opSliceHeadIndent:
return opSliceHeadIndent
case opRootSliceHeadIndent:
return opRootSliceHeadIndent
case opSliceElemIndent:
return opSliceElemIndent
case opRootSliceElemIndent:
return opRootSliceElemIndent
case opSliceEndIndent:
return opSliceEndIndent
case opArrayHeadIndent:
return opArrayHeadIndent
case opArrayElemIndent:
return opArrayElemIndent
case opArrayEndIndent:
return opArrayEndIndent
case opMapHeadIndent:
return opMapHeadIndent
case opMapHeadLoadIndent:
return opMapHeadLoadIndent
case opRootMapHeadIndent:
return opRootMapHeadIndent
case opMapKeyIndent:
return opMapKeyIndent
case opRootMapKeyIndent:
return opRootMapKeyIndent
case opMapValueIndent:
return opMapValueIndent
case opMapEndIndent:
return opMapEndIndent
case opStructFieldHeadIndent:
return opStructFieldHeadIndent
case opStructFieldHeadOmitEmptyIndent:
return opStructFieldHeadOmitEmptyIndent
case opStructFieldAnonymousHeadIndent:
return opStructFieldAnonymousHeadIndent
case opStructFieldPtrHeadIndent:
return opStructFieldPtrHeadIndent
case opStructFieldPtrHeadOmitEmptyIndent:
return opStructFieldPtrHeadOmitEmptyIndent
case opStructFieldPtrAnonymousHeadIndent:
return opStructFieldPtrAnonymousHeadIndent
case opStructFieldIndent:
return opStructFieldIndent
case opStructFieldOmitEmptyIndent:
return opStructFieldOmitEmptyIndent
case opStructFieldRecursiveIndent:
return opStructFieldRecursiveIndent
case opStructEndIndent:
return opStructEndIndent
case opStructAnonymousEndIndent:
return opStructAnonymousEndIndent
case opIntIndent:
return opIntIndent
case opInt8Indent:
return opInt8Indent
case opInt16Indent:
return opInt16Indent
case opInt32Indent:
return opInt32Indent
case opInt64Indent:
return opInt64Indent
case opUintIndent:
return opUintIndent
case opUint8Indent:
return opUint8Indent
case opUint16Indent:
return opUint16Indent
case opUint32Indent:
return opUint32Indent
case opUint64Indent:
return opUint64Indent
case opFloat32Indent:
return opFloat32Indent
case opFloat64Indent:
return opFloat64Indent
case opBoolIndent:
return opBoolIndent
case opStringIndent:
return opStringIndent
case opStructFieldHeadIntIndent:
return opStructFieldHeadIntIndent
case opStructFieldHeadInt8Indent:
return opStructFieldHeadInt8Indent
case opStructFieldHeadInt16Indent:
return opStructFieldHeadInt16Indent
case opStructFieldHeadInt32Indent:
return opStructFieldHeadInt32Indent
case opStructFieldHeadInt64Indent:
return opStructFieldHeadInt64Indent
case opStructFieldHeadUintIndent:
return opStructFieldHeadUintIndent
case opStructFieldHeadUint8Indent:
return opStructFieldHeadUint8Indent
case opStructFieldHeadUint16Indent:
return opStructFieldHeadUint16Indent
case opStructFieldHeadUint32Indent:
return opStructFieldHeadUint32Indent
case opStructFieldHeadUint64Indent:
return opStructFieldHeadUint64Indent
case opStructFieldHeadFloat32Indent:
return opStructFieldHeadFloat32Indent
case opStructFieldHeadFloat64Indent:
return opStructFieldHeadFloat64Indent
case opStructFieldHeadBoolIndent:
return opStructFieldHeadBoolIndent
case opStructFieldHeadStringIndent:
return opStructFieldHeadStringIndent
case opStructFieldHeadOmitEmptyIntIndent:
return opStructFieldHeadOmitEmptyIntIndent
case opStructFieldHeadOmitEmptyInt8Indent:
return opStructFieldHeadOmitEmptyInt8Indent
case opStructFieldHeadOmitEmptyInt16Indent:
return opStructFieldHeadOmitEmptyInt16Indent
case opStructFieldHeadOmitEmptyInt32Indent:
return opStructFieldHeadOmitEmptyInt32Indent
case opStructFieldHeadOmitEmptyInt64Indent:
return opStructFieldHeadOmitEmptyInt64Indent
case opStructFieldHeadOmitEmptyUintIndent:
return opStructFieldHeadOmitEmptyUintIndent
case opStructFieldHeadOmitEmptyUint8Indent:
return opStructFieldHeadOmitEmptyUint8Indent
case opStructFieldHeadOmitEmptyUint16Indent:
return opStructFieldHeadOmitEmptyUint16Indent
case opStructFieldHeadOmitEmptyUint32Indent:
return opStructFieldHeadOmitEmptyUint32Indent
case opStructFieldHeadOmitEmptyUint64Indent:
return opStructFieldHeadOmitEmptyUint64Indent
case opStructFieldHeadOmitEmptyFloat32Indent:
return opStructFieldHeadOmitEmptyFloat32Indent
case opStructFieldHeadOmitEmptyFloat64Indent:
return opStructFieldHeadOmitEmptyFloat64Indent
case opStructFieldHeadOmitEmptyBoolIndent:
return opStructFieldHeadOmitEmptyBoolIndent
case opStructFieldHeadOmitEmptyStringIndent:
return opStructFieldHeadOmitEmptyStringIndent
case opStructFieldAnonymousHeadIntIndent:
return opStructFieldAnonymousHeadIntIndent
case opStructFieldAnonymousHeadInt8Indent:
return opStructFieldAnonymousHeadInt8Indent
case opStructFieldAnonymousHeadInt16Indent:
return opStructFieldAnonymousHeadInt16Indent
case opStructFieldAnonymousHeadInt32Indent:
return opStructFieldAnonymousHeadInt32Indent
case opStructFieldAnonymousHeadInt64Indent:
return opStructFieldAnonymousHeadInt64Indent
case opStructFieldAnonymousHeadUintIndent:
return opStructFieldAnonymousHeadUintIndent
case opStructFieldAnonymousHeadUint8Indent:
return opStructFieldAnonymousHeadUint8Indent
case opStructFieldAnonymousHeadUint16Indent:
return opStructFieldAnonymousHeadUint16Indent
case opStructFieldAnonymousHeadUint32Indent:
return opStructFieldAnonymousHeadUint32Indent
case opStructFieldAnonymousHeadUint64Indent:
return opStructFieldAnonymousHeadUint64Indent
case opStructFieldAnonymousHeadFloat32Indent:
return opStructFieldAnonymousHeadFloat32Indent
case opStructFieldAnonymousHeadFloat64Indent:
return opStructFieldAnonymousHeadFloat64Indent
case opStructFieldAnonymousHeadBoolIndent:
return opStructFieldAnonymousHeadBoolIndent
case opStructFieldAnonymousHeadStringIndent:
return opStructFieldAnonymousHeadStringIndent
case opStructFieldPtrHeadIntIndent:
return opStructFieldPtrHeadIntIndent
case opStructFieldPtrHeadInt8Indent:
return opStructFieldPtrHeadInt8Indent
case opStructFieldPtrHeadInt16Indent:
return opStructFieldPtrHeadInt16Indent
case opStructFieldPtrHeadInt32Indent:
return opStructFieldPtrHeadInt32Indent
case opStructFieldPtrHeadInt64Indent:
return opStructFieldPtrHeadInt64Indent
case opStructFieldPtrHeadUintIndent:
return opStructFieldPtrHeadUintIndent
case opStructFieldPtrHeadUint8Indent:
return opStructFieldPtrHeadUint8Indent
case opStructFieldPtrHeadUint16Indent:
return opStructFieldPtrHeadUint16Indent
case opStructFieldPtrHeadUint32Indent:
return opStructFieldPtrHeadUint32Indent
case opStructFieldPtrHeadUint64Indent:
return opStructFieldPtrHeadUint64Indent
case opStructFieldPtrHeadFloat32Indent:
return opStructFieldPtrHeadFloat32Indent
case opStructFieldPtrHeadFloat64Indent:
return opStructFieldPtrHeadFloat64Indent
case opStructFieldPtrHeadBoolIndent:
return opStructFieldPtrHeadBoolIndent
case opStructFieldPtrHeadStringIndent:
return opStructFieldPtrHeadStringIndent
case opStructFieldPtrHeadOmitEmptyIntIndent:
return opStructFieldPtrHeadOmitEmptyIntIndent
case opStructFieldPtrHeadOmitEmptyInt8Indent:
return opStructFieldPtrHeadOmitEmptyInt8Indent
case opStructFieldPtrHeadOmitEmptyInt16Indent:
return opStructFieldPtrHeadOmitEmptyInt16Indent
case opStructFieldPtrHeadOmitEmptyInt32Indent:
return opStructFieldPtrHeadOmitEmptyInt32Indent
case opStructFieldPtrHeadOmitEmptyInt64Indent:
return opStructFieldPtrHeadOmitEmptyInt64Indent
case opStructFieldPtrHeadOmitEmptyUintIndent:
return opStructFieldPtrHeadOmitEmptyUintIndent
case opStructFieldPtrHeadOmitEmptyUint8Indent:
return opStructFieldPtrHeadOmitEmptyUint8Indent
case opStructFieldPtrHeadOmitEmptyUint16Indent:
return opStructFieldPtrHeadOmitEmptyUint16Indent
case opStructFieldPtrHeadOmitEmptyUint32Indent:
return opStructFieldPtrHeadOmitEmptyUint32Indent
case opStructFieldPtrHeadOmitEmptyUint64Indent:
return opStructFieldPtrHeadOmitEmptyUint64Indent
case opStructFieldPtrHeadOmitEmptyFloat32Indent:
return opStructFieldPtrHeadOmitEmptyFloat32Indent
case opStructFieldPtrHeadOmitEmptyFloat64Indent:
return opStructFieldPtrHeadOmitEmptyFloat64Indent
case opStructFieldPtrHeadOmitEmptyBoolIndent:
return opStructFieldPtrHeadOmitEmptyBoolIndent
case opStructFieldPtrHeadOmitEmptyStringIndent:
return opStructFieldPtrHeadOmitEmptyStringIndent
case opStructFieldPtrAnonymousHeadIntIndent:
return opStructFieldPtrAnonymousHeadIntIndent
case opStructFieldPtrAnonymousHeadInt8Indent:
return opStructFieldPtrAnonymousHeadInt8Indent
case opStructFieldPtrAnonymousHeadInt16Indent:
return opStructFieldPtrAnonymousHeadInt16Indent
case opStructFieldPtrAnonymousHeadInt32Indent:
return opStructFieldPtrAnonymousHeadInt32Indent
case opStructFieldPtrAnonymousHeadInt64Indent:
return opStructFieldPtrAnonymousHeadInt64Indent
case opStructFieldPtrAnonymousHeadUintIndent:
return opStructFieldPtrAnonymousHeadUintIndent
case opStructFieldPtrAnonymousHeadUint8Indent:
return opStructFieldPtrAnonymousHeadUint8Indent
case opStructFieldPtrAnonymousHeadUint16Indent:
return opStructFieldPtrAnonymousHeadUint16Indent
case opStructFieldPtrAnonymousHeadUint32Indent:
return opStructFieldPtrAnonymousHeadUint32Indent
case opStructFieldPtrAnonymousHeadUint64Indent:
return opStructFieldPtrAnonymousHeadUint64Indent
case opStructFieldPtrAnonymousHeadFloat32Indent:
return opStructFieldPtrAnonymousHeadFloat32Indent
case opStructFieldPtrAnonymousHeadFloat64Indent:
return opStructFieldPtrAnonymousHeadFloat64Indent
case opStructFieldPtrAnonymousHeadBoolIndent:
return opStructFieldPtrAnonymousHeadBoolIndent
case opStructFieldPtrAnonymousHeadStringIndent:
return opStructFieldPtrAnonymousHeadStringIndent
case opStructFieldIntIndent:
return opStructFieldIntIndent
case opStructFieldInt8Indent:
return opStructFieldInt8Indent
case opStructFieldInt16Indent:
return opStructFieldInt16Indent
case opStructFieldInt32Indent:
return opStructFieldInt32Indent
case opStructFieldInt64Indent:
return opStructFieldInt64Indent
case opStructFieldUintIndent:
return opStructFieldUintIndent
case opStructFieldUint8Indent:
return opStructFieldUint8Indent
case opStructFieldUint16Indent:
return opStructFieldUint16Indent
case opStructFieldUint32Indent:
return opStructFieldUint32Indent
case opStructFieldUint64Indent:
return opStructFieldUint64Indent
case opStructFieldFloat32Indent:
return opStructFieldFloat32Indent
case opStructFieldFloat64Indent:
return opStructFieldFloat64Indent
case opStructFieldBoolIndent:
return opStructFieldBoolIndent
case opStructFieldStringIndent:
return opStructFieldStringIndent
case opStructFieldOmitEmptyIntIndent:
return opStructFieldOmitEmptyIntIndent
case opStructFieldOmitEmptyInt8Indent:
return opStructFieldOmitEmptyInt8Indent
case opStructFieldOmitEmptyInt16Indent:
return opStructFieldOmitEmptyInt16Indent
case opStructFieldOmitEmptyInt32Indent:
return opStructFieldOmitEmptyInt32Indent
case opStructFieldOmitEmptyInt64Indent:
return opStructFieldOmitEmptyInt64Indent
case opStructFieldOmitEmptyUintIndent:
return opStructFieldOmitEmptyUintIndent
case opStructFieldOmitEmptyUint8Indent:
return opStructFieldOmitEmptyUint8Indent
case opStructFieldOmitEmptyUint16Indent:
return opStructFieldOmitEmptyUint16Indent
case opStructFieldOmitEmptyUint32Indent:
return opStructFieldOmitEmptyUint32Indent
case opStructFieldOmitEmptyUint64Indent:
return opStructFieldOmitEmptyUint64Indent
case opStructFieldOmitEmptyFloat32Indent:
return opStructFieldOmitEmptyFloat32Indent
case opStructFieldOmitEmptyFloat64Indent:
return opStructFieldOmitEmptyFloat64Indent
case opStructFieldOmitEmptyBoolIndent:
return opStructFieldOmitEmptyBoolIndent
case opStructFieldOmitEmptyStringIndent:
return opStructFieldOmitEmptyStringIndent
}
return t
}
func (t opType) headToPtrHead() opType {
switch t {
case opStructFieldHead:
return opStructFieldPtrHead
case opStructFieldAnonymousHead:
return opStructFieldPtrAnonymousHead
case opStructFieldHeadOmitEmpty:
return opStructFieldPtrHeadOmitEmpty
case opStructFieldHeadInt:
return opStructFieldPtrHeadInt
case opStructFieldAnonymousHeadInt:
return opStructFieldPtrAnonymousHeadInt
case opStructFieldHeadOmitEmptyInt:
return opStructFieldPtrHeadOmitEmptyInt
case opStructFieldHeadInt8:
return opStructFieldPtrHeadInt8
case opStructFieldAnonymousHeadInt8:
return opStructFieldPtrAnonymousHeadInt8
case opStructFieldHeadOmitEmptyInt8:
return opStructFieldPtrHeadOmitEmptyInt8
case opStructFieldHeadInt16:
return opStructFieldPtrHeadInt16
case opStructFieldAnonymousHeadInt16:
return opStructFieldPtrAnonymousHeadInt16
case opStructFieldHeadOmitEmptyInt16:
return opStructFieldPtrHeadOmitEmptyInt16
case opStructFieldHeadInt32:
return opStructFieldPtrHeadInt32
case opStructFieldAnonymousHeadInt32:
return opStructFieldPtrAnonymousHeadInt32
case opStructFieldHeadOmitEmptyInt32:
return opStructFieldPtrHeadOmitEmptyInt32
case opStructFieldHeadInt64:
return opStructFieldPtrHeadInt64
case opStructFieldAnonymousHeadInt64:
return opStructFieldPtrAnonymousHeadInt64
case opStructFieldHeadOmitEmptyInt64:
return opStructFieldPtrHeadOmitEmptyInt64
case opStructFieldHeadUint:
return opStructFieldPtrHeadUint
case opStructFieldAnonymousHeadUint:
return opStructFieldPtrAnonymousHeadUint
case opStructFieldHeadOmitEmptyUint:
return opStructFieldPtrHeadOmitEmptyUint
case opStructFieldHeadUint8:
return opStructFieldPtrHeadUint8
case opStructFieldAnonymousHeadUint8:
return opStructFieldPtrAnonymousHeadUint8
case opStructFieldHeadOmitEmptyUint8:
return opStructFieldPtrHeadOmitEmptyUint8
case opStructFieldHeadUint16:
return opStructFieldPtrHeadUint16
case opStructFieldAnonymousHeadUint16:
return opStructFieldPtrAnonymousHeadUint16
case opStructFieldHeadOmitEmptyUint16:
return opStructFieldPtrHeadOmitEmptyUint16
case opStructFieldHeadUint32:
return opStructFieldPtrHeadUint32
case opStructFieldAnonymousHeadUint32:
return opStructFieldPtrAnonymousHeadUint32
case opStructFieldHeadOmitEmptyUint32:
return opStructFieldPtrHeadOmitEmptyUint32
case opStructFieldHeadUint64:
return opStructFieldPtrHeadUint64
case opStructFieldAnonymousHeadUint64:
return opStructFieldPtrAnonymousHeadUint64
case opStructFieldHeadOmitEmptyUint64:
return opStructFieldPtrHeadOmitEmptyUint64
case opStructFieldHeadFloat32:
return opStructFieldPtrHeadFloat32
case opStructFieldAnonymousHeadFloat32:
return opStructFieldPtrAnonymousHeadFloat32
case opStructFieldHeadOmitEmptyFloat32:
return opStructFieldPtrHeadOmitEmptyFloat32
case opStructFieldHeadFloat64:
return opStructFieldPtrHeadFloat64
case opStructFieldAnonymousHeadFloat64:
return opStructFieldPtrAnonymousHeadFloat64
case opStructFieldHeadOmitEmptyFloat64:
return opStructFieldPtrHeadOmitEmptyFloat64
case opStructFieldHeadBool:
return opStructFieldPtrHeadBool
case opStructFieldAnonymousHeadBool:
return opStructFieldPtrAnonymousHeadBool
case opStructFieldHeadOmitEmptyBool:
return opStructFieldPtrHeadOmitEmptyBool
case opStructFieldHeadString:
return opStructFieldPtrHeadString
case opStructFieldAnonymousHeadString:
return opStructFieldPtrAnonymousHeadString
case opStructFieldHeadOmitEmptyString:
return opStructFieldPtrHeadOmitEmptyString
case opStructFieldHeadIndent:
return opStructFieldPtrHeadIndent
case opStructFieldAnonymousHeadIndent:
return opStructFieldPtrAnonymousHeadIndent
case opStructFieldHeadOmitEmptyIndent:
return opStructFieldPtrHeadOmitEmptyIndent
case opStructFieldHeadIntIndent:
return opStructFieldPtrHeadIntIndent
case opStructFieldAnonymousHeadIntIndent:
return opStructFieldPtrAnonymousHeadIntIndent
case opStructFieldHeadOmitEmptyIntIndent:
return opStructFieldPtrHeadOmitEmptyIntIndent
case opStructFieldHeadInt8Indent:
return opStructFieldPtrHeadInt8Indent
case opStructFieldAnonymousHeadInt8Indent:
return opStructFieldPtrAnonymousHeadInt8Indent
case opStructFieldHeadOmitEmptyInt8Indent:
return opStructFieldPtrHeadOmitEmptyInt8Indent
case opStructFieldHeadInt16Indent:
return opStructFieldPtrHeadInt16Indent
case opStructFieldAnonymousHeadInt16Indent:
return opStructFieldPtrAnonymousHeadInt16Indent
case opStructFieldHeadOmitEmptyInt16Indent:
return opStructFieldPtrHeadOmitEmptyInt16Indent
case opStructFieldHeadInt32Indent:
return opStructFieldPtrHeadInt32Indent
case opStructFieldAnonymousHeadInt32Indent:
return opStructFieldPtrAnonymousHeadInt32Indent
case opStructFieldHeadOmitEmptyInt32Indent:
return opStructFieldPtrHeadOmitEmptyInt32Indent
case opStructFieldHeadInt64Indent:
return opStructFieldPtrHeadInt64Indent
case opStructFieldAnonymousHeadInt64Indent:
return opStructFieldPtrAnonymousHeadInt64Indent
case opStructFieldHeadOmitEmptyInt64Indent:
return opStructFieldPtrHeadOmitEmptyInt64Indent
case opStructFieldHeadUintIndent:
return opStructFieldPtrHeadUintIndent
case opStructFieldAnonymousHeadUintIndent:
return opStructFieldPtrAnonymousHeadUintIndent
case opStructFieldHeadOmitEmptyUintIndent:
return opStructFieldPtrHeadOmitEmptyUintIndent
case opStructFieldHeadUint8Indent:
return opStructFieldPtrHeadUint8Indent
case opStructFieldAnonymousHeadUint8Indent:
return opStructFieldPtrAnonymousHeadUint8Indent
case opStructFieldHeadOmitEmptyUint8Indent:
return opStructFieldPtrHeadOmitEmptyUint8Indent
case opStructFieldHeadUint16Indent:
return opStructFieldPtrHeadUint16Indent
case opStructFieldAnonymousHeadUint16Indent:
return opStructFieldPtrAnonymousHeadUint16Indent
case opStructFieldHeadOmitEmptyUint16Indent:
return opStructFieldPtrHeadOmitEmptyUint16Indent
case opStructFieldHeadUint32Indent:
return opStructFieldPtrHeadUint32Indent
case opStructFieldAnonymousHeadUint32Indent:
return opStructFieldPtrAnonymousHeadUint32Indent
case opStructFieldHeadOmitEmptyUint32Indent:
return opStructFieldPtrHeadOmitEmptyUint32Indent
case opStructFieldHeadUint64Indent:
return opStructFieldPtrHeadUint64Indent
case opStructFieldAnonymousHeadUint64Indent:
return opStructFieldPtrAnonymousHeadUint64Indent
case opStructFieldHeadOmitEmptyUint64Indent:
return opStructFieldPtrHeadOmitEmptyUint64Indent
case opStructFieldHeadFloat32Indent:
return opStructFieldPtrHeadFloat32Indent
case opStructFieldAnonymousHeadFloat32Indent:
return opStructFieldPtrAnonymousHeadFloat32Indent
case opStructFieldHeadOmitEmptyFloat32Indent:
return opStructFieldPtrHeadOmitEmptyFloat32Indent
case opStructFieldHeadFloat64Indent:
return opStructFieldPtrHeadFloat64Indent
case opStructFieldAnonymousHeadFloat64Indent:
return opStructFieldPtrAnonymousHeadFloat64Indent
case opStructFieldHeadOmitEmptyFloat64Indent:
return opStructFieldPtrHeadOmitEmptyFloat64Indent
case opStructFieldHeadBoolIndent:
return opStructFieldPtrHeadBoolIndent
case opStructFieldAnonymousHeadBoolIndent:
return opStructFieldPtrAnonymousHeadBoolIndent
case opStructFieldHeadOmitEmptyBoolIndent:
return opStructFieldPtrHeadOmitEmptyBoolIndent
case opStructFieldHeadStringIndent:
return opStructFieldPtrHeadStringIndent
case opStructFieldAnonymousHeadStringIndent:
return opStructFieldPtrAnonymousHeadStringIndent
case opStructFieldHeadOmitEmptyStringIndent:
return opStructFieldPtrHeadOmitEmptyStringIndent
}
return t
}
func (t opType) headToAnonymousHead() opType {
switch t {
case opStructFieldHead:
return opStructFieldAnonymousHead
case opStructFieldPtrHead:
return opStructFieldPtrAnonymousHead
case opStructFieldHeadInt:
return opStructFieldAnonymousHeadInt
case opStructFieldPtrHeadInt:
return opStructFieldPtrAnonymousHeadInt
case opStructFieldHeadInt8:
return opStructFieldAnonymousHeadInt8
case opStructFieldPtrHeadInt8:
return opStructFieldPtrAnonymousHeadInt8
case opStructFieldHeadInt16:
return opStructFieldAnonymousHeadInt16
case opStructFieldPtrHeadInt16:
return opStructFieldPtrAnonymousHeadInt16
case opStructFieldHeadInt32:
return opStructFieldAnonymousHeadInt32
case opStructFieldPtrHeadInt32:
return opStructFieldPtrAnonymousHeadInt32
case opStructFieldHeadInt64:
return opStructFieldAnonymousHeadInt64
case opStructFieldPtrHeadInt64:
return opStructFieldPtrAnonymousHeadInt64
case opStructFieldHeadUint:
return opStructFieldAnonymousHeadUint
case opStructFieldPtrHeadUint:
return opStructFieldPtrAnonymousHeadUint
case opStructFieldHeadUint8:
return opStructFieldAnonymousHeadUint8
case opStructFieldPtrHeadUint8:
return opStructFieldPtrAnonymousHeadUint8
case opStructFieldHeadUint16:
return opStructFieldAnonymousHeadUint16
case opStructFieldPtrHeadUint16:
return opStructFieldPtrAnonymousHeadUint16
case opStructFieldHeadUint32:
return opStructFieldAnonymousHeadUint32
case opStructFieldPtrHeadUint32:
return opStructFieldPtrAnonymousHeadUint32
case opStructFieldHeadUint64:
return opStructFieldAnonymousHeadUint64
case opStructFieldPtrHeadUint64:
return opStructFieldPtrAnonymousHeadUint64
case opStructFieldHeadFloat32:
return opStructFieldAnonymousHeadFloat32
case opStructFieldPtrHeadFloat32:
return opStructFieldPtrAnonymousHeadFloat32
case opStructFieldHeadFloat64:
return opStructFieldAnonymousHeadFloat64
case opStructFieldPtrHeadFloat64:
return opStructFieldPtrAnonymousHeadFloat64
case opStructFieldHeadBool:
return opStructFieldAnonymousHeadBool
case opStructFieldPtrHeadBool:
return opStructFieldPtrAnonymousHeadBool
case opStructFieldHeadString:
return opStructFieldAnonymousHeadString
case opStructFieldPtrHeadString:
return opStructFieldPtrAnonymousHeadString
case opStructFieldHeadIndent:
return opStructFieldAnonymousHeadIndent
case opStructFieldPtrHeadIndent:
return opStructFieldPtrAnonymousHeadIndent
case opStructFieldHeadIntIndent:
return opStructFieldAnonymousHeadIntIndent
case opStructFieldPtrHeadIntIndent:
return opStructFieldPtrAnonymousHeadIntIndent
case opStructFieldHeadInt8Indent:
return opStructFieldAnonymousHeadInt8Indent
case opStructFieldPtrHeadInt8Indent:
return opStructFieldPtrAnonymousHeadInt8Indent
case opStructFieldHeadInt16Indent:
return opStructFieldAnonymousHeadInt16Indent
case opStructFieldPtrHeadInt16Indent:
return opStructFieldPtrAnonymousHeadInt16Indent
case opStructFieldHeadInt32Indent:
return opStructFieldAnonymousHeadInt32Indent
case opStructFieldPtrHeadInt32Indent:
return opStructFieldPtrAnonymousHeadInt32Indent
case opStructFieldHeadInt64Indent:
return opStructFieldAnonymousHeadInt64Indent
case opStructFieldPtrHeadInt64Indent:
return opStructFieldPtrAnonymousHeadInt64Indent
case opStructFieldHeadUintIndent:
return opStructFieldAnonymousHeadUintIndent
case opStructFieldPtrHeadUintIndent:
return opStructFieldPtrAnonymousHeadUintIndent
case opStructFieldHeadUint8Indent:
return opStructFieldAnonymousHeadUint8Indent
case opStructFieldPtrHeadUint8Indent:
return opStructFieldPtrAnonymousHeadUint8Indent
case opStructFieldHeadUint16Indent:
return opStructFieldAnonymousHeadUint16Indent
case opStructFieldPtrHeadUint16Indent:
return opStructFieldPtrAnonymousHeadUint16Indent
case opStructFieldHeadUint32Indent:
return opStructFieldAnonymousHeadUint32Indent
case opStructFieldPtrHeadUint32Indent:
return opStructFieldPtrAnonymousHeadUint32Indent
case opStructFieldHeadUint64Indent:
return opStructFieldAnonymousHeadUint64Indent
case opStructFieldPtrHeadUint64Indent:
return opStructFieldPtrAnonymousHeadUint64Indent
case opStructFieldHeadFloat32Indent:
return opStructFieldAnonymousHeadFloat32Indent
case opStructFieldPtrHeadFloat32Indent:
return opStructFieldPtrAnonymousHeadFloat32Indent
case opStructFieldHeadFloat64Indent:
return opStructFieldAnonymousHeadFloat64Indent
case opStructFieldPtrHeadFloat64Indent:
return opStructFieldPtrAnonymousHeadFloat64Indent
case opStructFieldHeadBoolIndent:
return opStructFieldAnonymousHeadBoolIndent
case opStructFieldPtrHeadBoolIndent:
return opStructFieldPtrAnonymousHeadBoolIndent
case opStructFieldHeadStringIndent:
return opStructFieldAnonymousHeadStringIndent
case opStructFieldPtrHeadStringIndent:
return opStructFieldPtrAnonymousHeadStringIndent
}
return t
}
func (t opType) headToOmitEmptyHead() opType {
switch t {
case opStructFieldHead:
return opStructFieldHeadOmitEmpty
case opStructFieldPtrHead:
return opStructFieldPtrHeadOmitEmpty
case opStructFieldHeadInt:
return opStructFieldHeadOmitEmptyInt
case opStructFieldPtrHeadInt:
return opStructFieldPtrHeadOmitEmptyInt
case opStructFieldHeadInt8:
return opStructFieldHeadOmitEmptyInt8
case opStructFieldPtrHeadInt8:
return opStructFieldPtrHeadOmitEmptyInt8
case opStructFieldHeadInt16:
return opStructFieldHeadOmitEmptyInt16
case opStructFieldPtrHeadInt16:
return opStructFieldPtrHeadOmitEmptyInt16
case opStructFieldHeadInt32:
return opStructFieldHeadOmitEmptyInt32
case opStructFieldPtrHeadInt32:
return opStructFieldPtrHeadOmitEmptyInt32
case opStructFieldHeadInt64:
return opStructFieldHeadOmitEmptyInt64
case opStructFieldPtrHeadInt64:
return opStructFieldPtrHeadOmitEmptyInt64
case opStructFieldHeadUint:
return opStructFieldHeadOmitEmptyUint
case opStructFieldPtrHeadUint:
return opStructFieldPtrHeadOmitEmptyUint
case opStructFieldHeadUint8:
return opStructFieldHeadOmitEmptyUint8
case opStructFieldPtrHeadUint8:
return opStructFieldPtrHeadOmitEmptyUint8
case opStructFieldHeadUint16:
return opStructFieldHeadOmitEmptyUint16
case opStructFieldPtrHeadUint16:
return opStructFieldPtrHeadOmitEmptyUint16
case opStructFieldHeadUint32:
return opStructFieldHeadOmitEmptyUint32
case opStructFieldPtrHeadUint32:
return opStructFieldPtrHeadOmitEmptyUint32
case opStructFieldHeadUint64:
return opStructFieldHeadOmitEmptyUint64
case opStructFieldPtrHeadUint64:
return opStructFieldPtrHeadOmitEmptyUint64
case opStructFieldHeadFloat32:
return opStructFieldHeadOmitEmptyFloat32
case opStructFieldPtrHeadFloat32:
return opStructFieldPtrHeadOmitEmptyFloat32
case opStructFieldHeadFloat64:
return opStructFieldHeadOmitEmptyFloat64
case opStructFieldPtrHeadFloat64:
return opStructFieldPtrHeadOmitEmptyFloat64
case opStructFieldHeadBool:
return opStructFieldHeadOmitEmptyBool
case opStructFieldPtrHeadBool:
return opStructFieldPtrHeadOmitEmptyBool
case opStructFieldHeadString:
return opStructFieldHeadOmitEmptyString
case opStructFieldPtrHeadString:
return opStructFieldPtrHeadOmitEmptyString
case opStructFieldHeadIndent:
return opStructFieldHeadOmitEmptyIndent
case opStructFieldPtrHeadIndent:
return opStructFieldPtrHeadOmitEmptyIndent
case opStructFieldHeadIntIndent:
return opStructFieldHeadOmitEmptyIntIndent
case opStructFieldPtrHeadIntIndent:
return opStructFieldPtrHeadOmitEmptyIntIndent
case opStructFieldHeadInt8Indent:
return opStructFieldHeadOmitEmptyInt8Indent
case opStructFieldPtrHeadInt8Indent:
return opStructFieldPtrHeadOmitEmptyInt8Indent
case opStructFieldHeadInt16Indent:
return opStructFieldHeadOmitEmptyInt16Indent
case opStructFieldPtrHeadInt16Indent:
return opStructFieldPtrHeadOmitEmptyInt16Indent
case opStructFieldHeadInt32Indent:
return opStructFieldHeadOmitEmptyInt32Indent
case opStructFieldPtrHeadInt32Indent:
return opStructFieldPtrHeadOmitEmptyInt32Indent
case opStructFieldHeadInt64Indent:
return opStructFieldHeadOmitEmptyInt64Indent
case opStructFieldPtrHeadInt64Indent:
return opStructFieldPtrHeadOmitEmptyInt64Indent
case opStructFieldHeadUintIndent:
return opStructFieldHeadOmitEmptyUintIndent
case opStructFieldPtrHeadUintIndent:
return opStructFieldPtrHeadOmitEmptyUintIndent
case opStructFieldHeadUint8Indent:
return opStructFieldHeadOmitEmptyUint8Indent
case opStructFieldPtrHeadUint8Indent:
return opStructFieldPtrHeadOmitEmptyUint8Indent
case opStructFieldHeadUint16Indent:
return opStructFieldHeadOmitEmptyUint16Indent
case opStructFieldPtrHeadUint16Indent:
return opStructFieldPtrHeadOmitEmptyUint16Indent
case opStructFieldHeadUint32Indent:
return opStructFieldHeadOmitEmptyUint32Indent
case opStructFieldPtrHeadUint32Indent:
return opStructFieldPtrHeadOmitEmptyUint32Indent
case opStructFieldHeadUint64Indent:
return opStructFieldHeadOmitEmptyUint64Indent
case opStructFieldPtrHeadUint64Indent:
return opStructFieldPtrHeadOmitEmptyUint64Indent
case opStructFieldHeadFloat32Indent:
return opStructFieldHeadOmitEmptyFloat32Indent
case opStructFieldPtrHeadFloat32Indent:
return opStructFieldPtrHeadOmitEmptyFloat32Indent
case opStructFieldHeadFloat64Indent:
return opStructFieldHeadOmitEmptyFloat64Indent
case opStructFieldPtrHeadFloat64Indent:
return opStructFieldPtrHeadOmitEmptyFloat64Indent
case opStructFieldHeadBoolIndent:
return opStructFieldHeadOmitEmptyBoolIndent
case opStructFieldPtrHeadBoolIndent:
return opStructFieldPtrHeadOmitEmptyBoolIndent
case opStructFieldHeadStringIndent:
return opStructFieldHeadOmitEmptyStringIndent
case opStructFieldPtrHeadStringIndent:
return opStructFieldPtrHeadOmitEmptyStringIndent
}
return t
}
func (t opType) ptrHeadToHead() opType {
switch t {
case opStructFieldPtrHead:
return opStructFieldHead
case opStructFieldPtrAnonymousHead:
return opStructFieldAnonymousHead
case opStructFieldPtrHeadOmitEmpty:
return opStructFieldHeadOmitEmpty
case opStructFieldPtrHeadInt:
return opStructFieldHeadInt
case opStructFieldPtrAnonymousHeadInt:
return opStructFieldAnonymousHeadInt
case opStructFieldPtrHeadOmitEmptyInt:
return opStructFieldHeadOmitEmptyInt
case opStructFieldPtrHeadInt8:
return opStructFieldHeadInt8
case opStructFieldPtrAnonymousHeadInt8:
return opStructFieldAnonymousHeadInt8
case opStructFieldPtrHeadOmitEmptyInt8:
return opStructFieldHeadOmitEmptyInt8
case opStructFieldPtrHeadInt16:
return opStructFieldHeadInt16
case opStructFieldPtrAnonymousHeadInt16:
return opStructFieldAnonymousHeadInt16
case opStructFieldPtrHeadOmitEmptyInt16:
return opStructFieldHeadOmitEmptyInt16
case opStructFieldPtrHeadInt32:
return opStructFieldHeadInt32
case opStructFieldPtrAnonymousHeadInt32:
return opStructFieldAnonymousHeadInt32
case opStructFieldPtrHeadOmitEmptyInt32:
return opStructFieldHeadOmitEmptyInt32
case opStructFieldPtrHeadInt64:
return opStructFieldHeadInt64
case opStructFieldPtrAnonymousHeadInt64:
return opStructFieldAnonymousHeadInt64
case opStructFieldPtrHeadOmitEmptyInt64:
return opStructFieldHeadOmitEmptyInt64
case opStructFieldPtrHeadUint:
return opStructFieldHeadUint
case opStructFieldPtrAnonymousHeadUint:
return opStructFieldAnonymousHeadUint
case opStructFieldPtrHeadOmitEmptyUint:
return opStructFieldHeadOmitEmptyUint
case opStructFieldPtrHeadUint8:
return opStructFieldHeadUint8
case opStructFieldPtrAnonymousHeadUint8:
return opStructFieldAnonymousHeadUint8
case opStructFieldPtrHeadOmitEmptyUint8:
return opStructFieldHeadOmitEmptyUint8
case opStructFieldPtrHeadUint16:
return opStructFieldHeadUint16
case opStructFieldPtrAnonymousHeadUint16:
return opStructFieldAnonymousHeadUint16
case opStructFieldPtrHeadOmitEmptyUint16:
return opStructFieldHeadOmitEmptyUint16
case opStructFieldPtrHeadUint32:
return opStructFieldHeadUint32
case opStructFieldPtrAnonymousHeadUint32:
return opStructFieldAnonymousHeadUint32
case opStructFieldPtrHeadOmitEmptyUint32:
return opStructFieldHeadOmitEmptyUint32
case opStructFieldPtrHeadUint64:
return opStructFieldHeadUint64
case opStructFieldPtrAnonymousHeadUint64:
return opStructFieldAnonymousHeadUint64
case opStructFieldPtrHeadOmitEmptyUint64:
return opStructFieldHeadOmitEmptyUint64
case opStructFieldPtrHeadFloat32:
return opStructFieldHeadFloat32
case opStructFieldPtrAnonymousHeadFloat32:
return opStructFieldAnonymousHeadFloat32
case opStructFieldPtrHeadOmitEmptyFloat32:
return opStructFieldHeadOmitEmptyFloat32
case opStructFieldPtrHeadFloat64:
return opStructFieldHeadFloat64
case opStructFieldPtrAnonymousHeadFloat64:
return opStructFieldAnonymousHeadFloat64
case opStructFieldPtrHeadOmitEmptyFloat64:
return opStructFieldHeadOmitEmptyFloat64
case opStructFieldPtrHeadBool:
return opStructFieldHeadBool
case opStructFieldPtrAnonymousHeadBool:
return opStructFieldAnonymousHeadBool
case opStructFieldPtrHeadOmitEmptyBool:
return opStructFieldHeadOmitEmptyBool
case opStructFieldPtrHeadString:
return opStructFieldHeadString
case opStructFieldPtrAnonymousHeadString:
return opStructFieldAnonymousHeadString
case opStructFieldPtrHeadOmitEmptyString:
return opStructFieldHeadOmitEmptyString
case opStructFieldPtrHeadIndent:
return opStructFieldHeadIndent
case opStructFieldPtrAnonymousHeadIndent:
return opStructFieldAnonymousHeadIndent
case opStructFieldPtrHeadOmitEmptyIndent:
return opStructFieldHeadOmitEmptyIndent
case opStructFieldPtrHeadIntIndent:
return opStructFieldHeadIntIndent
case opStructFieldPtrAnonymousHeadIntIndent:
return opStructFieldAnonymousHeadIntIndent
case opStructFieldPtrHeadOmitEmptyIntIndent:
return opStructFieldHeadOmitEmptyIntIndent
case opStructFieldPtrHeadInt8Indent:
return opStructFieldHeadInt8Indent
case opStructFieldPtrAnonymousHeadInt8Indent:
return opStructFieldAnonymousHeadInt8Indent
case opStructFieldPtrHeadOmitEmptyInt8Indent:
return opStructFieldHeadOmitEmptyInt8Indent
case opStructFieldPtrHeadInt16Indent:
return opStructFieldHeadInt16Indent
case opStructFieldPtrAnonymousHeadInt16Indent:
return opStructFieldAnonymousHeadInt16Indent
case opStructFieldPtrHeadOmitEmptyInt16Indent:
return opStructFieldHeadOmitEmptyInt16Indent
case opStructFieldPtrHeadInt32Indent:
return opStructFieldHeadInt32Indent
case opStructFieldPtrAnonymousHeadInt32Indent:
return opStructFieldAnonymousHeadInt32Indent
case opStructFieldPtrHeadOmitEmptyInt32Indent:
return opStructFieldHeadOmitEmptyInt32Indent
case opStructFieldPtrHeadInt64Indent:
return opStructFieldHeadInt64Indent
case opStructFieldPtrAnonymousHeadInt64Indent:
return opStructFieldAnonymousHeadInt64Indent
case opStructFieldPtrHeadOmitEmptyInt64Indent:
return opStructFieldHeadOmitEmptyInt64Indent
case opStructFieldPtrHeadUintIndent:
return opStructFieldHeadUintIndent
case opStructFieldPtrAnonymousHeadUintIndent:
return opStructFieldAnonymousHeadUintIndent
case opStructFieldPtrHeadOmitEmptyUintIndent:
return opStructFieldHeadOmitEmptyUintIndent
case opStructFieldPtrHeadUint8Indent:
return opStructFieldHeadUint8Indent
case opStructFieldPtrAnonymousHeadUint8Indent:
return opStructFieldAnonymousHeadUint8Indent
case opStructFieldPtrHeadOmitEmptyUint8Indent:
return opStructFieldHeadOmitEmptyUint8Indent
case opStructFieldPtrHeadUint16Indent:
return opStructFieldHeadUint16Indent
case opStructFieldPtrAnonymousHeadUint16Indent:
return opStructFieldAnonymousHeadUint16Indent
case opStructFieldPtrHeadOmitEmptyUint16Indent:
return opStructFieldHeadOmitEmptyUint16Indent
case opStructFieldPtrHeadUint32Indent:
return opStructFieldHeadUint32Indent
case opStructFieldPtrAnonymousHeadUint32Indent:
return opStructFieldAnonymousHeadUint32Indent
case opStructFieldPtrHeadOmitEmptyUint32Indent:
return opStructFieldHeadOmitEmptyUint32Indent
case opStructFieldPtrHeadUint64Indent:
return opStructFieldHeadUint64Indent
case opStructFieldPtrAnonymousHeadUint64Indent:
return opStructFieldAnonymousHeadUint64Indent
case opStructFieldPtrHeadOmitEmptyUint64Indent:
return opStructFieldHeadOmitEmptyUint64Indent
case opStructFieldPtrHeadFloat32Indent:
return opStructFieldHeadFloat32Indent
case opStructFieldPtrAnonymousHeadFloat32Indent:
return opStructFieldAnonymousHeadFloat32Indent
case opStructFieldPtrHeadOmitEmptyFloat32Indent:
return opStructFieldHeadOmitEmptyFloat32Indent
case opStructFieldPtrHeadFloat64Indent:
return opStructFieldHeadFloat64Indent
case opStructFieldPtrAnonymousHeadFloat64Indent:
return opStructFieldAnonymousHeadFloat64Indent
case opStructFieldPtrHeadOmitEmptyFloat64Indent:
return opStructFieldHeadOmitEmptyFloat64Indent
case opStructFieldPtrHeadBoolIndent:
return opStructFieldHeadBoolIndent
case opStructFieldPtrAnonymousHeadBoolIndent:
return opStructFieldAnonymousHeadBoolIndent
case opStructFieldPtrHeadOmitEmptyBoolIndent:
return opStructFieldHeadOmitEmptyBoolIndent
case opStructFieldPtrHeadStringIndent:
return opStructFieldHeadStringIndent
case opStructFieldPtrAnonymousHeadStringIndent:
return opStructFieldAnonymousHeadStringIndent
case opStructFieldPtrHeadOmitEmptyStringIndent:
return opStructFieldHeadOmitEmptyStringIndent
}
return t
}
func (t opType) fieldToOmitEmptyField() opType {
switch t {
case opStructField:
return opStructFieldOmitEmpty
case opStructFieldInt:
return opStructFieldOmitEmptyInt
case opStructFieldInt8:
return opStructFieldOmitEmptyInt8
case opStructFieldInt16:
return opStructFieldOmitEmptyInt16
case opStructFieldInt32:
return opStructFieldOmitEmptyInt32
case opStructFieldInt64:
return opStructFieldOmitEmptyInt64
case opStructFieldUint:
return opStructFieldOmitEmptyUint
case opStructFieldUint8:
return opStructFieldOmitEmptyUint8
case opStructFieldUint16:
return opStructFieldOmitEmptyUint16
case opStructFieldUint32:
return opStructFieldOmitEmptyUint32
case opStructFieldUint64:
return opStructFieldOmitEmptyUint64
case opStructFieldFloat32:
return opStructFieldOmitEmptyFloat32
case opStructFieldFloat64:
return opStructFieldOmitEmptyFloat64
case opStructFieldBool:
return opStructFieldOmitEmptyBool
case opStructFieldString:
return opStructFieldOmitEmptyString
case opStructFieldIndent:
return opStructFieldOmitEmptyIndent
case opStructFieldIntIndent:
return opStructFieldOmitEmptyIntIndent
case opStructFieldInt8Indent:
return opStructFieldOmitEmptyInt8Indent
case opStructFieldInt16Indent:
return opStructFieldOmitEmptyInt16Indent
case opStructFieldInt32Indent:
return opStructFieldOmitEmptyInt32Indent
case opStructFieldInt64Indent:
return opStructFieldOmitEmptyInt64Indent
case opStructFieldUintIndent:
return opStructFieldOmitEmptyUintIndent
case opStructFieldUint8Indent:
return opStructFieldOmitEmptyUint8Indent
case opStructFieldUint16Indent:
return opStructFieldOmitEmptyUint16Indent
case opStructFieldUint32Indent:
return opStructFieldOmitEmptyUint32Indent
case opStructFieldUint64Indent:
return opStructFieldOmitEmptyUint64Indent
case opStructFieldFloat32Indent:
return opStructFieldOmitEmptyFloat32Indent
case opStructFieldFloat64Indent:
return opStructFieldOmitEmptyFloat64Indent
case opStructFieldBoolIndent:
return opStructFieldOmitEmptyBoolIndent
case opStructFieldStringIndent:
return opStructFieldOmitEmptyStringIndent
}
return t
}