(vnode: VNode)
| 322 | } |
| 323 | |
| 324 | function setupBlock(vnode: VNode) { |
| 325 | // save current block children on the block vnode |
| 326 | vnode.dynamicChildren = |
| 327 | isBlockTreeEnabled > 0 ? currentBlock || (EMPTY_ARR as any) : null |
| 328 | // close block |
| 329 | closeBlock() |
| 330 | // a block is always going to be patched, so track it as a child of its |
| 331 | // parent block |
| 332 | if (isBlockTreeEnabled > 0 && currentBlock) { |
| 333 | currentBlock.push(vnode) |
| 334 | } |
| 335 | return vnode |
| 336 | } |
| 337 | |
| 338 | /** |
| 339 | * @private |
no test coverage detected