Home
last modified time | relevance | path

Searched refs:union_field (Results 1 – 3 of 3) 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/mesa3d/src/compiler/glsl/
Dir_expression_operation.py28 def __init__(self, c_type, union_field, glsl_type): argument
30 self.union_field = union_field
397 src0 = "op[0]->value.{0}[{1}]".format(types[0].union_field, indices[0])
398 …src1 = "op[1]->value.{0}[{1}]".format(types[1].union_field, indices[1]) if len(types) >= 2 else "E…
399 …src2 = "op[2]->value.{0}[{1}]".format(types[2].union_field, indices[2]) if len(types) >= 3 else "E…
400 src3 = "op[3]->value.{0}[c]".format(types[3].union_field) if len(types) >= 4 else "ERROR"
402 …expr = self.c_expression[types[0].union_field] if types[0].union_field in self.c_expression else s…
/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()