( viewIndexInContainer: number, lContainer: LContainer, )
| 738 | } |
| 739 | |
| 740 | export function getBeforeNodeForView( |
| 741 | viewIndexInContainer: number, |
| 742 | lContainer: LContainer, |
| 743 | ): RNode | null { |
| 744 | const nextViewIndex = CONTAINER_HEADER_OFFSET + viewIndexInContainer + 1; |
| 745 | if (nextViewIndex < lContainer.length) { |
| 746 | const lView = lContainer[nextViewIndex] as LView; |
| 747 | const firstTNodeOfView = lView[TVIEW].firstChild; |
| 748 | if (firstTNodeOfView !== null) { |
| 749 | return getFirstNativeNode(lView, firstTNodeOfView); |
| 750 | } |
| 751 | } |
| 752 | |
| 753 | return lContainer[NATIVE]; |
| 754 | } |
| 755 | |
| 756 | /** |
| 757 | * Performs the operation of `action` on the node. Typically this involves inserting or removing |
no test coverage detected