(returnFiber, childToDelete)
| 17131 | |
| 17132 | function ChildReconciler(shouldTrackSideEffects) { |
| 17133 | function deleteChild(returnFiber, childToDelete) { |
| 17134 | if (!shouldTrackSideEffects) { |
| 17135 | // Noop. |
| 17136 | return; |
| 17137 | } // Deletions are added in reversed order so we add it to the front. |
| 17138 | // At this point, the return fiber's effect list is empty except for |
| 17139 | // deletions, so we can just append the deletion to the list. The remaining |
| 17140 | // effects aren't added until the complete phase. Once we implement |
| 17141 | // resuming, this may not be true. |
| 17142 | |
| 17143 | |
| 17144 | var last = returnFiber.lastEffect; |
| 17145 | |
| 17146 | if (last !== null) { |
| 17147 | last.nextEffect = childToDelete; |
| 17148 | returnFiber.lastEffect = childToDelete; |
| 17149 | } else { |
| 17150 | returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; |
| 17151 | } |
| 17152 | |
| 17153 | childToDelete.nextEffect = null; |
| 17154 | childToDelete.effectTag = Deletion; |
| 17155 | } |
| 17156 | |
| 17157 | function deleteRemainingChildren(returnFiber, currentFirstChild) { |
| 17158 | if (!shouldTrackSideEffects) { |
no outgoing calls
no test coverage detected