(tView: TView, index: number, tIcu: TIcu)
| 79 | * @param tIcu The TIcu to store. |
| 80 | */ |
| 81 | export function setTIcu(tView: TView, index: number, tIcu: TIcu): void { |
| 82 | const tNode = tView.data[index] as null | TIcuContainerNode; |
| 83 | ngDevMode && |
| 84 | assertEqual( |
| 85 | tNode === null || Object.hasOwn(tNode, TVIEW), |
| 86 | true, |
| 87 | "We expect to get 'null'|'TIcuContainer'", |
| 88 | ); |
| 89 | if (tNode === null) { |
| 90 | tView.data[index] = tIcu; |
| 91 | } else { |
| 92 | ngDevMode && assertTNodeType(tNode, TNodeType.Icu); |
| 93 | tNode.value = tIcu; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Set `TNode.insertBeforeIndex` taking the `Array` into account. |
no test coverage detected