(returnFiber, currentFirstChild)
| 13595 | } |
| 13596 | |
| 13597 | function deleteRemainingChildren(returnFiber, currentFirstChild) { |
| 13598 | if (!shouldTrackSideEffects) { |
| 13599 | // Noop. |
| 13600 | return null; |
| 13601 | } // TODO: For the shouldClone case, this could be micro-optimized a bit by |
| 13602 | // assuming that after the first child we've already added everything. |
| 13603 | |
| 13604 | |
| 13605 | var childToDelete = currentFirstChild; |
| 13606 | |
| 13607 | while (childToDelete !== null) { |
| 13608 | deleteChild(returnFiber, childToDelete); |
| 13609 | childToDelete = childToDelete.sibling; |
| 13610 | } |
| 13611 | |
| 13612 | return null; |
| 13613 | } |
| 13614 | |
| 13615 | function mapRemainingChildren(returnFiber, currentFirstChild) { |
| 13616 | // Add the remaining children to a temporary map so that we can find them by |
no test coverage detected