Lines Matching refs:kind
304 self._entry_map[e.kind][e.name] = e
323 self._entry_map[c.kind][c.name] = c
351 self._entry_map[p.kind].pop(p.name)
354 def is_entry_this_kind(self, entry, kind): argument
365 if kind not in ("static", "dynamic", "controls"):
366 assert(False), "Unknown kind value " + kind
368 return entry.name in self._entry_map[kind]
493 for kind in section.kinds:
494 kind._leafs = []
497 group_entry_by_kind = itertools.groupby(section._leafs, lambda x: x.kind)
505 kind = Kind(kind_name, section)
506 section._kinds.append(kind)
509 kind = section._kinds[idx]
512 if p not in kind._leafs:
513 kind._leafs.append(p)
515 for kind in section._kinds:
516 kind.validate_tree()
517 self._construct_inner_namespaces(kind)
518 kind.validate_tree()
519 self._construct_entries(kind)
520 kind.validate_tree()
524 "construct_kinds, with kind = '%s'") %(kind)
526 if not kind.validate_tree():
528 "construct_kinds, with kind = '%s'") %(kind)
870 kind = new_type(self.name, self.parent)
871 kind._namespaces = new_ins_dict.values()
872 kind._entries = new_ent_dict.values()
874 return kind
1154 def kind(self): member in Entry