( lContainer: LContainer, index: number, )
| 82 | } |
| 83 | |
| 84 | export function getLViewFromLContainer<T>( |
| 85 | lContainer: LContainer, |
| 86 | index: number, |
| 87 | ): LView<T> | undefined { |
| 88 | const adjustedIndex = CONTAINER_HEADER_OFFSET + index; |
| 89 | // avoid reading past the array boundaries |
| 90 | if (adjustedIndex < lContainer.length) { |
| 91 | const lView = lContainer[adjustedIndex]; |
| 92 | ngDevMode && assertLView(lView); |
| 93 | return lView as LView<T>; |
| 94 | } |
| 95 | return undefined; |
| 96 | } |
| 97 | |
| 98 | export function addLViewToLContainer( |
| 99 | lContainer: LContainer, |
no test coverage detected
searching dependent graphs…