Lines Matching refs:parent
47 parent: An edge to a parent Node.
57 def parent(self):
126 parent = self.parent
128 while parent is not None:
129 if pred(parent):
130 yield parent
131 parent = parent.parent
178 if child.parent != self:
179 print >> sys.stderr, ("ERROR: Node '%s' doesn't match the parent" + \
181 %(child, self, child.parent)
196 parent: An edge to the parent Node. This is always None for Metadata.
342 # remove from parent's entries list
343 if p.parent is not None:
344 p.parent._entries.remove(p)
371 # invoke this to generate the parent/child node graph all these objects
530 def _construct_inner_namespaces(self, parent, depth=0):
531 #parent is InnerNamespace or Kind
532 ins_dict = self._dictionary_by_name(parent.namespaces)
536 for p in parent._leafs:
541 ins = ins_dict.get(ins_str, InnerNamespace(ins_str, parent))
555 if ins not in parent.namespaces:
556 parent._namespaces.append(ins)
564 def _construct_entries(self, parent, depth=0):
565 #parent is InnerNamespace or Kind
566 entry_dict = self._dictionary_by_name(parent.entries)
567 for p in parent._leafs:
576 old_parent = entry.parent
577 entry._parent = parent
579 if entry not in parent.entries:
580 parent._entries.append(entry)
582 if old_parent is not None and old_parent != parent:
583 print >> sys.stderr, ("ERROR: Parent changed from '%s' to '%s' for " + \
585 %(old_parent.name, parent.name, entry.name)
604 parent: An edge to the parent, which is always the Metadata root node.
607 def __init__(self, name, parent, description=""):
611 self._parent = parent
638 parent: An edge to the parent, which is always the Metadata root node.
641 def __init__(self, name, parent, languages=None):
643 self._parent = parent
667 parent: An edge to the parent, which is always the Metadata root node.
670 def __init__(self, name, parent, sections=[]):
672 self._parent = parent # MetadataSet
688 parent: An edge to the parent, which is always an OuterNamespace instance.
694 def __init__(self, name, parent, description=None, kinds=[]):
696 self._parent = parent
732 k = Kind(el.name, el.parent)
766 their parents will point to the old parents and not to the new parent.
768 combined = Kind(name="combined", parent=self)
783 parent: An edge to the parent, which is always a Section instance.
788 def __init__(self, name, parent):
790 self._parent = parent
862 InnerNamespace(ins.name, parent=self))
870 kind = new_type(self.name, self.parent)
883 parent: An edge to the parent, which is an InnerNamespace or a Kind.
888 def __init__(self, name, parent):
890 self._parent = parent
966 parent: An edge to the parent, always an Enum instance.
968 def __init__(self, name, parent,
977 self._parent = parent
1011 parent: An edge to the parent, always an Entry instance.
1016 def __init__(self, parent, values, ids={}, deprecateds=[],
1023 self._parent = parent
1042 parent: An edge to the parent node, which is an InnerNamespace or Kind.
1091 parent
1501 props_common = ['parent', 'name', 'container',