Exemplo n.º 1
0
 def vtable_names(self):
     """Names of the vtables (list of `str`)."""
     return names_of(self.vtables)
Exemplo n.º 2
0
 def classes_names(self):
     """Names of the classes (list of `str`)."""
     return names_of(self.classes)
 def global_var_names(self):
     """Names of the global variables (list of `str`)."""
     return names_of(self.global_vars)
 def param_names(self):
     """Names of the parameters (list of `str`)."""
     return names_of(self.params)
 def union_names(self):
     """Names of the unions (list of `str`)."""
     return names_of(self.named_unions)
 def enum_names(self):
     """Names of the enums (list of `str`)."""
     return names_of(self.named_enums)
 def struct_names(self):
     """Names of the structures (list of `str`)."""
     return names_of(self.named_structs)
 def func_names(self):
     """Names of the functions (list of `str`)."""
     return names_of(self.funcs)
Exemplo n.º 9
0
 def test_returns_correct_names_when_there_are_objects(self):
     self.assertEqual(names_of([Variable('a'), Variable('b')]), ['a', 'b'])
Exemplo n.º 10
0
 def test_returns_empty_list_when_there_are_no_objects(self):
     self.assertEqual(names_of([]), [])
 def member_names(self):
     """Names of the members (list of `str`)."""
     return names_of(self.members)