MCPcopy Index your code
hub / github.com/angular/angular / applyI18n

Function applyI18n

packages/core/src/render3/i18n/i18n_apply.ts:105–122  ·  view source on GitHub ↗
(tView: TView, lView: LView, index: number)

Source from the content-addressed store, hash-verified

103}
104
105export 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
124function createNodeWithoutHydration(
125 lView: LView,

Callers 1

ɵɵi18nApplyFunction · 0.90

Calls 4

assertDefinedFunction · 0.90
getBindingIndexFunction · 0.90
applyUpdateOpCodesFunction · 0.85
isArrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…