Searched refs:union_field (Results 1 – 2 of 2) sorted by relevance
149 def UnionFieldToDict(union_field): argument150 assert isinstance(union_field, ast.UnionField)151 data = {'name': union_field.name,152 'kind': _MapKind(union_field.typename)}154 union_field.ordinal.value155 if union_field.ordinal else None)157 _AttributeListToDict(union_field.attribute_list))
1424 const FieldDef *union_field) { in GenUnpackFieldStatement() argument1450 assert(union_field->value.type.base_type == BASE_TYPE_UNION); in GenUnpackFieldStatement()1453 code += "_o->" + union_field->name + ".type = _e;"; in GenUnpackFieldStatement()