| 524 | } |
| 525 | |
| 526 | Node* Node::addTo(Node* parent, int order, String tag) { |
| 527 | AssertIf(parent == this, "can not add node to itself."); |
| 528 | AssertIf(parent == nullptr, "add node to invalid parent."); |
| 529 | parent->addChild(this, order, tag); |
| 530 | return this; |
| 531 | } |
| 532 | |
| 533 | Node* Node::addTo(Node* parent, int zOrder) { |
| 534 | return addTo(parent, zOrder, getTag()); |
no test coverage detected