(tView: TView, lView: LView, index: number)
| 103 | } |
| 104 | |
| 105 | export function applyI18n(tView: TView, lView: LView, index: number) { |
| 106 | try { |
| 107 | if (changeMaskCounter > 0) { |
| 108 | ngDevMode && assertDefined(tView, `tView should be defined`); |
| 109 | const tI18n = tView.data[index] as TI18n | I18nUpdateOpCodes; |
| 110 | // When `index` points to an `ɵɵi18nAttributes` then we have an array otherwise `TI18n` |
| 111 | const updateOpCodes: I18nUpdateOpCodes = Array.isArray(tI18n) |
| 112 | ? (tI18n as I18nUpdateOpCodes) |
| 113 | : (tI18n as TI18n).update; |
| 114 | const bindingsStartIndex = getBindingIndex() - changeMaskCounter - 1; |
| 115 | applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask); |
| 116 | } |
| 117 | } finally { |
| 118 | // Reset changeMask & maskBit to default for the next update cycle |
| 119 | changeMask = 0b0; |
| 120 | changeMaskCounter = 0; |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | function createNodeWithoutHydration( |
| 125 | lView: LView, |
no test coverage detected
searching dependent graphs…