public function add($aChild, $sName = null, $bTakeover = true) { if ($aChild instanceof Macro) { $aAttrVal = new AttributeValue(null, '', $aChild->position(), $aChild->line()); $aAttrVal->setEndPosition($aChild->endPosition()); $aAttrVal->add($aChild); $this->attributes()->add($aAttrVal); $aAttrVal->setParent($this); $aChild->setParent($this); } }