(returnFiber, currentFirstChild)
| 8967 | } |
| 8968 | |
| 8969 | function deleteRemainingChildren(returnFiber, currentFirstChild) { |
| 8970 | if (!shouldTrackSideEffects) { |
| 8971 | // Noop. |
| 8972 | return null; |
| 8973 | } |
| 8974 | |
| 8975 | // TODO: For the shouldClone case, this could be micro-optimized a bit by |
| 8976 | // assuming that after the first child we've already added everything. |
| 8977 | var childToDelete = currentFirstChild; |
| 8978 | while (childToDelete !== null) { |
| 8979 | deleteChild(returnFiber, childToDelete); |
| 8980 | childToDelete = childToDelete.sibling; |
| 8981 | } |
| 8982 | return null; |
| 8983 | } |
| 8984 | |
| 8985 | function mapRemainingChildren(returnFiber, currentFirstChild) { |
| 8986 | // Add the remaining children to a temporary map so that we can find them by |
no test coverage detected