(returnFiber, currentFirstChild)
| 8932 | } |
| 8933 | |
| 8934 | function deleteRemainingChildren(returnFiber, currentFirstChild) { |
| 8935 | if (!shouldTrackSideEffects) { |
| 8936 | // Noop. |
| 8937 | return null; |
| 8938 | } |
| 8939 | |
| 8940 | // TODO: For the shouldClone case, this could be micro-optimized a bit by |
| 8941 | // assuming that after the first child we've already added everything. |
| 8942 | var childToDelete = currentFirstChild; |
| 8943 | while (childToDelete !== null) { |
| 8944 | deleteChild(returnFiber, childToDelete); |
| 8945 | childToDelete = childToDelete.sibling; |
| 8946 | } |
| 8947 | return null; |
| 8948 | } |
| 8949 | |
| 8950 | function mapRemainingChildren(returnFiber, currentFirstChild) { |
| 8951 | // Add the remaining children to a temporary map so that we can find them by |
no test coverage detected