(returnFiber, currentFirstChild)
| 9070 | } |
| 9071 | |
| 9072 | function deleteRemainingChildren(returnFiber, currentFirstChild) { |
| 9073 | if (!shouldTrackSideEffects) { |
| 9074 | // Noop. |
| 9075 | return null; |
| 9076 | } |
| 9077 | |
| 9078 | // TODO: For the shouldClone case, this could be micro-optimized a bit by |
| 9079 | // assuming that after the first child we've already added everything. |
| 9080 | var childToDelete = currentFirstChild; |
| 9081 | while (childToDelete !== null) { |
| 9082 | deleteChild(returnFiber, childToDelete); |
| 9083 | childToDelete = childToDelete.sibling; |
| 9084 | } |
| 9085 | return null; |
| 9086 | } |
| 9087 | |
| 9088 | function mapRemainingChildren(returnFiber, currentFirstChild) { |
| 9089 | // Add the remaining children to a temporary map so that we can find them by |
no test coverage detected