Add child sprite. Child will be nested within parent
513302
def add_child(self, *sprites):
        """"""
        for sprite in sprites:
            self._add(sprite)
        self._sort()
        self.redraw()
688673
def add_child(self, child):
        
        self.children.append(child)
        child.parent = self
        self.udepth = max([child.udepth for child in self.children]) + 1
235639
function(node, children, lpad) {
    var childLpad = lpad + 2;
    
    for (var i=0; i < children.length; i++) {
      var child = children[i];
      if (child instanceof Array) {
        var nestedChildren = child;
        this.renderChildren(node, nestedChildren, lpad)
      } else {
        node.push(child.render(childLpad));
      }
    }    
  }
319221
def add_child(self, obj):
        """"""
        self.children.append(obj)
        obj.parents.append(self)
582640
def add_child(self, child):
        ''''''
        super(RootNode, self).add_child(child)
        child.attr_wrapper = self.attr_wrapper
318523
def add_child(node)
      # bulk update nodes by a sql query
      _update_nodes(r_ptr, r_ptr, "r_ptr >= #{r_ptr}")

      # child node's pointer
      node.l_ptr = r_ptr
      node.r_ptr = r_ptr + 1
      node.depth = depth + 1
      node.save
    end
33686
public void addChild(Paintable p) {
		if (null == p) {
			throw new IllegalArgumentException("Please provide a paintable.");
		}
		if (this.equals(p)) {
			throw new IllegalArgumentException("Cannot add itself as a child.");
		}
		if (children.contains(p)) {
			return;
		} // nothing changes, no exception
		if (p instanceof Composite && ((Composite) p).contains(this)) {
			throw new IllegalArgumentException("Cannot add this Paintable (circular reference).");
		}

		children.add(p);
	}
697903
def add_child(self, value):
        
        child = FPNode(value, 1, self)
        self.children.append(child)
        return child
1140141
function insert (parent, children) {
  if (!parent || !children) {
    return
  }
  let nodes = Array.prototype.slice.call(children)
  if (nodes.length === 0) {
    nodes.push(children)
  }
  for (let i = 0; i < nodes.length; i++) {
    if (this.contains(nodes[i], parent)) {
      continue
    }
    if (nodes[i] !== parent && parent.appendChild) {
      parent.appendChild(nodes[i])
    }
  }
}
296615
private void addChildren(
        CmsTreeItem parent,
        List<CmsCategoryTreeEntry> children,
        Collection<String> selectedCategories) {

        if (children != null) {
            for (CmsCategoryTreeEntry child : children) {
                // set the category tree item and add to parent tree item
                CmsTreeItem treeItem;
                boolean isPartofPath = false;
                Iterator<String> it = selectedCategories.iterator();
                while (it.hasNext()) {
                    String path = it.next();
                    if (path.contains(child.getPath())) {
                        isPartofPath = true;
                    }
                }
                if (isPartofPath) {
                    m_singleSidePath = child.getSitePath();
                    m_valuesSet++;
                    if (m_selectParent || !hasSelectedChildren(child.getChildren(), selectedCategories)) {
                        m_allSidePath.add(child.getSitePath());
                        treeItem = buildTreeItem(child, selectedCategories, false);
                    } else {
                        treeItem = buildTreeItem(child, selectedCategories, true);
                    }
                    addChildren(treeItem, child.getChildren(), selectedCategories);
                    parent.addChild(treeItem);
                }

            }
        }
    }
902609
protected void moveChild(BaseUIComponent child, BaseUIComponent before) {
        child.getParent().addChild(child, before);
    }
441266
def add_child(self, child):
        """"""
        if not issubclass(child.__class__, SceneGraph):
            raise TypeError("child must have parent/child iteration implemented to be a node in a SceneGraph.")
        # if not hasattr(child, 'update'):
            # raise TypeError("child must have an attribute update()")

        child._parent = self
        self._children.append(child)
1152827
function addChild (getValue, newChild, tree) {
    tree.children.splice(
      binaryIndexBy(getValue, getValue(newChild), tree.children),
      0, newChild
    );

    return newChild;
  }
1043437
def add(self, child):
        

        if isinstance(child, Component):
            self.add_child(child)
        else:
            raise ModelError('Unsupported child element')
89690
def add_child(self, child):
        
        self.children.append(child)
        child.parent = self

        if self.view and self.view.is_loaded:
            self.view.dispatch({
                'name': 'append',
                'html': child.compile(),
                'selector': '#' + str(self.id)
            })
1113538
function add(items) {
    var self = this;
    var children = self.get('children');
    if (Util.isArray(items)) {
      Util.each(items, function (item) {
        var parent = item.get('parent');
        if (parent) {
          parent.removeChild(item, false);
        }
        self._setCfgProperty(item);
      });
      self._cfg.children = children.concat(items);
    } else {
      var item = items;
      var parent = item.get('parent');
      if (parent) {
        parent.removeChild(item, false);
      }
      self._setCfgProperty(item);
      children.push(item);
    }
    return self;
  }
1158817
def child_added(self, child):
        
        super(AbstractWidgetItemGroup, self).child_added(child)
        self.get_member('_items').reset(self)