(returnFiber, childToDelete)
| 13571 | |
| 13572 | function ChildReconciler(shouldTrackSideEffects) { |
| 13573 | function deleteChild(returnFiber, childToDelete) { |
| 13574 | if (!shouldTrackSideEffects) { |
| 13575 | // Noop. |
| 13576 | return; |
| 13577 | } // Deletions are added in reversed order so we add it to the front. |
| 13578 | // At this point, the return fiber's effect list is empty except for |
| 13579 | // deletions, so we can just append the deletion to the list. The remaining |
| 13580 | // effects aren't added until the complete phase. Once we implement |
| 13581 | // resuming, this may not be true. |
| 13582 | |
| 13583 | |
| 13584 | var last = returnFiber.lastEffect; |
| 13585 | |
| 13586 | if (last !== null) { |
| 13587 | last.nextEffect = childToDelete; |
| 13588 | returnFiber.lastEffect = childToDelete; |
| 13589 | } else { |
| 13590 | returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; |
| 13591 | } |
| 13592 | |
| 13593 | childToDelete.nextEffect = null; |
| 13594 | childToDelete.effectTag = Deletion; |
| 13595 | } |
| 13596 | |
| 13597 | function deleteRemainingChildren(returnFiber, currentFirstChild) { |
| 13598 | if (!shouldTrackSideEffects) { |
no outgoing calls
no test coverage detected