( hostNative: RElement | RComment | LView, currentView: LView, native: RComment, tNode: TNode, )
| 54 | * @returns LContainer |
| 55 | */ |
| 56 | export function createLContainer( |
| 57 | hostNative: RElement | RComment | LView, |
| 58 | currentView: LView, |
| 59 | native: RComment, |
| 60 | tNode: TNode, |
| 61 | ): LContainer { |
| 62 | ngDevMode && assertLView(currentView); |
| 63 | const lContainer: LContainer = [ |
| 64 | hostNative, // host native |
| 65 | true, // Boolean `true` in this position signifies that this is an `LContainer` |
| 66 | 0, // flags |
| 67 | currentView, // parent |
| 68 | null, // next |
| 69 | tNode, // t_host |
| 70 | null, // dehydrated views |
| 71 | native, // native, |
| 72 | null, // view refs |
| 73 | null, // moved views |
| 74 | ]; |
| 75 | ngDevMode && |
| 76 | assertEqual( |
| 77 | lContainer.length, |
| 78 | CONTAINER_HEADER_OFFSET, |
| 79 | 'Should allocate correct number of slots for LContainer header.', |
| 80 | ); |
| 81 | return lContainer; |
| 82 | } |
| 83 | |
| 84 | export function getLViewFromLContainer<T>( |
| 85 | lContainer: LContainer, |
no test coverage detected
searching dependent graphs…