Home
last modified time | relevance | path

Searched refs:union_field (Results 1 – 2 of 2) sorted by relevance

/external/libmojo/mojo/public/tools/bindings/pylib/mojom/parse/
Dtranslate.py149 def UnionFieldToDict(union_field): argument
150 assert isinstance(union_field, ast.UnionField)
151 data = {'name': union_field.name,
152 'kind': _MapKind(union_field.typename)}
154 union_field.ordinal.value
155 if union_field.ordinal else None)
157 _AttributeListToDict(union_field.attribute_list))
/external/flatbuffers/src/
Didl_gen_cpp.cpp1424 const FieldDef *union_field) { in GenUnpackFieldStatement() argument
1450 assert(union_field->value.type.base_type == BASE_TYPE_UNION); in GenUnpackFieldStatement()
1453 code += "_o->" + union_field->name + ".type = _e;"; in GenUnpackFieldStatement()