(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized = false)
| 5323 | resetTracking(); |
| 5324 | }; |
| 5325 | const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized = false) => { |
| 5326 | const c1 = n1 && n1.children; |
| 5327 | const prevShapeFlag = n1 ? n1.shapeFlag : 0; |
| 5328 | const c2 = n2.children; |
| 5329 | const { patchFlag, shapeFlag } = n2; |
| 5330 | if (patchFlag > 0) { |
| 5331 | if (patchFlag & 128) { |
| 5332 | patchKeyedChildren( |
| 5333 | c1, |
| 5334 | c2, |
| 5335 | container, |
| 5336 | anchor, |
| 5337 | parentComponent, |
| 5338 | parentSuspense, |
| 5339 | namespace, |
| 5340 | slotScopeIds, |
| 5341 | optimized |
| 5342 | ); |
| 5343 | return; |
| 5344 | } else if (patchFlag & 256) { |
| 5345 | patchUnkeyedChildren( |
| 5346 | c1, |
| 5347 | c2, |
| 5348 | container, |
| 5349 | anchor, |
| 5350 | parentComponent, |
| 5351 | parentSuspense, |
| 5352 | namespace, |
| 5353 | slotScopeIds, |
| 5354 | optimized |
| 5355 | ); |
| 5356 | return; |
| 5357 | } |
| 5358 | } |
| 5359 | if (shapeFlag & 8) { |
| 5360 | if (prevShapeFlag & 16) { |
| 5361 | unmountChildren(c1, parentComponent, parentSuspense); |
| 5362 | } |
| 5363 | if (c2 !== c1) { |
| 5364 | hostSetElementText(container, c2); |
| 5365 | } |
| 5366 | } else { |
| 5367 | if (prevShapeFlag & 16) { |
| 5368 | if (shapeFlag & 16) { |
| 5369 | patchKeyedChildren( |
| 5370 | c1, |
| 5371 | c2, |
| 5372 | container, |
| 5373 | anchor, |
| 5374 | parentComponent, |
| 5375 | parentSuspense, |
| 5376 | namespace, |
| 5377 | slotScopeIds, |
| 5378 | optimized |
| 5379 | ); |
| 5380 | } else { |
| 5381 | unmountChildren(c1, parentComponent, parentSuspense, true); |
| 5382 | } |
no test coverage detected