scalagen.readUnionField.scala Maven / Gradle / Ivy
The newest version!
case {{id}} => { /* {{fieldName}} */
_field.`type` match {
{{#isEnum}}
case TType.I32 | TType.ENUM => {
{{/isEnum}}
{{^isEnum}}
case TType.{{constType}} => {
{{/isEnum}}
_result = {{StructName}}.{{FieldName}}({
{{>readValue}}
})
}
case _ => TProtocolUtil.skip(_iprot, _field.`type`)
}
}