Home
last modified time | relevance | path

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

/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dtranslate.py239 def _Struct(module, parsed_struct): argument
249 struct.mojom_name = parsed_struct.mojom_name
250 struct.native_only = parsed_struct.body is None
260 _ElemsOfType(parsed_struct.body, ast.Enum, parsed_struct.mojom_name))
263 _ElemsOfType(parsed_struct.body, ast.Const, parsed_struct.mojom_name))
266 parsed_struct.body, ast.StructField, parsed_struct.mojom_name)
267 struct.attributes = _AttributeListToDict(parsed_struct.attribute_list)
/external/python/pycparser/tests/
Dtest_c_parser.py1061 parsed_struct = self.parse(s1).ext[0]
1066 self.assertEqual(expand_decl(parsed_struct),
1078 self.assertEqual(parsed_struct.type.type.decls[0].bitsize.value, '6')
1079 self.assertEqual(parsed_struct.type.type.decls[1].bitsize.value, '2')
1095 parsed_struct = self.parse(s1).ext[0]
1096 self.assertEqual(expand_decl(parsed_struct),
1100 parsed_struct = self.parse(s2).ext[0]
1101 self.assertEqual(expand_decl(parsed_struct),
1105 parsed_struct = self.parse(s3).ext[0]
1106 self.assertEqual(expand_decl(parsed_struct),